var topColor, subColor, ContentInfo;
ContentInfo = "";

topColor = "#3366cc"
subColor = "#99ccff"

nav_hilite_kop_color   = subColor
nav_unhilite_kop_color = topColor
nav_unhilite_txt_color = '#ffffff'
nav_select_kop_color   = '#ff0e00'

var mouse_X;
var mouse_Y;

var tip_active = 0;

function update_tip_pos()
{
	document.getElementById('ToolTip').style.left = mouse_X + 20;
	document.getElementById('ToolTip').style.top  = mouse_Y;
}

var ie = document.all?true:false;
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;



var stat_window= null;
var f1_window= null;
var f2_window= null;
var wss_window= null;
var vps_window= null;
var txt_window= null;



function f1Window(url)
{
  if (f1_window)
    f1_window.close() ;

  f1_window=
    window.open(url,"f1","width=805,height=260,scrollbars=no,status=0,menubar=0");
  f1_window.focus();
}

function f2Window(url)
{
  if (f2_window)
    f2_window.close() ;

  f2_window=
    window.open(url,"f2","width=935,height=245,scrollbars=no,status=0,menubar=0");
  f2_window.focus();
}

function wssWindow(url)
{
  if (wss_window)
    wss_window.close() ;

  wss_window=
    window.open(url,"wss","width=320,height=255,scrollbars=no,status=0,menubar=0");
  wss_window.focus();
}

function vpsWindow(url)
{
  if (vps_window)
    vps_window.close() ;

  vps_window=
    window.open(url,"vps","width=700,height=125,scrollbars=no,status=0,menubar=0");
  vps_window.focus();
}

function txtWindow(url)
{
  if (txt_window)
    txt_window.close() ;

  txt_window=
    window.open(url,"txt","width=590,height=100,scrollbars=no,status=0,menubar=0");
  txt_window.focus();
}


var plain_window = null;
var radio_window = null;
var show_window = null;
var explain_window = null;

function radioWindow(url)
{
  if (radio_window)
    radio_window.close() ;

  radio_window =
    window.open(url,"radio","width=340,height=120");
  radio_window.focus();
}

function showWindow(url)
{
  if (show_window)
    show_window.close() ;

  show_window =
    window.open(url,"show","width=340,height=425");
  show_window.focus();
}

<!-- 425 -->
function explainWindow(url)
{
  if (explain_window)
    explain_window.close() ;

  explain_window =
    window.open(url,"plain","width=500,height=600");
  explain_window.focus();
}


function plainWindow(url)
{
  if (plain_window)
    plain_window.close() ;

  plain_window =
    window.open(url,"plain","width=370,height=460");
  plain_window.focus();
}



function getMouseXY(e) 
{
	if (ie) 
	{ // grab the x-y pos.s if browser is IE
		mouse_X = event.clientX + document.body.scrollLeft;
		mouse_Y = event.clientY + document.body.scrollTop;
	}
	else 
	{ // grab the x-y pos.s if browser is NS
		mouse_X = e.pageX;
		mouse_Y = e.pageY;
	}
	if (mouse_X < 0){mouse_X = 0;}
	if (mouse_Y < 0){mouse_Y = 0;}
	if(tip_active){update_tip_pos();}
}


function EnterContent(TTitle, TContent)
{
	ContentInfo = '<table border="0" width="200" cellspacing="0" cellpadding="0">'+
	'<tr><td width="100%" bgcolor="#000000">'+
	'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
	'<tr><td width="100%" bgcolor='+topColor+'>'+
	'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
	'<tr><td width="100%">'+
	'<font class="tooltiptitle">&nbsp;'+TTitle+'</font>'+
	'</td></tr>'+
	'</table>'+
	'</td></tr>'+
	'<tr><td width="100%" bgcolor='+subColor+'>'+
	'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+
	'<tr><td width="100%">'+
	'<font class="tooltipcontent">'+TContent+'</font>'+
	'</td></tr>'+
	'</table>'+
	'</td></tr>'+
	'</table>'+
	'</td></tr>'+
	'</table>';
}

function tip_it( which, TTitle, TContent)
{
	if(which)
	{
		update_tip_pos();
		tip_active = 1;
		document.getElementById('ToolTip').style.visibility = "visible";
		EnterContent(TTitle, TContent);
		document.getElementById('ToolTip').innerHTML = ContentInfo;
	}
	else
	{
		tip_active = 0;
		document.getElementById('ToolTip').style.visibility = "hidden";
	}
}

function nav_menu_hilite(item,title,content,fixed) {
	tip_it(1,title,content);
    if (fixed)
    {
		item.style.backgroundColor = nav_select_kop_color;
    }
    else
    {
		item.style.backgroundColor = nav_hilite_kop_color;
	}
	item.style.cursor='hand';
	item.style.color=nav_unhilite_txt_color;
}

function nav_menu_unhilite(item,color,fixed) {
	tip_it(0,'','');
	if (fixed)
	{
		item.style.backgroundColor = nav_select_kop_color
	}
	else
	{
		item.style.backgroundColor = nav_unhilite_kop_color
	}
	item.style.color=nav_unhilite_txt_color;
}

function printWindow(){
   version = parseInt(navigator.appVersion)
   if (version >= 4) window.print()
}


function pop(url,ext)
{
  newwindow=window.open(url,'',ext);
  if (window.focus) 
  {
    newwindow.focus();
  }
}

var modDate = new Date(document.lastModified)
  var modYear = modDate.getYear()
  if(modYear<1000) modYear+=1900
    



function changescrollbarcolor()
{
	document.body.style.scrollbarBaseColor='3366cc';
}
