function init() {
	if (document.all&&document.getElementById) {
		var navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			var node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	var flash = document.getElementById("bigflash");
	if(!!flash) {
		var flashvars = {};
		var params = {"wmode":"transparent"};
		var attributes = {};
		params.bgcolor = "#000000";
		swfobject.embedSWF("/wordpress/wp-content/themes/oyranebilpleie/flash/ad8.swf", "bigflash", "900", "270", "8.0.0", "expressInstall.swf", flashvars, params, attributes);
	}
}
function bh(n, a){
	if(n!="text"){
		var o = document.createElement(n);
		for(var i in a){
			if(i=="class"||i=="className"||i=="cl")o.className = a[i];
			else if(i=="innerHTML"||i=="ih")o.innerHTML=a[i];
			else if(i.indexOf("style.")>-1){var iS = i.split(".");o[iS[0]][iS[1]]=a[i];}
			else o.setAttribute(i, a[i]);
		}
	}else var o = document.createTextNode(a);
	return o;
}
function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}
addEvent(window, 'load', init);
