var nc    =  !!(document.captureEvents  && !document.getElementById);
var nc6   =  !!(document.captureEvents  && document.documentElement);
var op6   =  !!(document.getElementById && !document.documentElement);
var op7   =  !!(window.opera && /Opera( |\/)7/i.exec(navigator.userAgent));
var ie    =  !!document.all;
var ie4   =  !!(document.all           && !document.documentElement);
var ie5   =  !!(document.all           && document.documentElement);
var dom   =  !!document.getElementById;
var mac   =  !!(navigator.userAgent.indexOf("Mac")!=-1);
var docEl =  (document.documentElement && document.all && typeof document.compatMode != "undefined" && document.compatMode !=  "BackCompat")? "documentElement" : "body";

function switch_bgc(el,stat) {
	el.style.color = stat? "#fff" : "#9c9c9c";	
	el.style.backgroundColor = stat? "#c2c2c2" : "#e2e1e1";
}

/////////////////////////////////////////////////////////////////////////////////
// Navigation
/////////////////////////////////////////////////////////////////////////////////
navHover = function() {
	var lis = document.getElementById("navimenue").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);