//<!--
function browsercheck () {
var agt			= navigator.userAgent.toLowerCase();
this.major		= parseInt(navigator.appVersion);
this.minor		= parseFloat(navigator.appVersion);
this.ns			= ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('hotjava')==-1));
this.ns4		= (this.ns && (this.major == 4));
this.ns6		= (this.ns && (this.major == 5));
this.ie			= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
this.ie4		= (this.ie && (this.major == 4) && (agt.indexOf("msie 5")==-1) );
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));
// *** PLATFORM ***
this.win		= ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1));
this.win95		= ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
this.win98		= ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
this.mac		= (agt.indexOf("mac")!=-1);
}
var is	= new browsercheck();

function preloadImage (src) {
	var img = new Image();
	img.src = src;
	return img;
}
function rollImg (name, state) { document.images[name].src = eval(name+'_'+state).src; }

function rollDivImg (div,img,state) {
	if (is.ns4) eval(docObj + div + 'Div' + innerObj + img +'.src='+ img +'_'+ state +'.src');
	else eval(docObj + img + q + '.src='+ img +'_'+ state +'.src');
}

var docObj		= (is.ns4)? 'document.' : 'document.getElementById("';
var styleObj	= (is.ns4)? '' : '").style';
var divWidth	= (is.ns4)? '.clip.width' : '.offsetWidth';
var divHeight	= (is.ns4)? '.clip.height' : '.offsetHeight';
/*
var divWidth	= (is.ns4)? '.clip.width' : '.clientWidth';
var divHeight	= (is.ns4)? '.clip.height' : '.clientHeight';
var divWidth	= (is.ns4)? '.clip.width' : '.style.pixelWidth';
var divHeight	= (is.ns4)? '.clip.height' : '.style.pixelHeight';
*/
var divLeftR	= (is.ns4)? '.left' : '.offsetLeft';
var divTopR		= (is.ns4)? '.top' : '.offsetTop';
var divLeft		= (is.ns4)? '.left' : '.left';
var divTop		= (is.ns4)? '.top' : '.top';

var imgX		= (is.ns4)? '.x' : '.offsetLeft';
var imgY		= (is.ns4)? '.y' : '.offsetTop';

var	q			= (is.ns4)? '' : '")';
var innerObj	= (is.ns4)? '.document.' : '").';
var visible		= (is.ns4)? '"show"' : 'visible';
var hidden		= (is.ns4)? '"hide"' : 'hidden';
var setVis		= '.visibility=';

var	windowWidth	= (is.ns)? 'self.innerWidth' : 'document.body.clientWidth';
var	windowHeight= (is.ns)? 'self.innerHeight' : 'document.body.clientHeight';

function reload() {	if(is.ns4)location.reload();	}

function getViz (div) {
	vizzy = eval(docObj+div+'Div'+styleObj+'.visibility');
	if (vizzy==eval(visible)) return true;
	else return false;
}

function toggleViz (div) {
	if (getViz(div)) hideDiv(div);
	else showDiv(div);
}

function showDiv (div) {	eval (docObj+div+'Div'+styleObj+setVis+visible);	}
function hideDiv (div) {	eval (docObj+div+'Div'+styleObj+setVis+hidden);	}

function getDivLeft (div) {	return eval(docObj + div + 'Div' + q + divLeftR);	}
function getDivTop (div) {	return eval(docObj + div + 'Div' + q + divTopR);	}

function getDivWidth (div) {	return parseInt(eval(docObj + div + 'Div' + q + divWidth));	}
function getDivHeight (div) {	return parseInt(eval(docObj + div + 'Div' + q + divHeight));	}

function moveDivLeftTo (div,pos) {	eval (docObj+div+'Div'+styleObj+divLeft+'='+pos);	}
function moveDivTopTo (div,pos) {	eval (docObj+div+'Div'+styleObj+divTop+'='+pos);	}

function moveDivLeftBy (div,dis) {	moveDivLeftTo(div, getDivLeft(div)+dis);	}
function moveDivTopBy (div,dis) {	moveDivTopTo(div, getDivTop(div)+dis);	}

function moveDiv (div,x,y) {	moveDivLeftTo (div,x); moveDivTopTo (div,y); showDiv(div);	}

function doBlurb (id) {
	moveDivLeftTo ('blurb'+id, mouseX);
	moveDivTopTo ('blurb'+id, mouseY);
	showDiv('blurb'+id);
}

function popWin(url,w,h) {
	poppedWin = window.open(url,'newWindow','scrollbars=no,width='+w+',height='+h);
	poppedWin.focus();
}

function popScroll(url,w,h) {
	poppedWin = window.open(url,'newWindow','scrollbars,resizable,width='+w+',height='+h);
	poppedWin.focus();
}

function popTool(url,w,h) {
	poppedWin = window.open(url,'newWindow','scrollbars,toolbar,resizable,width='+w+',height='+h);
	poppedWin.focus();
}

function popParent(url) {
	if (self.opener) self.opener.parent.location.href = url
	else newby = window.open(url,'newWindow','scrollbars,resizable')
	self.close()
}

function fieldFocus(field) {	eval (docObjForm+field+'.focus()');	}

function resort (array) {
	n = array.length;

	for(i=0; i<n; i++) {
		x = Math.floor(Math.random()*n);
		y = Math.floor(Math.random()*n);
		temp = array[x];
		array[x] = array[y];
		array[y] = temp;
	}
}

function clearDivs() {
	divArray = document.getElementsByTagName('div');
	for (i=0; i<divArray.length; i++) eval (docObj+divArray[i].id+styleObj+setVis+hidden);
}

function dumdum() {
	alert ('hey! i am not a dummy!');
}

function timer (funktion, ms) {
//	alert (funktion);
	timeOutId = setTimeout(funktion, ms);
}

function checkIt (it) {
	eval(docObjForm+it+'.checked=true')
}
//-->