var okload = 0;

function layeron(){
okload = 1;
}

var ln = "";

function mOpen(layName){
	if (layName == 'menu0'){
		LON(layName);
	}else{
		if (ln != layName){
			LON(layName);
			if (ln != ""){
				LOF(ln);
			}
		}
	}

	if (layName != 'menu0'){
		ln = layName;
	}
}

function mClose(layName){
	if (layName == 'menu0'){
		LOF(layName);
	}else{
		if (ln != layName){
			LOF(layName);
			if (ln != ""){
				LOF(ln);
			}
		}
	}

	if (layName != 'menu0'){
		ln = layName;
	}
}

function LOF(layName){
	if(okload == 1){
		if(document.layers) document.layers[layName].visibility='hide';
		if(document.all) document.all(layName).style.visibility="hidden";
		if(!document.all && document.getElementById) document.getElementById(layName).style.visibility="hidden";
	}
}

function LON(layName){
	if(okload == 1){
		if(document.layers) document.layers[layName].visibility='show';
		if(document.all) document.all(layName).style.visibility="visible";
		if(!document.all && document.getElementById) document.getElementById(layName).style.visibility="visible";
	}
}

function ALLOF(){
	ln = "";
	LOF("menu1");
	LOF("menu2");
	LOF("menu3");
	LOF("menu4");
	LOF("menu0");
}
function ALLON(){
	LON("menu1");
	LON("menu2");
	LON("menu3");
	LON("menu4");
}

/* window open */
function open_window01(spass){window.open(spass,"001","scrollbars=1,resizable=1,width=776,height=620")}

//Ver2
function SwpImgRstRa()
{
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function ReLodPagRa()
{
	var d=document; if(d.images)
	{
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=ReLodPagRa.arguments;
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0)
		{
			d.MM_p[j]=new Image;
			d.MM_p[j++].src=a[i];
		}
	}
}

function FidObjRa(n, d) 
{
	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=FidObjRa(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n);
	return x;
}

function SwpImgRa() 
{
	var i,j=0,x,a=SwpImgRa.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
	if ((x=FidObjRa(a[i]))!=null)
	{
		document.MM_sr[j++]=x;
		if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

//reloads the window if Nav4 resized
function RelPgeRa(init)
{
	if (init==true) with (navigator)
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4))
		{
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
			onresize=RelPgeRa;
		}
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
RelPgeRa(true);


function ShwHidLyrRa()
{
	var i,p,v,obj,args=ShwHidLyrRa.arguments;
	for (i=0; i<(args.length-2); i+=3)
	if ((obj=FidObjRa(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 onloadProcess() {
	layeron();
	initRollovers();
}

window.onload = onloadProcess;


//EOF