function hidestatus(){
window.status='Web services by Radical Solutions (Bristol) http://www.radisol.com'
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}


if (document.images)
var staticlogo=new Image(50,50)
var logoheight = 50
staticlogo.src="home.gif"
var logolink="JavaScript:gohome()"
var alttext="BACK TO HOME"
var fadeintoview=1
var visibleduration=0
var isMac = navigator.platform.indexOf("Mac") > -1
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

function regenerate(){
	window.location.reload()
}
function regenerate2(){
	if (ns4)
	setTimeout("window.onresize=regenerate",400)
}
var fadeset=''
if (fadeintoview)
fadeset="filter:alpha(opacity=0)"
if (ie4 && !isMac || ns6) {
	document.write('<span id="logo" style="'+fadeset+';position:absolute;top:100;width:'+staticlogo.width+';height:'+staticlogo.height+'"></span>')
}
function bringintoview(){
	if (logo.filters.alpha.opacity<=95)
		logo.filters.alpha.opacity+=5
	else{
		clearInterval(viewit)
		if (visibleduration!=0)
			setTimeout("logo.style.visibility='hidden'",visibleduration*1000)
	}
}
function createlogo(){
	staticimage=new Layer(100)
	staticimage.left=-300
	staticimage.top=120
	staticimage.document.write('<a href="'+logolink+'" onMouseOver="document.coming.src=\'home.gif\';window.status=\'Emergency Site Exit\';return true" onMouseOut="document.coming.src=\'home.gif\';window.status=\'\';return true"><img src="'+staticlogo.src+'" name="coming" border=0 alt="'+alttext+'"></a>')
	staticimage.document.close()
	staticimage.visibility="show"
	regenerate2()
	staticitns()
}
if (ns4)
	window.onload=createlogo;
else if (ie4 && !isMac)
	crosslogo=document.all.logo
else if (ns6)
	crosslogo=document.getElementById("logo")
if ((ie4 && !isMac)){
	w = 2
	h = document.body.clientHeight-crosslogo.style.pixelHeight-5
	crosslogo.style.left=w+30
	crosslogo.style.top=h-12
}
else if(ns6) {
	w = 2
	h = window.innerHeight-logoheight-5
	document.getElementById("logo").style.left = w+30
	document.getElementById("logo").style.top = h-12
}
function logoit(){
	var w2=ns6? pageXOffset+w : document.body.scrollLeft+w
	var h2=ns6? pageYOffset+h : document.body.scrollTop+h
	crosslogo.style.left=w2+30
	crosslogo.style.top=h2-12
}
function logoit2(){
	staticimage.left=pageXOffset+30
	staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-5
}
function insertimage(){
	crosslogo.innerHTML='<a href="'+logolink+'" onMouseOver="document.coming.src=\'home.gif\';window.status=\'Emergency Site Exit\';return true" onMouseOut="document.coming.src=\'home.gif\';window.status=\'\';return true"><img src="'+staticlogo.src+'" name="coming" border=0 alt="'+alttext+'"></a>'
	if (ie4 && !isMac){
		if (fadeintoview)
			viewit=setInterval("bringintoview()",100)
		else{
			if (visibleduration!=0)
				setTimeout("crosslogo.style.visibility='hidden'",visibleduration*1000)
			}
	}
}
if (ie4 && !isMac){
	window.onscroll=logoit
//	window.onresize=new Function("window.location.reload()")
	window.onload=insertimage
}
else if (ns6){
	startstatic=setInterval("logoit()",100)
	window.onload=insertimage
	window.onresize=new Function("window.location.reload()")
	if (visibleduration!=0)
		setTimeout("crosslogo.style.visibility='hidden';clearInterval(startstatic)",visibleduration*1000)
}
function staticitns(){
	startstatic=setInterval("logoit2()",90)
	if (visibleduration!=0)
	setTimeout("staticimage.visibility='hide';clearInterval(startstatic)",visibleduration*1000)
}
function gohome(){
	if (document.layers){
		window.home()
	} else {
		if (document.all){
			document.location = "#"
		} else {
			self.location.href = '#'
		}
	}
}