var isIe4=false, isDom=false, isMac=false, isWin=false, isNs=false, isNs4=false, isFlash=-1, isLoaded=false, isIe=false, isIe50=false;


function showIt(divID)
{
	if (isLoaded)document.getElementById(divID).style.display='block';
}
function hideIt(divID)
{
	if (isLoaded) document.getElementById(divID).style.display='none';
}
function writeIt(divID,divText)
{
	if (isLoaded) document.getElementById(divID).innerHTML=divText;
}
function init()
{
	if (isDom)
	{
		isLoaded=true;
		activateMenu("navigationInner");
	}
}

function activateMenu(nav)
{
	if (isLoaded)
	{
		if (document.all && document.getElementById(nav).currentStyle) {  
	        var navroot = document.getElementById(nav);
	        var lis=navroot.getElementsByTagName("LI");  
	        for (i=0; i<lis.length; i++) {
	            if(lis[i].lastChild.tagName=="UL"){
	             	lis[i].onmouseover=function() {	
	                   this.lastChild.style.display="block";
	                }
	                lis[i].onmouseout=function() {
	                   this.lastChild.style.display="none";
	                }
	            }
	        }
	    }
		if (document.all&&document.getElementById) {
			highlightnavRoot = document.getElementById("navigationInner");
			for (i=0; i<highlightnavRoot.childNodes.length; i++) {
				node = highlightnavRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
		  			}
		  			node.onmouseout=function() {
		  				this.className=this.className.replace(" over", "");
		   			}
		   		}
				
		  	}
		}
	}
}

isMac=(navigator.platform=="MacPPC")? true:false;
isWin=(navigator.appVersion.indexOf("Win")!=-1)? true:false;
isIe=(navigator.appName=="Microsoft Internet Explorer")? true:false;
isIe4=(document.all)? true:false;
isDom=(document.getElementById)? true:false;
if ((parseInt(navigator.appVersion)==4) && (navigator.appName=="Netscape"))
{
	isNs4 = true;
	isImg = true;
}
window.onload=init;