// copyright misja.com
var timer = null;
var content1="<table width=\"100%\" border=0 cellspacing=0 cellpadding=3><tr style=\"background: #002973; color: #ffffff\"><td><b style=\"color: #ffffff\">";
var content2="</b></td><td align=\"right\"><a href=\"#\" onclick=\"hidepopup(); return false;\" style=\"color:#ffffff;font-size:9px;\" onmouseover=\"window.status='Close Popup'; return true;\" onmouseout=\"window.status='';\">close</a></td></tr><tr><td colspan=2>";
var content3="</td></tr></table>";
function visible(yes,pevent,contenttitle,content){
 if(document.getElementById||document.all){
  if(document.getElementById){mc=document.getElementById('mca').style; }else if(document.all){mc=document.all['mca'].style;}}
  if(!yes){ 
  	clearTimeout(timer);
	timer = setTimeout("hidepopup()", 600);
  }else{
    clearTimeout(timer); hidepopup();
    if(document.getElementById){mcx=document.getElementById('mca'); }else if(document.all){mcx=document.all['mca'];}
    mcx.innerHTML = content1+contenttitle+content2+content+content3;
   if(pevent.y||pevent.pageY){ 
    if(pevent.pageY){
     ycoord = pevent.pageY + 5;
     xcoord = pevent.pageX - 10;
    } else {
     ycoord = pevent.y + document.body.scrollTop + 5; 
     xcoord = pevent.x + document.body.scrollLeft - 10;
   } 
   if (xcoord < 2) xcoord = 2; 
   mc.left=xcoord+"px";mc.top=ycoord+"px";
   }
   mc.visibility = "visible";  
  }
}
function hidepopup(){
  if(document.getElementById){mc=document.getElementById('mca').style; }else if(document.all){mc=document.all['mca'].style;}
  mc.visibility = "hidden";
}
function visibleid(yes){
  if(yes){clearTimeout(timer);}else{clearTimeout(timer);timer = setTimeout("hidepopup()", 500);}  
}
