// JavaScript Document
<!--
strSitemap="";
function browser(){
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent.toLowerCase();
	this.dom=document.getElementById?1:0;
	this.op=window.opera;
	this.moz=this.agent.indexOf("gecko")>-1||window.sidebar;
	this.ie=this.agent.indexOf("msie")>-1&&!this.op;
	if(this.ie){
		this.ie5=this.agent.indexOf("msie 5")>-1;
		this.ie55=this.ie5&&this.agent.indexOf("msie 5.5")>-1;
		this.ie6=this.dom&&!this.ie4&&!this.ie5&&!this.ie55;
		this.ie7=this.dom&&!this.ie4&&!this.ie5&&!this.ie55&&!this.ie6;
	}
	this.mac=this.agent.indexOf("mac")>-1;
	return this;
}
var bw=new browser();
function trimURI(uri){return uri.replace(/(\-.+)?\.asp.*$/,"");}
function initMenus(){
	for(m=0,menusArr=new Array(),menusNodes=document.getElementById("menus").getElementsByTagName("a");m<menusNodes.length;m++){
		if(trimURI(menusNodes[m].href)==trimURI(location.href)){
			menusNodes[m].style.fontWeight="bold";
			menusNodes[m].style.background="#F0ECCB url(gfx/design/px-F0ECCB.gif)"
		}
	}
}
function syncHeightWidth(){
	var contentDiv=document.getElementById("content").getElementsByTagName("div")[1];
	if(contentDiv.offsetHeight<450){
		if(bw.moz) contentDiv.style.minHeight="450px"
		else contentDiv.style.height="450px"
	}
	return;
}
function slideEm(){
	image=new Array(10);
	nr=Math.round(Math.random()*image.length);
	nextRnd();
	for(i=0;i<image.length;i++){
		image[i]=new Image();
		image[i].src="gfx/design/top-img"+i+".gif";
	}
	setInterval("nextRnd();",7500);
}
function nextRnd(){
	nr++;
	if(nr>=image.length) nr=0;
	var topDiv=document.getElementsByTagName("div")[0];
	if((bw.ie55||bw.ie6||bw.ie7)&&!bw.mac) topDiv.filters.blendTrans.apply();
	topDiv.style.background="url(gfx/design/top-img"+nr+".gif) no-repeat right 60px";
	if((bw.ie55||bw.ie6||bw.ie7)&&!bw.mac) topDiv.filters.blendTrans.play();
}
function init(){
	initMenus();
	//if(strSitemap!="") document.getElementsByTagName("h4")[0].innerHTML='<a href="index.asp">Forside</a> &raquo; '+strSitemap;
	syncHeightWidth();
	slideEm();
	return;
}
window.onload=init;
//-->