		if (document.layers) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove=hide;
		
		var current_sub='';	
		var current_img='';
		var current_imgX=0;
		var current_imgY=0;
		var current_cell='';
		var NS4 = document.all || document.getElementById?false:true;
		var x=0;
		var y=0;
		var img_height=15;
		var img_width=53;
		var divoffset=0;
		var mouseIsOut=true;

		function show(imgID,sub_menu){
			current_sub=sub_menu;
			current_imgX=getCoorX(imgID);
			current_imgY=getCoorY(imgID);			
		
			if (document.all) {
				document.all[sub_menu].style.left=current_imgX+img_width+divoffset;
				document.all[sub_menu].style.top=current_imgY-6;
				document.all[sub_menu].style.visibility = "visible";
    	}else if (document.layers) {
		   	document.layers[sub_menu].left=current_imgX+img_width+divoffset;
				document.layers[sub_menu].top=current_imgY-6;		
    		document.layers[sub_menu].visibility="show";				
    	}else if (document.getElementById) {
		   	document.getElementById(sub_menu).style.left=current_imgX+img_width+divoffset;
				document.getElementById(sub_menu).style.top=current_imgY-6;
    		document.getElementById(sub_menu).style.visibility="visible";				
    	}
		}

		function hide(e) {
			if(current_sub!=''){
				var img_x=current_imgX;//-img_width;
				var img_y=current_imgY-4;//-img_height;
				var xarea1=img_x+img_width;
				var yarea1=img_y;		
				var xmouse;
				var ymouse;	
				var xarea2;
				var yarea2;
						
			  if (document.layers){
					xmouse=e.pageX;
					ymouse=e.pageY;			  
			  	xarea2=xarea1+document.layers[current_sub].clip.width;
			  	yarea2=yarea1+document.layers[current_sub].clip.height;
			  	
			  	if(!(xmouse>(xarea1-2) && xmouse<xarea2 && ymouse>(yarea1-3) && ymouse<yarea2) && !(xmouse>(img_x-2) && xmouse<(img_x+img_width) && ymouse>(img_y-3) && ymouse<(img_y+img_height+1))){
			  		document.layers[current_sub].visibility="hide";
			  		current_sub='';
			  	}
			  	
			  }else if(document.all){ 
					xmouse=event.x;
					ymouse=event.y+document.body.scrollTop;				  
			  	xarea2=xarea1+parseInt(document.all[current_sub].style.width);
			  	yarea2=yarea1+parseInt(document.all[current_sub].style.height);
			  			  
			  	if(!(xmouse>(xarea1-2) && xmouse<xarea2 && ymouse>(yarea1-3) && ymouse<yarea2) && !(xmouse>img_x && xmouse<(img_x+img_width) && ymouse>img_y && ymouse<(img_y+img_height+1))){
			  		document.all[current_sub].style.visibility = "hidden";
			  		current_sub='';
			  	}
			  	
				}else{ 
					xmouse=e.pageX;
					ymouse=e.pageY;						
			  	xarea2=xarea1+parseInt(document.getElementById(current_sub).style.width);
			  	yarea2=yarea1+parseInt(document.getElementById(current_sub).style.height);		
			  	
			  	if(!(xmouse>(xarea1-2) && xmouse<xarea2 && ymouse>(yarea1-3) && ymouse<yarea2) && !(xmouse>(img_x-2) && xmouse<(img_x+img_width) && ymouse>(img_y-3) && ymouse<(img_y+img_height+1))){
			  		document.getElementById(current_sub).style.visibility = "hidden";
			  		current_sub='';
			  	}
				}
			}
		}
	
	
		function getCoorX(imgID) {
		  if (NS4) return eval(imgID).x
		  else return docjslib_getRealLeft(imgID);
		}
		
		function getCoorY(imgID) {  
		  if (NS4) return eval(imgID).y
		  else return docjslib_getRealTop(imgID);
		}
				
		
		function docjslib_getRealLeft(imgElem) {
			xPos = eval(imgElem).offsetLeft;
			tempEl = eval(imgElem).offsetParent;
		  	while (tempEl != null) {
		  		xPos += tempEl.offsetLeft;
		  		tempEl = tempEl.offsetParent;
		  	}
			return xPos;
		}
		
		function docjslib_getRealTop(imgElem) {
			yPos = eval(imgElem).offsetTop;
			tempEl = eval(imgElem).offsetParent;
			while (tempEl != null) {
		  		yPos += tempEl.offsetTop;
		  		tempEl = tempEl.offsetParent;
		  	}
			return yPos;
		}
		
		function popUp(picPath,picWidth,picHeight){
			var winLeft = screen.availWidth;
			winLeft=(winLeft/2)-(picWidth/2);
			window.open("/pic.asp?picPath=" + picPath,"Informations","width=" + picWidth + ",height=" + picHeight + ",left=" + winLeft + ",top=0,menubar=0,location=0,toolbar=0,personalbar=0,status=0,resizable=1,scrollbars=0");
		}
		
function popSite(sitePath){
	var winLeft = screen.availWidth;
	winLeft=winLeft/2-300;
	window.open(sitePath,"Informations","width=360,height=520,left=" + winLeft + ",top=0,menubar=0,location=0,toolbar=0,personalbar=0,status=0,resizable=0,scrollbars=1");
}		

function popPlan(planPath){
	var winLeft = screen.availWidth;
	winLeft=winLeft/2-300;
	window.open(planPath,"Informations","width=500,height=500,left=" + winLeft + ",top=0,menubar=0,location=0,toolbar=0,personalbar=0,status=0,resizable=0,scrollbars=1");
}