function getE( name )
{
	return document.getElementById( name );
}

function superNavigation()
{
    var navRoot = getE("menu");    
	for (i=0; i<navRoot.childNodes.length; i++) 
	{	

		
		var node = navRoot.childNodes[i];
		if (node.nodeName == "LI") 
		
		{		
			for(j=0; j<node.childNodes.length; j++)
			{
		        
				var subnode = node.childNodes[j];
				
				if (subnode.nodeName == "UL") 
				{
					for(k=0; k<subnode.childNodes.length; k++)
					{
						var subsubnode = subnode.childNodes[k];
						if (subsubnode.nodeName == "LI") 
						{
						    for(e=0; e<subsubnode.childNodes.length; e++)
					        {
					            var subsubnodelink = subsubnode.childNodes[e];
					            if(subsubnodelink.nodeName == "A")
					            {
        							subsubnodelink.onclick=function() 
        							{
        								if(getE("sub" + this.id))
        								{
        									if(getE("sub" + this.id).style.display == "none" || getE("sub" + this.id).style.display == "")
        									{
        										show(getE("sub" + this.id));
        									}
        									else
        									{
        										hide(getE("sub" + this.id));
        									}
        								}
        							}
        						}
    						}
						}
					}
				}
			}
				
		    node.onmouseover=function() 
			{
				show(getE("sub" + this.id));
 			}
			node.onmouseout=function() 
			{
				hide(getE("sub" + this.id));				
			}
        }
	}	
}

function hideAllSubmenu()
{
	for(a=90; a<200; a++)
	{
		if(getE("subsubmenu" + a))
		{
			hide(getE("subsubmenu" + a));
		}
	}
}

function hide(name)
{
	name.style.visibility = "hidden"; 
	name.style.display = "none";
}

function show(name)
{
	name.style.visibility = "visible"; 
	name.style.display = "block";
}
	
	
function getPageSizeWithScroll()
{
	var browserName=navigator.appName; 
	
	if (browserName=="Microsoft Internet Explorer")
	{
		var minheight = 205;
		var docHeight = document.getElementById("getpageheight").offsetTop;	
		if(docHeight < 600)
		{
			var defheight = 780;
		}
		else
		{
			var defheight = docHeight + minheight;
		}
					
		if(getE("container"))
		document.getElementById("container").style.height = defheight;
					
	}	
	else
 	{
   		if (window.innerHeight && window.scrollMaxY) 
		{
			if(window.scrollMaxY == "205")
			{
				yWithScroll = "800"
			}
			else
			{
				yWithScroll = window.innerHeight + window.scrollMaxY;
			}
		}	 
		else if (document.body.scrollHeight > document.body.offsetHeight)
		{
			yWithScroll = document.body.scrollHeight;
		} 
		else 
		{
			yWithScroll = document.body.offsetHeight;
		}
					
	if(getE("container"))
	document.getElementById("container").style.height=yWithScroll+"px";				
	}
}		
