var old,you,yyy=-1000;
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;
if (ns4) you=document.cheeky
else if (ns6) {
  temp = document.getElementById("cheeky");
  if (temp)
    you=document.getElementById("cheeky").style;
}
else if (ie4) {
  if (document.all.cheeky)
    you=document.all.cheeky.style;
}
if(ns4) document.captureEvents(Event.MOUSEMOVE);
else { if (you) { you.visibility="visible"; you.display="none" } }
document.onmousemove=get_mouse;

function popup(msg){
var content="<table width=\"130\" style=\"border: 1px #9EA8CC solid;\" bgcolor=\"#FF3400\" cellpadding=\"4\" cellspacing=\"0\"><tr><td valign=\"middle\">";
if (ns4 || ns6)
	content+="<font size=\"-2\" color=white face=\"tahoma, verdana, sans-serif\">"+msg+"</table>";
else
	content+="<font size=\"-2\" color=white face=\"tahoma, verdana, sans-serif\">"+msg+"</table>";
yyy=20;
if(ns4){ if (you) { you.document.write(content);you.document.close();you.visibility="visible" } }
if(ns6){ if (you) { document.getElementById("cheeky").innerHTML=content;you.display='';document.getElementById('cheeky').style.MozOpacity='80%'} }
if(ie4){ if (you) { document.all("cheeky").innerHTML=content;you.display='';document.all("cheeky").style.filter='alpha(opacity=80)'} }
}

function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
you.left=x-60;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
you.top=y+yyy;
}

function kill(){
yyy=-1000;
if(ns4){you.visibility="hidden";}
else if (ns6||ie4)
you.display="none"
}

function openSmallWindow(url) 
{
	var handle = window.open(url,"smallWindow","width=340,height=140,resizable");
	handle.focus();
	return true;
}

function openMediumWindow(url) 
{
	var handle = window.open(url,"mediumWindow","width=340,height=340,resizable");
	handle.focus();
	return true;
}

function openPrintPreview(url) 
{
	var handle = window.open(url,"mediumWindow","width=840,height=400,resizable");
	handle.focus();
	return true;
}
