function toggleSok() {

	var sokdiv = document.getElementById("sokContainer");
	
	if( sokdiv.style.display == 'block' ) {
		sokdiv.style.display = 'none';
	} else {
		sokdiv.style.display = 'block';
	}

}

function resizeProdBar() {

	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth - 15;
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		}
	}

	try{
		if(winW <= 1150) {
			document.getElementById("produkterSubmenuContainer").style.width = winW + 'px';
			debug("Resizer produkt toolbar til: " + winW + "px");
		} else {
			document.getElementById("produkterSubmenuContainer").style.width = 1150 + 'px';
			debug("Max-size reached.");
		}
	} catch(Error) {}
	
}

function debug(txt) {
	try{

		console.log(txt);
		
	} catch(Error) {}
}