//-- © Copyright 1999-2006 code by WinMagic® --
var sys = navigator.appName;
var copHold = "\n Copyright © 1999-2006\n WinMagic® og Lotte Brændegaard Hvid  \n\n Siderne er omfattet af ophavsret.";
var window1=null;
var n="";
var w=400;
var h=450;
var virg ="" //http://www.virgo-fyn.dk/";
lPos = (screen.width) ? (screen.width-w)/3 : 0;
tPos = (screen.height) ? (screen.height-h)/4 : 0;
setts ="scrollbars=yes,width="+w+",height="+h+",top="+tPos+",left="+lPos;    //+",resizable"

if (top.frames.length!=0) {
   top.location=self.document.location;
}

function getTYP() {
   winClose(window1);
   getPOP("../lo_kktype.html");
   //if (n.substring(0, 2);
}

function getPOP(n) {
   //winClose(window1);
   if (n=="lo_folke_virgispop5_dk.html") {setts+=",resizable=yes"};
   var wind = virg+n;
   window1=window.open(wind,"hot2Window",setts);
}

function getANV(n) {
   winClose(window1);
   if (n.length!=2)    {
     z=n.charAt(2);
     if (z=="s") {virg="../";}     //sub
     if (z=="i") {virg="html/";}  //root
     n=n.substring(0, 2);
   }
   var wind = virg+"lo_anvend_"+n+".html";
   window1=window.open(wind,"hotWindow",setts);
}

function winClose(winx) {
   if (winx) {
     winx.close();
     return null;}
}

function click(ev) {
  if ((sys=="Opera")){return false;}
  if ((sys!="Netscape") && (event.button!=1)) {
    alert(copHold);return false;
  }
  if ((sys=="Netscape") && (ev.which!=1)) {
    alert(copHold);return false;
  }
 return true;
}

function disableSelect(eve){
  if (eve.which==3){
   alert(copHold); 
   return false;
  }
  return false;
}

function reEnable(eve){
  if (eve.which==3){
    alert(copHold);
    return false;
  }
  return true;
}

if (document.layers) {
     //alert("NS4.x");
     document.write("<LINK REL='STYLESHEET' HREF='stylescript/ns4_chars.css' type='text/css'")}
else if ((sys=="Opera") && (navigator.appVersion.charAt(0) < "7")) {
     //alert("OLD Opera");
     document.write("<LINK REL='STYLESHEET' HREF='stylescript/op6_chars.css' type=text/css>")}
else if ((sys=="Opera") && (navigator.appVersion.charAt(0) >= "7")) {
     //alert("getEl..ById Opera 7");
     document.write("<LINK REL='STYLESHEET' HREF='stylescript/op7_chars.css' type=text/css>")}
else if (document.all && !document.getElementById) {
     //alert("IE4.x CSS");
     document.write("<LINK REL='STYLESHEET' HREF='stylescript/menu.css' type='text/css'>")}
else if (document.getElementById) {
     //alert("NS6/7+/IE5/6+");
     document.write("<LINK REL='STYLESHEET' HREF='stylescript/ns6ie5_chars.css' type='text/css'>")
}

if (((document.all) || (!document.getElementById))||(document.layers)) {
  if ((sys=="Opera") && (navigator.appVersion.charAt(0) > "6")) {}
  if (document.layers) {window.onmousedown=click};
  if (!document.layers) {
    document.onmousedown=click;
    document.ondragstart=disableSelect;
    document.onselectstart=new Function ("return false")}
  }
else if ((sys=="Netscape") && (document.getElementById)){
  document.onmousedown=disableSelect;
  document.onmouseclick=reEnable;
}
//-------------------------------------