// JavaScript Document

// Change the cursor for this object
function pointer( current ) {   current.style.cursor = 'pointer';}
// Visit the URL provided in Parameter
function LoadUrl( url ) {    window.location = url; }

function ShowHide(id){
   if (document.getElementById){
      obj = document.getElementById(id);
      if (obj.style.display == "none"){
         obj.style.display = "";
      } else {
         obj.style.display = "none";
      }
   }
}

function showMenu(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function popupURL(url, width, height){
    var windowDest=url;
    var windowWidth = width;
    var windowHeight = height;
    window.name='windowOpener';
    window.open (windowDest,'','scrollbars=yes,menubar=no,status=no,width=' + windowWidth + ',height=' + windowHeight + ',top=0,left=0,resizable=yes,location=no'
    );
}

/*
 source : http://solardreamstudios.com/_img/learn/css/cssmenus/index-horiz.html
*/
navHover = function() {
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){

}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)


