function getObj(name)
{
  if (document.getElementById)
  {
        this.obj = document.getElementById(name);
        this.style = document.getElementById(name).style;
        this.visibility = document.getElementById(name).visibility;
  }
  else if (document.all)
  {
        this.obj = document.all[name];
        this.style = document.all[name].style;
        this.visibility = document.all[name].visibility;
  }
  else if (document.layers)
  {
        this.obj = document.layers[name];
        this.style = document.layers[name];
        this.visibility = document.layers[name].visibility;
  }
} 

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 movelayers() {
	
	var pw = page.winW();
	lay1x = 373 + parseInt((pw - 314 - 373) * (1 / 4));
	
	if (pw < (lay1x + 314)) {
		lay1.style.left = 373 + "px";
		//lay1.visibility = "hide";
	} else {
		//lay1.visibility = "show";
		lay1.style.left = lay1x + "px";;
	}
	basex = lay1x + 192 ;
	lay2x = basex + parseInt((pw - basex - 160) * (1 / 3));
	if (pw < (lay2x + 160) ) {
		lay2.style.left = -999 + "px";
		lay2.visibility = "hide";
	} else {
		lay2.visibility = "show";
		lay2.style.left = lay2x + "px";		
	}
	basex = lay1x + 314;
	lay3x = basex + parseInt((pw - basex - 100) * (2 / 3));
	if (pw < (lay3x + 100) ) {
		lay3.style.left = -999 + "px";
		lay3.visibility = "hide";
	} else {
		lay3.style.left = lay3x + "px";	
		lay3.visibility = "show";
	}
}


