sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function writeForside() {
	document.write('<object style="margin-bottom: 1em;" type="application/x-shockwave-flash" data="c.swf?path=flash/forside.swf" width="550" height="170">');
	document.write('<param name="movie" value="c.swf?path=flash/forside.swf" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('</object>');
}

function writeKampanje(kampanjeflashnummer) {
	document.write('<object style="margin-bottom: 1em;" type="application/x-shockwave-flash" data="c.swf?path=flash/vilvite_ka_' + kampanjeflashnummer + '.swf" width="550" height="170">');
	document.write('<param name="movie" value="c.swf?path=flash/vilvite_ka_' + kampanjeflashnummer + '.swf" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('</object>');
}

function writeUtstilling() {
	document.write('<object style="margin-bottom: 1em;" type="application/x-shockwave-flash" data="c.swf?path=flash/panorama.swf" width="550" height="80">');
	document.write('<param name="movie" value="c.swf?path=flash/panorama.swf" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('</object>');
}

