//------------------------------------------------
// pop-up window
//------------------------------------------------

function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=0,status=yes' );
}


//------------------------------------------------
// mouse-over alt txt
//------------------------------------------------

var x = 0;
var y = 0;
var active = false;
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all) ? true : false;
var ie5 = false;
if (ie4 && navigator.userAgent.indexOf('MSIE 5') > 0) ie5 = true;
if(ns4 || ie4)
{
 document.onmousemove = mouseMove;
 if (ns4) document.captureEvents(Event.MOUSEMOVE);
}

function helpon(html_text)
{
 if(ns4)
 {
  document.flyinghelp_ns.document.open();
  document.flyinghelp_ns.document.write( html_text );
  document.flyinghelp_ns.document.close();
  document.flyinghelp_ns.left = x + 10;
  document.flyinghelp_ns.top = y + 15;
  document.flyinghelp_ns.visibility = "show";
  active = true;
 }
 else if(ie4)
 {
  document.all["flyinghelp_ie"].innerHTML = html_text;
  document.all["flyinghelp_ie"].style.left = x - 10;
  document.all["flyinghelp_ie"].style.top = y + 15;
  document.all["flyinghelp_ie"].style.visibility = "visible";
  active = true;
 }
}
function helpon1(text)
{
 if(text != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=1 bgcolor=#000000><tr><td><table border=0 cellspacing=0 cellpadding=2 bgcolor=#E6E6E6 width='100%'><tr><td align=center><font face='Verdana,Arial' size=1>&nbsp;" + text + "&nbsp;</font></td></tr></table></td></tr></table>" );
 }
}

function helpon2(text1, text2)
{
 if(text1 != "" && text2 != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000 width=200><tr><td><table border=0 cellspacing=1 cellpadding=1 width='100%'><tr><td align=center bgcolor=#C0C0C0><font face='Verdana,Arial' size=1><b>" + text1 + "</b></font></td></tr><tr><td align=left bgcolor=#E6E6E6><font face='Verdana,Arial' size=1>" + text2 + "</font></td></tr></table></td></tr></table>" );
 }
}
function helpon3(text1, text2)
{
 if(text1 != "" && text2 != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000 width=350><tr><td><table border=0 cellspacing=1 cellpadding=1 width='100%'><tr><td align=center bgcolor=#C0C0C0><font face='Verdana,Arial' size=1><b>" + text1 + "</b></font></td></tr><tr><td align=left bgcolor=#E6E6E6><font face='Verdana,Arial' size=1>" + text2 + "</font></td></tr></table></td></tr></table>" );
 }
}

function helpoff()
{
 if(ns4) document.flyinghelp_ns.visibility = "hide";
 else if(ie4) document.all["flyinghelp_ie"].style.visibility = "hidden";
 active = false;
}
function mouseMove(e)
{
 if(ns4)
 {
  x = e.pageX;
  y = e.pageY;
 }
 else if(ie5)
 {
  x = event.x + document.body.scrollLeft;
  y = event.y + document.body.scrollTop;
 }
 else if(ie4)
 {
  x = event.x;
  y = event.y;
 }
 if(active)
 {
  if(ns4)
  {
   document.flyinghelp_ns.left = x - 10;
   document.flyinghelp_ns.top = y + 15;
  }
 else if(ie4)
  {
   document.all["flyinghelp_ie"].style.left = x - 10;
   document.all["flyinghelp_ie"].style.top = y + 15;
  }
 }
}