
/*
Popup Window Script
*/

var onoff="on"

function openpopup(url){

winpops=window.open(url,"","width=160,height=220,")

}


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);


	Xoffset=-100;   
	Yoffset= 25;   

	var old,skn,iex=(document.all),yyy=-1000;

	var ns4=document.layers
	var ns6=document.getElementById&&!document.all
	var ie4=document.all

	if (ns4)
		skn=document.dek
	else if (ns6)
		skn=document.getElementById("dek").style
	else if (ie4)
		skn=document.all.dek.style
	if(ns4)document.captureEvents(Event.MOUSEMOVE);
	else{
		skn.visibility="visible"
		skn.display="none"
				}
	document.onmousemove=get_mouse;

function popup(msg,bak){
var content="<TABLE  WIDTH=155 BORDER=1 BORDERCOLOR=#ff9900 BGCOLOR=#F3F9EC CELLPADDING=5 CELLSPACING=0 "+"BGCOLOR="+bak+"><TD ALIGN=left background=../images/Agencias/tooltiptext/logoalfa_blanco.gif class=TD bordercolor="+bak+"><img src='spacer.gif' width = '200' height ='1'><FONT face='Verdana,Arial' COLOR=#333333 SIZE=1>"+msg+"</FONT></TD></TABLE>";
yyy=Yoffset;
 if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(ns6){document.getElementById("dek").innerHTML=content;skn.display=''}
 if(ie4){document.all("dek").innerHTML=content;skn.display=''}
}

function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
skn.left=x+Xoffset;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
skn.top=y+yyy;
}

function kill(){
yyy=-1000;
if(ns4){skn.visibility="hidden";}
else if (ns6||ie4)
skn.display="none"
}
