self.name = "topwindow";

ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
ie5 = 0;

	var ddtimeout = 0;
	var vvtimeout = 0;
	var astimeout = 0;
	var kftimeout = 0;
	var tdelay = 50;
	
	function oload() {
		if (document.layers) {
			document.dd.captureEvents(Event.MOUSEOVER);
			document.dd.onmouseover=shownav;
			document.dd.onmouseout=hidenav;
			document.vv.captureEvents(Event.MOUSEOVER);
			document.vv.onmouseover=shownav;
			document.vv.onmouseout=hidenav;
			document.as.captureEvents(Event.MOUSEOVER);
			document.as.onmouseover=shownav;
			document.as.onmouseout=hidenav;
			document.kf.captureEvents(Event.MOUSEOVER);
			document.kf.onmouseover=shownav;
			document.kf.onmouseout=hidenav;
		} else if(document.getElementById && !document.all) {
			// Netscape 6 Borderfix
			//document.getElementById("dd").style.borderWidth="1px"; document.getElementById("dd").style.borderStyle="solid";
			//document.getElementById("vv").style.borderWidth="1px"; document.getElementById("vv").style.borderStyle="solid";
			//document.getElementById("as").style.borderWidth="1px"; document.getElementById("as").style.borderStyle="solid";
			//document.getElementById("kf").style.borderWidth="1px"; document.getElementById("kf").style.borderStyle="solid";
			}
	}
	
	function shownav(navname, welches) {
	   	if (navname.length != 2) { navname = this.id; }
		eval("clearTimeout("+navname+"timeout)");
		window.status = "shownav: "+ navname;
		hideall();
		showobject(navname);
	}
	
	function hidenav(navname) {
		if (navname.length != 2) { navname = this.id; }
		window.status = "hidenav: "+ navname;
		eval(navname+"timeout = setTimeout('hideobject(\""+navname+"\")',tdelay)");
		//hideobject(navname);
	}
	
	function hideall() {
		hideobject('dd'); hideobject('vv');
		hideobject('as');
		hideobject('kf');	}
	
	function hideobject(objname) {
		if (document.all) { //IE
		    document.all[objname].style.visibility="hidden";
			eval('document.all.'+objname+'.style.visibility="hidden"');
		} 
		if (document.layers) { //NS
		     document.layers[objname].visibility="hide";
		         eval('document.'+objname+'.document.visibility="hide"');
	  	    }   
		if (document.getElementById) { document.getElementById(objname).style.visibility="hidden"; }
	}
	
	function showobject(objname) {
		if (document.all) {
	        document.all[objname].style.visibility="visible";
	        eval('document.all.'+objname+'.style.visibility="visible"');
		}
		if (document.layers) {
		   document.layers[objname].visibility="show";
		   eval('document.'+objname+'.document.visibility="show"');
		}	  
		if (document.getElementById) { document.getElementById(objname).style.visibility="visible"; }
	}
	
 // cell functions
  function mOver(cell)
   {
      if (!cell.contains(event.fromElement))
      {cell.style.cursor = 'hand';cell.bgColor = '#BF0000';}
   }

  function mOut(cell)
   {
      if (!cell.contains(event.toElement))
      {cell.style.cursor = 'default';cell.bgColor = '#9F0000';}
   }

  function mClick(cell)
   {
      if(event.srcElement.tagName=='TD')
      {cell.children.tags('A')[0].click();}
   }



