// browser test:
function lib_bwcheck(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById? true:false;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)? true:false;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)? true:false;
	this.ie4=(document.all && !this.dom && !this.opera5)? true:false;
	this.ie=this.ie4||this.ie5||this.ie6
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ? true:false;
	this.ns4=(document.layers && !this.dom)? true:false;
	return this
}
var bw=new lib_bwcheck()
var version = 0;

if ((bw.ie) || (bw.ns4) || (bw.ns6)) {version = "1";}


// preload images:
if (version == "1") {

logo = new Image(66,52);
logo.src = "i/logo.gif";
o = new Image(1,1);
o.src = "i/0.gif";
bg1 = new Image();
bg1.src = "i/bluebg.gif";
up = new Image(51,49);
up.src = "i/up.gif";
}

// pop-up windows
function wo(a,b,c,d){
mywin=window.open(a,"window0","SCROLLBARS="+d+",resizable=0,menubar=0,status=0,location=0,left=0,top=0,screenX=0,screenY=0,width="+b+",height="+c+"")
mywin.focus()
}

// change table color
function tdColor(obj, color)
{
  obj.style.backgroundColor=color;
  if ((bw.ns4) || (bw.ns6)) 
  {
    obj.style.cursor="pointer";
  }
}

//click table cell
function tdURL(url)
{
	window.location.href = url;
}