function setOpacity(value, which) {
 	document.getElementById(which).style.opacity = value / 10;
 	document.getElementById(which).style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function popupFadeIn(which) {
 	for( var i = 0 ; i <= 100 ; i++ )
  	 setTimeout( "setOpacity(" + (i / 10) + ",'" + which + "')" , 4 * i );
}

function popupFadeOut(which) {
	 	for( var i = 0 ; i <= 100 ; i++ ) {
	   	setTimeout( 'setOpacity(' + (10 - i / 10) + ',' + which + ')' , 4 * i );
	 	}
 	setTimeout("closePopup('" + which + "')", 800 );
}

function closePopup(which) {
 	document.getElementById("iframeDiv").src = "";
 	document.getElementById(which).style.display = "none";
}


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();
}


startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  };
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   };
   }
  }
 }
};
window.onload=startList;



function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=460,left = 480,top = 282');");
}


