// Remove outer frames (if any) - UPDATED to exclude clicktale
if(self!=top && !location.href.indexOf('clicktale.net'))document.images?top.location.replace(document.location.href):top.location.href=document.location.href;

function hilite(Element, Action, Class)
{
	switch(Action)
	{
		case 'over':
			if(Element.className!='clicked')Element.className='hilite';
			else Element.className='hilite2';
			break;
	
		case 'out':
			if(Element.className!='hilite2')Element.className=Class;
			else Element.className='clicked';
			break;
			
		case 'click':
			if(Element.className!='hilite2')Element.className='hilite2';
			else Element.className='hilite';
			break;
	}
}

function popupWin(winWidth, winHeight, title, scrollbars, resizable, vars)
{
	var xPos=(screen.availWidth/2)-((winWidth/2)+10);
	var yPos=(screen.availHeight/2)-((winHeight/2)-10);

	if(xPos<0)xPos=1;
	if(yPos<0)yPos=1;
	if(scrollbars)scrollbars="yes"; else scrollbars="no";
	if(resizable)resizable="yes"; else resizable="no";
	var s=",top="+yPos+",left="+xPos+",width="+winWidth+",height="+winHeight+",scrollbars="+scrollbars+",resizable="+resizable;
	var win=window.open(title+'.php?'+vars,title,"toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no"+s);
	win.focus();
	
	return false;
}
