var mw_snTO;
function mw_snhov(ni) {
	mw_snclr();
	document.getElementById('header').className = ni;
	document.getElementsByTagName('html')[0].className = 'hidesel';
}
function mw_snout() {
	mw_snclr();
	mw_snTO = setTimeout('mw_snoff()', 500);
}
function mw_snoff() {
	mw_snclr();
	document.getElementById('header').className = '';
	document.getElementsByTagName('html')[0].className = '';
}
function mw_snclr() {
	if (mw_snTO) {
		clearTimeout(mw_snTO);
		mw_snTO = '';
	}
}
function mw_unload() {
	mw_snclr();
	var els = document.getElementById('header').getElementsByTagName('a');
	for (var i=0; i<els.length; i++) {
		els[i].onmouseover = null;
		els[i].onmouseout = null;
	}
}

if (typeof window.addEventListener != 'undefined') {
	window.addEventListener('beforeunload', mw_unload, false);
} else if (typeof window.attachEvent != 'undefined') {
	window.attachEvent('onbeforeunload', mw_unload);
} else {
	window.onbeforeunload = mw_unload;
}