	navHover = function() {
		var lis = document.getElementById("navmenu").getElementsByTagName("LI");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() {
				this.className+=" iehover";
			}	
			lis[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", navHover);	
	
	function toggleLayer(whichLayer)
		{
			if (document.getElementById)
			{
			var style2 = document.getElementById(whichLayer).style;
			style2.display = style2.display? "":"none";
			}
				else if (document.all)
			{
			var style2 = document.all[whichLayer].style;
			style2.display = style2.display? "":"none";
			}
				else if (document.layers)
			{
			var style2 = document.layers[whichLayer].style;
			style2.display = style2.display? "":"none";
			}
		}
	
function middleDiv(objectRef)
{

	if (document.getElementById) {
		var elem = document.getElementById(objectRef);
	}
	else if (document.layers && document.layers[objectRef]) {
		var elem = document.layers[objectRef];
	}
	else if (document.all) {
		var elem = document.all[objectRef];
	}
	
	if(elem.style.width){
		objectWidth = elem.style.width;
		objectWidth.replace(/\w/g,"");
		objectWidth = parseInt(objectWidth);
	}else{
		objectWidth = 400;
	}
	
	if(elem.style.height){
		objectHeight = elem.style.height;
		objectHeight.replace(/\w/g,"");
		objectHeight = parseInt(objectHeight);
	}else{
		objectHeight = 250;
	}
	

	if(window.event){

		if(document.documentElement.clientHeight){
			topposition  = Math.round(document.documentElement.scrollTop + (document.documentElement.clientHeight /2)) -Math.round((objectHeight / 2));
			leftposition = Math.round(document.documentElement.scrollLeft + (document.documentElement.clientWidth /2)) -Math.round((objectWidth / 2));

		}else{
			topposition  = Math.round(document.body.scrollTop + (document.body.clientHeight /2)) -Math.round((objectHeight / 2));
			leftposition = Math.round(document.body.scrollLeft + (document.body.clientWidth /2)) -Math.round((objectWidth / 2));
		}
		
	}else{
		//only executed by NC,Mozilla, this var is now the value of the top left corner even the user has scrolled down
		topposition  = Math.round(window.innerHeight + window.pageYOffset - (window.innerHeight / 2)) - Math.round((objectHeight / 2));
		leftposition = Math.round(window.innerWidth + window.pageXOffset - (window.innerWidth / 2)) - Math.round((objectWidth / 2));
	}

		var browser=navigator.appName
		if (browser=="Microsoft Internet Explorer"){
			topposition  = Math.round(document.documentElement.scrollTop + (document.documentElement.clientHeight /2)) -Math.round((objectHeight / 2));
			leftposition = Math.round(document.documentElement.scrollLeft + (document.documentElement.clientWidth /2)) -Math.round((objectWidth / 2));
		}
	
	elem.style.top = topposition+"px";
	elem.style.left = leftposition+"px";
}

function getElementsByClassName(classname, node)
{
    if(!node) node = document.getElementsByTagName("body")[0];
    var a = [];
    var re = new RegExp('\\b' + classname + '\\b');
    var els = node.getElementsByTagName("*");
    for(var i=0,j=els.length; i<j; i++)
        if(re.test(els[i].className))a.push(els[i]);
    return a;
}

function blinkIt() {
 if (!document.all) return;
 else {
    var elements = getElementsByClassName('blink', null);
	var i;
	for (i=0; i < elements.length; i++) {
        s=elements[i];
        s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
	}
 }
}

// repeat blinking each half second
setInterval('blinkIt()',500);