
var count = 0; 
var hand = 0;
var title = 0;

nav = (document.layers) ? true : false; 
ie  = (document.all) ? true : false;

if (nav) skin = document.topdeck;
if (ie)  skin = topdeck.style;

document.onmousemove = sustain;

if (nav) document.captureEvents(Event.MOUSEMOVE);

function pop(orientation,msg1,msg2) 
{

title = msg1;

if (nav)
{
	content="<table width=380 border=0 cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td>"+
    "<table border=0 cellpadding=0 cellspacing=0><tr><td><left><font color="+
    "#FFFFFF size=2><B>"+msg1+"</B></font></left></td></tr></table><table width="+
    "100% border=0 cellpadding=2 cellspacing=0 bgcolor=#000000><tr><td><font color=#888888 "+
    "size=2>"+msg2+"</font></td></tr></table></td></tr></table>";
}

if (ie)
{
   content="<table width=380 border=0 cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td>"+
   "<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td><left><font color="+
   "#FFFFFF size=2><b>"+msg1+"</b></font></left></td></tr></table><table width="+
   "100% border=0 cellpadding=2 cellspacing=0 bgcolor=#000000><tr><td><font color=#888888 "+
   "size=2><left>"+msg2+"</left></font></td></tr></table></td></tr></table>";
}

if (nav) 
{
	var canvas = document.topdeck.document; 
	canvas.write(content); 
	canvas.close();
	skin.visibility = "show";
}
  else if (ie) 
{
	document.all("topdeck").innerHTML = content;
	skin.visibility = "visible";}  
	hand = orientation;
}

function sustain(e) 
{
	skin.left = 13,  skin.top = 45; window.status = title;
}

function kill() 
{
	if (count >= 1 ) var always=true;
	
	if (always == true) 
	{
		hand = 0; 
		skin.visibility = (nav) ? "hide" : "hidden";
	} 
	else count++;
}
   
