var Active,Names,Times,xy;
Active=new Array();
Names=new Array();
Times=new Array();
xy=new Array;

nn4 = (document.layers)? true : false;
ie4 = (document.all)? true : false;
nn6 = (document.getElementById && !ie4)? true : false;

if (nn4 || ie4 || nn6) ver="good";

function FindObj(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=FindObj(n,d.layers[i].document); 
 return x;
}

function MsOv(chn) {
 var y,imgOn,imgOff;
	if (nn4 || ie4 || nn6) {
			imgOn=eval('bt'+chn+"on.src");
			imgOff=eval('bt'+chn+"off.src");
			if (document[chn].src==imgOn) document[chn].src=imgOff;
					else document[chn].src=imgOn;
 }
}

function NW(Img, Wi, He, Re, Sc, Desc) {
 Wi+=25;
 He+=25;
 if (Desc == "") {Desc = Img;}
 if (Sc == 1) {
  if (Re == 1) {
   window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi+", resizable, scrollbars=yes");
  } else { window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi+", scrollbars=yes");}
 } else {
  if (Re == 1) {
   window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi+", resizable");
  } else { window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi);}
 }
}