<!-- This function will bust out af the frames that it may have been loaded into after 5 sek START -->

	
<!-- This function wil bust out af the frames that it may have been loaded into after 5 sek START -->
<!-- This comment wil hide the script for old browsers_start
	
setTimeout ("changePage()", 5000);

	function changePage() {
		if (self.parent.frames.length != 0)
			self.parent.location=document.location;
		}

	// slut skjul script for gamle browsere -->
<!-- This function will bust out af the frames that it may have been loaded into after 5 sek END -->



/*  a script to run the stylesheet in the Netscape 4 and down_ STARTED -->*/

<!--
function hov(loc,cls){
	if(loc.className)
	loc.className=cls;
}
//-->
/*<!-- a script to run the stylesheet in the Netscape 4 and down_ END -->*/


/*<!-- a Script to hide the mail adressen_ START -->*/
<!--
 function sendMail(navn,domain,land){
    document.write('<a href="mailto:'+ navn + '@' + domain + '.' + land +'">');}

//-->
/*<!-- a Script to hide the mail adressen_ END -->*/


/*<!-- a skript to insert and check text and email_START -->*/
<!-- 
var emneTekst="Check denne hjemmeside"
var bodyTekst="Se lige denne hjemmeside: "+window.location
var good;
function checkEmailAddress(field) {
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
    if (goodEmail) {good = true;}
      else{
        alert('Indtast venligst en korrekt e-mail adresse.');
        field.focus();
        field.select();
        good = false;}
      }
    u = window.location;
function sendDenneUrl() {
    good = false
     checkEmailAddress(document.eMailer.email);
     if (good){
       //window.location = "mailto:"+document.eMailer.email.value+"?subject="+emneTekst+"&body="+document.title+" "+u;
       window.location = "mailto:"+document.eMailer.email.value+"?subject="+emneTekst+"&body="+bodyTekst
     }
}

/* <!-- a skript to insert and check text and email_END  --> */



/*<!-- a script to controle the topmenu in the workshops_STARTED -->*/

<!--
function collapseObjekt(objekt){
    var blok = document.getElementById(objekt).style;
    blok.display="none"}

function expand(objekt,onoff){
    skjulAlle();
    var blok = document.getElementById(objekt).style;
	   if (onoff==true)
		   blok.display=(onoff) ? "block" : "none"}

function skjulAlle(){
	for (nr=1;nr<6;nr++)
		collapseObjekt('menu'+nr)}
//-->

/*<!-- a script to controle the topmenu in the workshops_END -->*/
<!--
 function visMenu(id) {
		  document.getElementById(id).style.display="block";} 
 function skjulMenu(id) {
		  document.getElementById(id).style.display="none";} 

//-->

/*<!--  script that will insert a 'nyt'or 'ny' mark and remove it after a given period_start -->*/
<!--
function Nyt (date) {
  var pix ='nyt1.gif';
  var slutdag = new Date(date);
  var idag = new Date();
     if (slutdag.getTime () > idag.getTime ()){
     document.write ("<img src=" + pix + " + >")
     }
}
//-->

<!--
function Ny (date) {
  var pix ='ny1.gif';
  var slutdag = new Date(date);
  var idag = new Date();
     if (slutdag.getTime () > idag.getTime ()){
     document.write ("<img src=" + pix + " + >")
     }
}
//-->
/*<!--  script that will insert a 'nyt' or 'ny' mark and remove it after a given period_END -->*/


/*<!--  skript til julesjov, tekst med hale   START -->*/

<!--
/*
Cursor Trailor Text- By Peter Gehrig (http://www.24fun.ch/)
Permission given to Dynamicdrive.com to feature script in it's archive.
For full source code, installation instructions, and 1000's more DHTML scripts,
visit http://dynamicdrive.com
*/

var x,y
var step=20
var flag=0

// Your snappy message. Important: the space at the end of the sentence!!!
var message="GODT NYTÅR fra MI(g)!"
message=message.split("")

var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
	xpos[i]=-50
}

var ypos=new Array()
for (i=0;i<=message.length-1;i++) {
	ypos[i]=-50
}

function handlerMM(e){
	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
	flag=1
}

function makesnake() {
	if (flag==1 && document.all) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step
			ypos[i]=ypos[i-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
	
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("span"+(i)+".style")
    		thisspan.posLeft=xpos[i]
			thisspan.posTop=ypos[i]
    	}
	}
	
	else if (flag==1 && document.layers) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step
			ypos[i]=ypos[i-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
	
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("document.span"+i)
    		thisspan.left=xpos[i]
			thisspan.top=ypos[i]
    	}
	}
		var timer=setTimeout("makesnake()",30)
}



//-->

/*<!--  skript til julesjov, tekst med hale   SLUT -->*/





/* skript til Horisontalmenu    START */
var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL menus, separated by commas
var csssubmenuoffset=-1 //Offset of submenus from main menu. Default is 0 pixels.

function createcssmenu2(){
for (var i=0; i<cssmenuids.length; i++){
  var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
    	var spanref=document.createElement("span")
			spanref.className="arrowdiv"
			spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
			ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    	ultags[t].parentNode.onmouseover=function(){
					this.style.zIndex=100
    	this.getElementsByTagName("ul")[0].style.visibility="visible"
					this.getElementsByTagName("ul")[0].style.zIndex=0
    	}
    	ultags[t].parentNode.onmouseout=function(){
					this.style.zIndex=0
					this.getElementsByTagName("ul")[0].style.visibility="hidden"
					this.getElementsByTagName("ul")[0].style.zIndex=100
    	}
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", createcssmenu2, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu2)

/* skript til Horisontalmenu SLUT  */

