
// REMOVE THE FOCUS OF THE LINKS -------------------------------------

function removeFocus ()
{
	// Remove links Focus 
	for(i=0;i<document.links.length;i++)
	{
		document.links[i].onfocus=function() {if(this.blur)this.blur()}; 
	}	
}


// OPEN A POPUP -------------------------------------------------------

if (is.mac) { var offsetMac = 0; } else { var offsetMac = 0; }

function pop(goPage,nom,windowWidth,windowHeight) 
{
	var x = 0;
	var y = 0;
	if (screen) x = (screen.availWidth - windowWidth) / 2;
	if (screen) y = (screen.availHeight - windowHeight) / 2;
	var popped = window.open(goPage,nom,'width='+windowWidth+',height='+(windowHeight+offsetMac)+',status=no,menubar=no,scrollbars=no,resizable=no,screenX='+x+',screenY='+y+',left='+x+',top='+y);
	if ( is.ns || document.all) popped.focus();
}

function popup(url, name, width, height)
{
if (url=="newslet_signup.asp"){
     urladdon=document.nl.email.value;
     url=url+"?email="+urladdon;
   } 
settings=
"toolbar=no,location=yes,directories=no,"+
"status=yes,menubar=no,scrollbars=yes,"+
"resizable=no,width="+width+",height="+height;

MyNewWindow=window.open(url,name,settings);
}

function clearboxEmail(){
  document.nl.email.value='';
}
function clearboxSearch(){
  document.searchbox.searchtext.value='';
}
function submitSearch(){
  document.searchbox.submit();
}
function submitNL(){
  document.nl.submit();
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);