
/*****  css menu IE fix  *****/
/*
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("divNav");
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;
*/



/*****  nav rollovers  *****/

if (document.images) {

	var navUp = new Array(17);
	var navRoll = new Array(17);
	
	for ( i=1; i<=17; i++ ) {
		
		navUp[i] = new Image();
		
		if (i<10) {
			navUp[i].src = ("images/nav/0" + i + "_up.gif");
		} else {
			navUp[i].src = ("images/nav/" + i + "_up.gif");
		}
		
		
		navRoll[i] = new Image();
		
		if (i<10) {
			navRoll[i].src = ("images/nav/0" + i + "_roll.gif");
		} else {
			navRoll[i].src = ("images/nav/" + i + "_roll.gif");
		}
		
	}

}


//*****  nav menus  *****

var mTimer = ""; // menu timer

function Open(id) {
	document.getElementById(id).style.display = 'block';
}

function Close(id) {
	document.getElementById(id).style.display = 'none';
	clearTimeout(mTimer);
}

function Timeout() {
	mTimer = setTimeout("CloseAll()", 200);
}

function CloseAll() {
	Close('div01');
	Close('div02');
	Close('div03');
	Close('div04');
	//Close('div05');
	//Close('div06');
	Close('div07');
	//Close('div08');
}


function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
 
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL==altURL) window.location=theURL;
}






















/*
	if ( (document.getElementById(id).style.display == 'block') || (document.getElementById(id).style.display == '') )
	{
		document.getElementById(id).style.display = 'none';
   		document.getElementById('expand_' + id).src = expand.src;
   	}
   	else
	{
		document.getElementById('expand_' + id).src = collapse.src;
   	}
*/








function openWindow(URL, winName) {
	URL = "http://" + URL;
	window.open(URL, 'winName', 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}


function openWindowCentered(whichFile, winWidth, winHeight) {

// avail gets size of screen minus the taskbar size
var w = screen.availWidth;
var h = screen.availHeight;

var left = ( w-winWidth ) / 2;
var top = ( h-winHeight ) / 2;

window.open(whichFile, 'popup','width=' + winWidth + ',height=' + winHeight + ',top=' + top + ',left=' + left + ',resizable=no');
}



//reloads the window if Nav4 resized

function MM_reloadPage(init) {  
  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 Expand(id) {
	
	if ( (document.getElementById(id).style.display == 'block') || (document.getElementById(id).style.display == '') )
	{
		document.getElementById(id).style.display = 'none';
   		document.getElementById('expand_' + id).src = expand.src;
		document.getElementById('expand_' + id).alt = 'Expand';
   	}
   	else
	{
   		document.getElementById(id).style.display = 'block';
		document.getElementById('expand_' + id).src = collapse.src;
		document.getElementById('expand_' + id).alt = 'Collapse';
   	}

}
*/

function Expand(id) {
   		document.getElementById(id).style.display = 'block';
}

function Collapse(id) {
   		document.getElementById(id).style.display = 'none';
}