// -------------------------------------------------------------------
// Madgex Limited
// Copyright (c) 2003 Madgex Limited. All Rights Reserved.
// -------------------------------------------------------------------


if (self!=self.top) {
	top.location.href = self.location.href;
}

function loadlogon(){
	var bLoaded = false
	if(is.Mac){
		alert("This site has been design to work with the Window's version of Microsoft IE 5+ or Netscape 6+")
	}
	if(is.ie5up){
		document.all.logo.style.display = "none"
		document.all.logon.style.display = "block"
		bLoaded = true
	}
	if(is.nav6up){
		var oLogo = document.getElementById('logo');
		var oLogno = document.getElementById('logon');
		oLogo.style.display = "none"
		oLogno.style.display = "block"
		bLoaded = true
	}
	if(bLoaded == false){
		alert('This site has been designed to work with Microsoft IE 5+ or Netscape 6+ Sorry we could not load the logon screen')
	}
}

function startclock() {
	setTimeout('loadlogon()',4000)
}


var isIE3Mac = false;
if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3)) {
	isIE3Mac = true;
} else { 
	is = new Is(); 
}
if (is.nav5up) sClassRef = "class" 
if (is.ie5up) sClassRef = "className" 


function Is () {
	var agt=navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
	            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
	            && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	this.nav2 = (this.nav && (this.major == 2));
	this.nav3 = (this.nav && (this.major == 3));
	this.nav4 = (this.nav && (this.major == 4));
	this.nav4up = (this.nav && (this.major >= 4));
	this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) ||
	                      (agt.indexOf("; nav") != -1)) );
	this.nav6 = (this.nav && (this.major == 5));
	this.nav6up = (this.nav && (this.major >= 5));
	this.nav7 = (agt.indexOf('netscape/7')!=-1)
	this.nav7up = (agt.indexOf('netscape/7')!=-1)
	this.gecko = (agt.indexOf('gecko') != -1);
	this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	this.ie3    = (this.ie && (this.major < 4));
	this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
	this.ie4up  = (this.ie  && (this.major >= 4));
	this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
	this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
	this.ie6  = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.0") !=-1));
	this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
	this.ie5_5up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5);
	this.ie6up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
	this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
	this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
	this.win16 = ((agt.indexOf("win16")!=-1) || 
	           (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || 
	           (agt.indexOf("windows 16-bit")!=-1) );  
	this.win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
	                (agt.indexOf("windows 16-bit")!=-1));
	this.win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
	this.winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
	this.win32 = (this.win95 || this.winnt || this.win98 || 
	                ((this.major >= 4) && (navigator.platform == "Win32")) ||
	                (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));
	this.mac    = (agt.indexOf("mac")!=-1);
	this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) || 
					(agt.indexOf("68000")!=-1)));
	this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) || 
					(agt.indexOf("powerpc")!=-1)));
	this.linux = (agt.indexOf("inux")!=-1);
	this.baseline = ((this.nav6up) || (this.ie5up)) 
}