// JavaScript Document

// show/hide layers
<!--
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!--
function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}
//-->


/* 
 * Hovers li's in IE as it does not support CSS hovers on LI tags 
 * Requires the hover style to also apply to the class .over 
*/
function assignHoverNav()
{
	var menu = document.getElementById('main-nav');
	if (!menu) return false;
	var index=0

	var elems = menu.getElementsByTagName('li');
	if (!elems) return false;

	for(index=0;index<elems.length;index++)
	{
		var li = elems[index];
		li.onmouseover = function () 
		{
			this.className += " over";
			//if (this.parentNode.parentNode.tagName == 'LI')
			window.status = "Over";
		}

		li.onmouseout = function ()
		{
			//if (this.parentNode.parentNode.tagName != 'LI') 
			window.status = "Out";
			this.className=this.className.replace("over", "");
		}
	}

	
}