function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



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);


function hide(what, whatLink)
{
	whatDiv = document.getElementById(what);
	whatDiv.style.visibility = "hidden"; 
	//document.getElementById(what).style.display='none';
}

function show(what, whatLink)
{
	docwidth =  findPosX(whatLink) - 50;
	
	//IE Mozilla 
	if (document.body.clientWidth || document.body.clientHeight){ 
	docwidth = document.body.clientWidth; 
	docheight = document.body.clientHeight; 
	}
	else
	{	
		//opera Netscape 6 Netscape 4x Mozilla 
		if (window.innerWidth || window.innerHeight){ 
		docwidth = window.innerWidth; 
		docheight = window.innerHeight; 
		}
	}
	


	whatDiv = document.getElementById(what);
	
	whatDiv.style.visibility = "visible"; 
	
	whatDiv.style.left = (docwidth - 350)/2;
	whatDiv.style.top = findPosY(whatLink) - 80;
	
}

function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }

  function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
    return curtop;
  }


function loadPopup(url, xw, xh, name, scroll){

   var win_popup_name = name;
   var win_popup_url = url;
   var win_width = xw;
   var win_height = xh;

   var win_left = (screen.width - win_width) / 2;
   var win_top = (screen.height - win_height) / 2;
   var popup_window = window.open(win_popup_url,win_popup_name,'width=' + win_width + ',height=' + win_height + ',top=' + win_top + ',left=' + win_left + ',directories=no,location=no,menubar=no,scrollbars=' + scroll + ',status=no,toolbar=no,resizable=no')
   popup_window.focus();
  
   
}