/**************************************************
 global.js
**************************************************/

var _posx = 0;
var _posy = 0;


over = function() {
	var sfEls = document.getElementById("mainnav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
	var sfEls2 = document.getElementById("topnav").getElementsByTagName("li");
	for (var i=0; i<sfEls2.length; i++) {
		sfEls2[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls2[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}

shortprint = function() {
	var fulldiv = document.getElementById("content-wrapper");
	var shortdiv = document.getElementById("short-content-wrapper");
	
	fulldiv.style.display = "none";
	shortdiv.style.display = "block";
	window.print();
}

fullprint = function() {
	var fulldiv = document.getElementById("content-wrapper");
	var shortdiv = document.getElementById("short-content-wrapper");
	
	fulldiv.style.display = "block";
	shortdiv.style.display = "none";
	window.print();
}


if (window.attachEvent) window.attachEvent("onload", over);