
<!--

	/****************************************************************************************
	* 	JS FOR THE DIV MENU
	****************************************************************************************/

	window.onload = function () {
	var x = document.getElementsByTagName('div');
	for (var i=0;i<x.length;i++)
	{
		if (x[i].className == 'navlabel')
			x[i].onclick = clickNav;
	}
	closeNav();

	setNav(location.href,'currentPage');
	}
	
	function closeNav()
	{
		var x = document.getElementsByTagName('div');
		for (var i=0;i<x.length;i++)
		{
			if (x[i].className == 'navchild')
				x[i].style.display = 'none';
		}
	}
	
	function clickNav(e)
	{
		if (!e) var e = window.event;
		if (e.target) var tg = e.target;
		else if (e.srcElement) var tg = e.srcElement;
		while (tg.nodeName != 'DIV') // Safari GRRRRRRRRRR
			tg = tg.parentNode;
		var nextSib = tg.nextSibling;
		while (nextSib.nodeType != 1)
			nextSib = nextSib.nextSibling;
		var nextSibStatus = (nextSib.style.display == 'none') ? 'block' : 'none';
		nextSib.style.display = nextSibStatus;
		
		if (nextSib.style.display == 'block'){
		tg.firstChild.className = 'navlabelOpen';
		}else{
		tg.firstChild.className = 'navlabelClose';
		}
		
	}
	
	function setNav(page,newID)
	{
		var test = page.indexOf('&')+1;
		if (test)
			page = page.substring(0,test-1);
		var x = document.getElementsByTagName('a');
		var i;
		for (i=0;i<x.length;i++)
		{

			if (x[i].href == page)
			{ 
				x[i].parentNode.id = newID;
				
				//Set style parent link 
					var o = x[i].parentNode.parentNode.previousSibling;
					  while (o.nodeType!=1)
						{
						o=o.previousSibling;
						}
					o.firstChild.className = 'navlabelOpen';
				// end parent style

				break;
			}
		}
		if (i < x.length && newID == 'currentPage')
		{
			var parDiv = x[i];
			while (parDiv.parentNode.tagName == 'DIV')
			{
				parDiv = parDiv.parentNode;
				parDiv.style.display = 'block';
				
			}
		}
	}
	
	// -->
	// JavaScript Document dropdownmenu

<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
	