// JavaScript Document
var ns, ns4, ns6, ie, ie4, layerObj, styleObj;

function findBrowser() {
    ns  = (document.layers) ? true : false;
    ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4);
    ns6 = (document.getElementById) ? true : false;
    ie  = (document.all) ? true : false;
    ie4 = (document.all)? true:false;
}

function hideLayer(idLayerClose) {
    obj = (ns4)? document.layers[idLayerClose] : (ie4)? document.all[idLayerClose] : document.getElementById(idLayerClose);
    styleObj = (ns4)? obj : obj.style;
    styleObj.visibility = "hidden";
}

function MM_reloadPage(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=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// <body onLoad="findBrowser()">
//
// Så i flash knappen smed vi den her ind 
// on (release) {
//     getURL("JavaScript: hideLayer('FlashReklame')");
// }
