<!--
// skriv til status
function wStatus(sMsg) {
    window.status = sMsg ; return true ;
}

// PRELOAD IMAGES
function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

// toggle visibility
function toggle( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "";
  			} else {
  				target.style.display = "none";
  			}
  	}
}

// show/hide visibility
function show(targetId){
  if (document.getElementById){
  		target = document.getElementById( targetId );
		target.style.display = "block";
  	}
}

function hide(targetId){
  if (document.getElementById){
  		target = document.getElementById( targetId );
		target.style.display = "none";
  	}
}


function printit(){  
    window.print() ;  
}

function encodemail(country,domain,name,linktekst) {
	if(linktekst != "") {
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;'+name+'&#064;'+domain+'&#46;'+country+'">'+linktekst+'</a>')
	}
	else {
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;'+name+'&#064;'+domain+'&#46;'+country+'">'+name+'&#064;'+domain+'&#46;'+country+'</a>')
	}
}

var strFlashBegin
function GetFlash(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>'
	//strFlash = hmtlcontent;
	document.write(strFlash);
}

function GetFlashAdv(flashdata,flashwidth,flashheight,flashwmode,hmtlcontent) {
	if (flashwmode!='') {
	} else flashwmode = 'opaque';
	hmtlcontent = hmtlcontent.replace(/&lt;/g,"<");
	hmtlcontent = hmtlcontent.replace(/&gt;/g,">");
	strFlash = '<object type="application/x-shockwave-flash" wmode="'+flashwmode+'" data="'+flashdata+'" width="'+flashwidth+'" height="'+flashheight+'">\n'
		+ '<param name="movie" value="'+flashdata+'" />'
		+ '<param name="wmode" value="'+flashwmode+'" />'
		+ hmtlcontent
		+ '</object>'
	document.write(strFlash);
}


function WriteHtmlContent(strFlashHtmlContent) {
strFlashHtmlContent = strFlashHtmlContent.replace(/&lt;/g,'<');
strFlashHtmlContent = strFlashHtmlContent.replace(/&gt;/g,'>');
document.write(strFlashHtmlContent);
}

function aFLV(flashdata,flashwidth,flashheight,autostart,startimage,parentpath) {
	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="'+parentpath+'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 = parentpath + "flvplayer.swf?autostart="+autostart+"&file="+flashdata+"&image="+parentpath+""+startimage;}
	else flashdata = parentpath + "flvplayer.swf?autostart="+autostart+"&file="+flashdata;
	strFlash = '<object type="application/x-shockwave-flash" wmode="opaque" data="'+flashdata+'" width="'+flashwidth+'" height="'+flashheight+'">\n'
		+ '<param name="movie" value="'+flashdata+'" />'
		+ '<param name="wmode" value="opaque" />'
		+ hmtlcontent
		+ '</object><br />';
	document.write(strFlash);
	//alert(strFlash);
}

function aNoFLV(flashdata,flashwidth,flashheight,autostart,startimage,parentpath) {
	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="'+parentpath+'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);
}


//function showFlash(swffile,bredde,hojde) {
//var strShowFlash = '<object type="application/x-shockwave-flash" data="pics/filer/'+swffile+'" width="'+bredde+'" height="'+hojde+'">\n'
//	+	'<param name="movie" value="pics/filer/'+swffile+'" />\n'
//	+	'<a href="http://www.macromedia.com/go/getflashplayer/" target="_blank"><img src="http://www.kts.dk/inc/getflash.gif" style="border:0;" width="124" height="98" alt="Hent Flash" /></a>\n'
//	+	'</object>'
//	document.write(strShowFlash)
//	}
// -->