TimeID=0; nf=0;

function clearTimer(){
	clearTimeout(TimeID);
}
function tshow(id){
	if(nf){thide2();}
	MM_showHideLayers(id,'','show');
	nf=1; id2=id;
}
function thide(id){
	id2=id;
	if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4)){ TimeID = setTimeout("thide2()",5000);
	}else{ TimeID = setTimeout("thide2()",100); }
}

function thide2(){
	MM_showHideLayers(id2,'','hide');
	nf=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) { //v4.0（不要部削除）
	var p,i,x;  if(!d) d=document; 
	if(!(x=d[n])&&d.all) x=d.all[n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0 （不要部削除）
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	if ((obj=MM_findObj(args[0]))!=null) { v=args[2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	obj.visibility=v; }
}

