function BlurOnClick() {
  for (i = 0; i < document.links.length; i++)
    document.links[i].onfocus = document.links[i].blur;
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_validateForm() { 
  var i,objStr,field,theCheck,atPos,theNum,colonPos,min,max,errors='';
  for (i=0; i<(MM_validateForm.arguments.length-2); i+=3) {
       objStr = MM_validateForm.arguments[(navigator.appName == 'Netscape')?i:i+1];
   if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
       (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
       objStr = 'document'+objStr.substring(objStr.substring(0,objStr.lastIndexOf('.')).
       lastIndexOf('.'),objStr.length);  
       field = eval(objStr);
       field.name = (field.name)?field.name:objStr;
       theCheck = MM_validateForm.arguments[i+2];
   if  (field.value) { 
   if  (theCheck.indexOf('isEmail') != -1) { 
        atPos = field.value.indexOf('@');
   if  (atPos < 1 || atPos == (field.value.length - 1))
        errors += '- '+field.name+' skal indeholde en e-mail adresse.\n';
   } else if (theCheck != 'R') { 
        theNum = parseFloat(field.value);
   if  (field.value != ''+theNum) errors += '- '+field.name+' skal indeholde tal.\n';
   if  (theCheck.indexOf('inRange') != -1) { 
        colonPos = theCheck.indexOf(':');
        min = theCheck.substring(8,colonPos);
        max = theCheck.substring(colonPos+1,theCheck.length);
   if  (theNum < min || max < theNum) 
        errors += '- '+field.name+' skal have et tal mellemn '+min+' og '+max+'.\n';
   } } }
   else if (theCheck.charAt(0) == 'R') errors += '- '+field.name+' er påkrævet!.\n';
   }
   if   (errors) alert('Formen var ikke udfyldt korrekt!\n\n'+
                    errors+'\nVær venlig at rette fejlen(de) og prøv igen.');
        document.MM_returnValue = (errors == '')
}

/* 
  ------------------------------------------------
  PopMenu Magic menu scripts
  Copyright (c) 2004-2005 Project Seven Development
  www.projectseven.com
  
  Version: Alpha 540 -mxp version: 0.94
  ------------------------------------------------
*/
function ESI66setPM(){ //v533 alpha by PVII-www.projectseven.com
 var i,d='',h="<sty"+"le type=\"text/css\">",tA=navigator.userAgent.toLowerCase();
 if(window.opera){if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){return;}}
 if(document.getElementById){for(i=1;i<20;i++){d+='ul ';
 h+="\n#ESI32nav "+d+"{position:absolute;left:-9000px;}";}
 document.write(h+"\n<"+"/sty"+"le>");}}ESI66setPM();

function ESI66initPM(){ //v538 alpha by PVII-www.projectseven.com
 var i,g,tD,tA,tU,pp,lvl,tn=navigator.userAgent.toLowerCase();
 if(window.opera){if(tn.indexOf("opera 5")>-1||tn.indexOf("opera 6")>-1){
 return;}}else if(!document.getElementById){return;}ESI32p=arguments;
 ESI32ct= new Array;tD=document.getElementById('ESI32nav');if(tD){
 tA=tD.getElementsByTagName('A');for(i=0;i<tA.length;i++){tA[i].ESI32cl=ESI32ct.length;
 ESI32ct[ESI32ct.length]=tA[i];g=tA[i].parentNode.getElementsByTagName("UL");
 tA[i].ESI32sub=(g)?g[0]:false;ev=tA[i].getAttribute("onmouseover");if(!ev||ev=='undefined'){
 tA[i].onmouseover=function(){ESI66PMtrig(this);};}ev=tA[i].getAttribute("onfocus");
 if(!ev||ev=='undefined'){tA[i].onfocus=function(){ESI66PMtrig(this);};}
 if(tA[i].ESI32sub){pp=tA[i].parentNode;
 lvl=0;while(pp){if(pp.tagName&&pp.tagName=="UL"){lvl++;}pp=pp.parentNode;}
 tA[i].ESI32lv=lvl;}}tD.onmouseout=ESI66PMclose;ESI66PMopen();}
}

function ESI66PMtrig(a){ //v530 alpha by PVII-www.projectseven.com
 var b,t;if(document.ESI32t){clearTimeout(document.ESI32t);}document.ESI32a=1;
 b=(a.ESI32sub)?'ESI66PMshow(':'ESI66PMtg(';t='document.ESI32t=setTimeout("'+b+a.ESI32cl+')",160)';
 eval (t);
}

function ESI66PMshow(a,bp){ //v1.0 by PVII-www.projectseven.com
 var u,lv,oft,ofr,uw,uh,pp,aw,ah,adj,mR,mT,wW=0,wH,w1,w2,w3,sct,pw,lc,pwv,xx=0,yy=0,wP=true;
 var iem=(navigator.appVersion.indexOf("MSIE 5")>-1)?true:false,dce=document.documentElement,dby=document.body;document.ESI32a=1;
 if(!bp){ESI66PMtg(a);}u=ESI32ct[a].ESI32sub;if(u.ESI32ax&&u.ESI32ax==1){return;}u.ESI32ax=1;lv=(ESI32p[0]==1&&ESI32ct[a].ESI32lv==1)?true:false;
 ESI32ct[a].className=ESI32ct[a].className.replace("ESI32trg","ESI32on");oft=parseInt(ESI32p[3]);ofr=parseInt(ESI32p[4]);
 uw=u.offsetWidth;uh=u.offsetHeight;pp=ESI32ct[a];aw=pp.offsetWidth;ah=pp.offsetHeight;while(pp){xx+=(pp.offsetLeft)?pp.offsetLeft:0;
 yy+=(pp.offsetTop)?pp.offsetTop:0;if(window.opera||navigator.userAgent.indexOf("Safari")>-1){
 if(ESI32ct[a].ESI32lv!=1&&pp.nodeName=="BODY"){yy-=(pp.offsetTop)?pp.offsetTop:0;}}pp=pp.offsetParent;}
 if(!window.opera&&iem&&navigator.userAgent.indexOf("Mac")>-1){yy+=parseInt(dby.currentStyle.marginTop);}adj=parseInt((aw*ofr)/100);mR=(lv)?0:aw-adj;
 adj=parseInt((ah*oft)/100);mT=(lv)?0:(ah-adj)*-1;w3=dby.parentNode.scrollLeft;if(!w3){w3=dby.scrollLeft;}w3=(w3)?w3:0;
 if(dce&&dce.clientWidth){wW=dce.clientWidth+w3;}else if(dby){wW=dby.clientWidth+w3;}if(!wW){wW=0;wP=false;}wH=window.innerHeight;
 if(!wH){wH=dce.clientHeight;if(!wH||wH<=0){wH=dby.clientHeight;}}sct=dby.parentNode.scrollTop;if(!sct){sct=dby.scrollTop;if(!sct){
 sct=window.scrollY?window.scrollY:0;}}pw=xx+mR+uw;if(pw>wW&&wP){mR=uw*-1;mR+=10;if(lv){mR=(wW-xx)-uw;}}lc=xx+mR;if(lc<0){mR=xx*-1;}
 pw=yy+uh+ah+mT-sct;pwv=wH-pw;if(pwv<0){mT+=pwv;}u.style.marginLeft=mR+'px';u.style.marginTop=mT+'px';
 if(ESI32p[2]==1){if(!iem){ESI66PManim(a,20);}}u.className="ESI32show";
}

function ESI66PMhide(u){ //v532 alpha PVII-www.projectseven.com
 var i,tt,ua;u.ESI32ax=0;
 u.className="ESI32hide";ua=u.parentNode.firstChild;
 ua.className=ua.className.replace("ESI32on","ESI32trg");
}

function ESI66PMtg(a,b){ //v532 alpha by PVII-www.projectseven.com
 var i,u,tA,tU,pp;tA=ESI32ct[a];pp=tA.parentNode;while(pp){if(pp.tagName=="UL"){break;}
 pp=pp.parentNode;}if(pp){tU=pp.getElementsByTagName("UL");for(i=tU.length-1;i>-1;i--){
 if(b!=1&&tA.ESI32sub==tU[i]){continue;}else{ESI66PMhide(tU[i]);}}}
}

function ESI66PMclose(evt){ //v532 alpha by PVII-www.projectseven.com
 var pp,st,tS,m=true;evt=(evt)?evt:((event)?event:null);st=document.ESI32a;
 if(st!=-1){if(evt){tS=(evt.relatedTarget)?evt.relatedTarget:evt.toElement;
 if(tS){pp=tS.parentNode;while(pp){if(pp&&pp.id&&pp.id=="ESI32nav"){m=false;
 document.ESI32a=1;break;}pp=pp.parentNode;}}if(m){document.ESI32a=-1;
 if(document.ESI32t){clearTimeout(document.ESI32t);}
 document.ESI32t=setTimeout("ESI66PMclr()",360);}}}
}

function ESI66PMclr(){ //v532 alpha by PVII-www.projectseven.com
 var i,tU,tUU;document.ESI32a=-1;tU=document.getElementById('ESI32nav');
 if(tU){tUU=tU.getElementsByTagName("UL");if(tUU){
 for(i=tUU.length-1;i>-1;i--){ESI66PMhide(tUU[i]);}}}
}

function ESI66PManim(a,st){ //v532 alpha by PVII-www.projectseven.com
 var g=ESI32ct[a].ESI32sub,sp=30,inc=20;st=(st>=100)?100:st;g.style.fontSize=st+"%";
 if(st<100){st+=inc;setTimeout("ESI66PManim("+a+","+st+")",sp);}
}

function ESI66PMmark(){document.ESI32op=arguments;}

function ESI66PMopen(){ //v540 alpha by PVII-www.projectseven.com
 var i,x,tA,op,pp,wH,tA,aU,r1,k=-1,kk=-1,mt=new Array(1,'','');if(document.ESI32op){mt=document.ESI32op;}
 op=mt[0];if(op<1){return;}tA=document.getElementById('ESI32nav').getElementsByTagName("A");
 wH=window.location.href;r1=/index\.[\S]*/i;for(i=0;i<tA.length;i++){if(tA[i].href){
 aU=tA[i].href.replace(r1,'');if(op>0){if(tA[i].href==wH||aU==wH){k=i;kk=-1;break;}}if(op==2){
 if(tA[i].firstChild){if(tA[i].firstChild.nodeValue==mt[1]){kk=i;}}}if(op==3 && tA[i].href.indexOf(mt[1])>-1){
 kk=i;}if(op==4){for(x=1;x<mt.length;x+=2){if(wH.indexOf(mt[x])>-1){if(tA[i].firstChild&&tA[i].firstChild.data){
 if(tA[i].firstChild.data==mt[x+1]){kk=i;break;}}}}}}}k=(kk>k)?kk:k;if(k>-1){pp=tA[k].parentNode;while(pp){
 if(pp.nodeName=="LI"){pp.firstChild.className="ESI32mark"+" "+pp.firstChild.className;}
 pp=pp.parentNode;}}if(kk>-1){document.ESI32ad=1;}ESI66PMcrumb();
}

function ESI66PMcrumb(){ //v540 alpha by PVII-www.projectseven.com
  var s,ss,i,j,a,g,b,c,d,t,h,tA,b,tP,r1,r2,tI,bA,aA,tB=new Array(),bC='',x=0,ur=1,mt=document.ESI32ad;
 g=document.getElementById("ESI32nav");b=document.getElementById("pmmcrumb");if(g&&b){
 c=b.getElementsByTagName("A");if(c&&c[0]){tP=c[0].parentNode.childNodes;r1=/<a/i;r2=/\/a>/i;
 tI=c[0].parentNode.innerHTML;j=tI.search(r1);bA=tI.substring(0,j);j=tI.search(r2);
 aA = tI.substring(j+3);bC+=(bA)?bA:'';s=(aA)?aA:' &gt ';if(!c[0].id||c[0].id!="pmmcn"){
 if(c[0].href!=window.location.href){tB[0]=c[0];x++;ur=2;}}tA=g.getElementsByTagName("A");
 for(i=0;i<tA.length;i++){if(tA[i].className.indexOf("ESI32mark")>-1){tB[x]=tA[i];x++;}}for(i=0;i<tB.length;i++){
 ss=(i>0)?s:'';a=(i==tB.length-1)?0:1;d=(i==0&&c[0].id)?'id="'+c[0].id+'" ':' ';
 t=tB[i].firstChild.nodeValue;if(a==1||mt==1||x<ur){bC+=ss+'<a '+d+'hr'+'ef="'+tB[i].href+'">'+t+'</a>';
 }else{bC+=ss+t;}}if(mt==1||i<ur){ss=(i>0)?s:'';bC+=ss+document.title;}c[0].parentNode.innerHTML=bC;}}
}

