
//if(navigator.width !=1024)
//{alert("You've got a big screen")}

var intlastlayer = 0;

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  
   return x;

}


function showlayer(intlayer) {
	hidelayer(intlastlayer);
	if (intlayer != intlastlayer) {		
		showhidelayer("Menu" + intlayer, "show");
		intlastlayer = intlayer;
	} else intlastlayer = 0;
}

function hidelayer() {
	if (intlastlayer > 0)
		showhidelayer("Menu" + intlastlayer, "hide");
	if (arguments.length == 0)
		intlastlayer = 0;
	else {
		intlastlayer = arguments[0];
	}

}

function showhidelayer(strlayer, strshow) {
	var obj = getobject(strlayer);
	if (obj.style) {
		if (strshow == "show")
			strshow = "visible";
		else
			strshow = "hidden";
		obj.style.visibility = strshow;
	}
	else
		obj.visibility = strshow;
}

 
function MM_changeProp() { //v3.0

 if (Menu1 && ('style.top'.indexOf("style.")==-1 || Menu1.style)) 
{Menu1.style.top="38%";
menu.style.top="38%"

}
 
}  

// get an object on the page using the relevant DOM
// (ie using W3C 'document.getElementById("object")' or 'document.object' or just 'object')
function getobject(strobjectname) {
	var obj;

	if (testbrowser())
		obj = document.getElementById(strobjectname);
	else {
		obj = document[strobjectname];
		if (obj == null)
			obj = eval(strobjectname);
	}
	return obj;
}

// does the current browser support W3C DOM? (true for IE5+, NS6+ and Opera 4+)
function testbrowser() {
	if (document.getElementById)
		return true;
	else
		return false;
}
