//
//Pop-up
//
function popup(msg,bak){
	var content="<TABLE BORDER=1 BORDERCOLOR=A2A282 CELLPADDING=2 CELLSPACING=0 "+"BGCOLOR="+bak+"><TD ALIGN=center><FONT COLOR=A2A282 SIZE=2 face=arial><b>&nbsp;"+msg+"&nbsp;</b></FONT></TD></TABLE>";
	if(old){alert(msg);return;} 
		else{yyy=Yoffset;
	if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
	if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
	}
}

function popupblack(msg,bak){
	var content="<TABLE  WIDTH=200 BORDER=0 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+"BGCOLOR="+bak+"><TD ALIGN=center><FONT COLOR=black SIZE=2 face=arial>"+msg+"</FONT></TD></TABLE>";
	if(old){alert(msg);return;} 
		else{yyy=Yoffset;
 	if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 	if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
 	}
}

function kill(){
	if(!old){yyy=-1000;skn.visibility="hidden";}
}

function get_mouse(e){
	stringa=/MSIE 4.0/;
	substringa=stringa.test(navigator.appVersion);

	if(substringa==true){
	 var x=(nav)?e.pageX:event.x;skn.left=x+Xoffset;
	 var y=(nav)?e.pageY:event.y;skn.top=y+yyy;
	}
	else {
	 var x=(nav)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
	 var y=(nav)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;  
	}
}


function fa1(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	win = window.open("","win","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	win.document.open();
	win.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	win.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	win.document.write('</body></html>');
	win.document.close();
	win.focus();
}