<!--
// windows explorer 4 OR explorer 5 og op OR OPERA OR net6up
if ((is_ie4 && is_win) || is_ie5up || is_ie5 || is_opera || is_nav6up) {
document.write("<link rel='stylesheet' href='browserstyles/winstyle.css'>")
}
// netscape Mac
else if (is_nav && is_mac) {
document.write("<link rel='stylesheet' href='browserstyles/macstyle.css'>")
}
// explorer+mac+pc
else if (is_ie || is_mac) {
document.write("<link rel='stylesheet' href='browserstyles/win4style.css'>")
}
else {
document.write("<link rel='stylesheet' href='browserstyles/net4style.css'>")
};


function ns4_reload(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=ns4_reload; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
ns4_reload(true);


function trc(url) {
	if(document.images){
	new Image().src= "admin/trc.asp?url="+escape(url);
	}
	return true;
}

function openWin(billed_id,billednavn) {
	if (is_ie7) {
	var newwin = window.open('admin/inc/billede.asp?billedid='+billed_id+'&bnavn='+billednavn,'_blank','menubar=yes,resizable=yes,width=591,height=532');
	} else if (is_opera || is_nav6up) {
	var newwin = window.open('admin/inc/billede.asp?billedid='+billed_id+'&bnavn='+billednavn,'_blank','menubar=yes,width=591,height=512');
	} else {
	var newwin = window.open('admin/inc/billede.asp?billedid='+billed_id+'&bnavn='+billednavn,'_blank','menubar=yes,width=591,height=493');
	}
}

function encodemail(country,domain,name,linktekst,strclass) {
	strEncodedMail = '<a ';
		if(strclass != "") strEncodedMail = strEncodedMail + 'class="'+strclass+'" ';
	strEncodedMail = strEncodedMail + 'href="&#109;&#97;&#105;&#108;'
		+ '&#116;&#111;&#58;'+name+'&#064;'+domain+'&#46;'+country+'">';
		if(linktekst != "") strEncodedMail = strEncodedMail + linktekst;
		else strEncodedMail = strEncodedMail + linktekst + name+'&#064;'+domain+'&#46;'+country;
	strEncodedMail = strEncodedMail + '</a>';
	document.write(strEncodedMail);
}

// show/hide visibility
function aliaShow(targetId){
  if (document.getElementById){
  		target = document.getElementById( targetId );
		target.style.display = "block";
  	}
}

function aliaHide(targetId){
  if (document.getElementById){
  		target = document.getElementById( targetId );
		target.style.display = "none";
  	}
}

/* <a href="http://www.kts.dk/net/" onclick="javascript:addHomePage('http://www.kts.dk/net/','da');return false;" onkeypress="javascript:addHomePage('http://www.kts.dk/net/','da');return false;">Vælg som startside</a> */
function addHomePage(pagelink,language) {
	if (document.all) {
	document.body.style.behavior="url(#default#homepage)"
	document.body.setHomePage(pagelink);
	}
	else {
		if(language=='da') {
			alert('Vælg som startside:\n\nTræk linket du netop har trykket på, over på \"Hjem\"-ikonet (huset) i browserens topmenu.\nBrug venstre muse-knap.');
		}
		if(language=='') {
			alert('Change your Homepage:\n\nDrag the link to the \"Home\"-icon (the house) in the browser menu.\nUse the left mouse button.');
		}
	}
}

function aliaFlash(flashdata,flashwidth,flashheight,hmtlcontent) {
	hmtlcontent = hmtlcontent.replace(/&lt;/g,"<");
	hmtlcontent = hmtlcontent.replace(/&gt;/g,">");
	strFlash = '<object type="application/x-shockwave-flash" data="'+flashdata+'" width="'+flashwidth+'" height="'+flashheight+'">\n'
		+ '<param name="movie" value="'+flashdata+'" />'
		+ hmtlcontent
		+ '</object>'
	document.write(strFlash);
}

function aliaFLV(flashdata,flashwidth,flashheight,autostart,startimage) {
	hmtlcontent = '<a class="nohover" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" onclick="this.target=\'_blank\'"><img src="pics/hent_flash.gif" border="0" width="89" height="85" alt="Hent Flash" /></a>';
	hmtlcontent = hmtlcontent.replace(/&lt;/g,"<");
	hmtlcontent = hmtlcontent.replace(/&gt;/g,">");
	flashdata = escape(flashdata);
	if (startimage !='') {flashdata = "flvplayer.swf?autostart="+autostart+"&file="+flashdata+"&image=pics%2F"+startimage;}
	else flashdata = "flvplayer.swf?autostart="+autostart+"&file="+flashdata;
	strFlash = '<object type="application/x-shockwave-flash" data="'+flashdata+'" width="'+flashwidth+'" height="'+flashheight+'">\n'
		+ '<param name="movie" value="'+flashdata+'" />'
		+ hmtlcontent
		+ '</object><br />';
	document.write(strFlash);
}

function aliaNoFLV(flashdata,flashwidth,flashheight,autostart,startimage) {
	hmtlcontent = '<div style="height:'+flashheight+'px"><a class="nohover" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" onclick="this.target=\'_blank\'"><img src="pics/hent_flash.gif" border="0" width="89" height="85" alt="Hent Flash" /></a></div>';
	hmtlcontent = hmtlcontent.replace(/&lt;/g,"<");
	hmtlcontent = hmtlcontent.replace(/&gt;/g,">");
	document.write(hmtlcontent);
}

//-->