var wnd;
var ns = (navigator.appName == 'Netscape');
var ie = (navigator.appName == 'Microsoft Internet Explorer');
var bv;
if (ie)
{ var i = navigator.appVersion.indexOf('MSIE') + 5;
	bv = parseInt(navigator.appVersion.substr(i,1));
}
else
{ bv = parseInt(navigator.appVersion);
}

var hand;
if (ns) 
{ hand = 'pointer';
}
else 
{ hand = 'hand';
}

var col;

hexa = new Array(16);
for (var i = 0; i < 10; i++)
{ hexa[i] = i;
}
hexa[10]='a'; hexa[11]='b'; hexa[12]='c';
hexa[13]='d'; hexa[14]='e'; hexa[15]='f';

function newWnd(url)
{
  var props = 'dependent=no,width=800,height=560,left=40,top=20,titlebar=yes,status=yes,menubar=yes,toolbar=yes,directories=no,scrollbars=yes,location=yes,resizable=yes';
  wnd=window.open(url, 'ext', props);
	return false;
}

function splash(num)
{
  var props = 'dependent=yes,width=400,height=400,titlebar=no,status=no,menubar=no,toolbar=no,directories=no,scrollbars=no,location=no,resizable=no';
  var url = 'splash'+num+'.html';
  if (num > 0)
  { wnd=window.open(url, 'splash', props);
  }
}

function hil(el)
{ 
	el.style.cursor = hand;
	if (el.className=='nav') el.className = 'navh';
}

function xhl(el)
{ 
	el.style.cursor = 'auto';
	if (el.className=='navh') el.className = 'nav';
}

function goPage(n)
{
	var url;
	if (n==0)
	{ url = 'index.html';
	}
	else
	{ url = 'page'+n+'.html';
	}
	location.replace(url);
}	
	
function hex(i)
{
  if (i < 0)
    return '00';
  else if (i > 255)
    return 'ff';
  else
    return '' + hexa[Math.floor(i/16)] + hexa[i%16];
}
	
function showMsg()
{
	document.getElementById('msg').style.visibility = 'visible';
}

function hideMsg()
{
	document.getElementById('msg').style.visibility = 'hidden';
}

