
   is = new BrowserCheck()
  
   pict1on = new Image(177,37);     pict1on.src = "images/mkae.gif";
   pict2on = new Image(177,37);     pict2on.src = "images/maids.gif";
   pict3on = new Image(177,37);     pict3on.src = "images/msex.gif";
   pict4on = new Image(177,37);     pict4on.src = "images/mbaggrund.gif";
   pict5on = new Image(177,37);     pict5on.src = "images/mlinks.gif";
   pict6on = new Image(177,37);     pict6on.src = "images/mlaeren.gif";
   pict7on = new Image(177,37);     pict7on.src = "images/mafacts.gif";
   pict11on = new Image(177,37);    pict11on.src = "images/mrygter.gif";
   pict12on = new Image(177,37);    pict12on.src = "images/msugar.gif";
   pict13on = new Image(177,37);    pict13on.src = "images/mteenage.gif";
   pict14on = new Image(177,37);    pict14on.src = "images/mabort.gif";
   pict15on = new Image(177,37);    pict15on.src = "images/maidslink.gif";
   pict16on = new Image(177,37);    pict16on.src = "images/mnej.gif";
   pict17on = new Image(177,37);    pict17on.src = "images/moplys.gif";
   pict18on = new Image(177,37);    pict18on.src = "images/mkultur.gif";
   pict99on = new Image(177,37);    pict99on.src = "images/mforside.gif";

   pict1off = new Image(177,37);     pict1off.src = "images/kae.gif";
   pict2off = new Image(177,37);     pict2off.src = "images/aids.gif";
   pict3off = new Image(177,37);     pict3off.src = "images/sex.gif";
   pict4off = new Image(177,37);     pict4off.src = "images/baggrund.gif";
   pict5off = new Image(177,37);     pict5off.src = "images/links.gif";
   pict6off = new Image(177,37);     pict6off.src = "images/laeren.gif";
   pict7off = new Image(177,37);     pict7off.src = "images/afacts.gif";
   pict11off = new Image(177,37);    pict11off.src = "images/rygter.gif";
   pict12off = new Image(177,37);    pict12off.src = "images/sugar.gif";
   pict13off = new Image(177,37);    pict13off.src = "images/teenage.gif";
   pict14off = new Image(177,37);    pict14off.src = "images/abort.gif";
   pict15off = new Image(177,37);    pict15off.src = "images/aidslink.gif";
   pict16off = new Image(177,37);    pict16off.src = "images/nej.gif";
   pict17off = new Image(177,37);    pict17off.src = "images/oplys.gif";
   pict18off = new Image(177,37);    pict18off.src = "images/kultur.gif";
   pict99off = new Image(177,37);    pict99off.src = "images/forside.gif";

// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}

var isNS = false;
var isIE = false;
if (document.layers) isNS=true;
if (document.all) isIE=true;

function replContent(lagNavn, filNavn)
  {
    if (isIE)
     {
      document.all[lagNavn+"ie"].src=filNavn+".htm";
	 }
   else
     {
	  lagNavn=lagNavn + "ns"
	  filNavn="baggr-v"
      window.document.layers[lagNavn].src= filNavn + ".htm";
	 }
  }

function LayerSwitchBG()
  {
    if (isIE) 
      {
       document.all['pict6Layer'].style.visibility="hidden";
	  }
    else
	  {
       document.layers['pict6Layer'].visibility='hide';
	   }
  }  
  
function OpenBG()
  {
    parent.frames[3].location.href = 'baggr-h.htm';
  }  
    
function turnOn(id)
  {
   var pictname = ("pict" + id);
   
   if(document.layers)
      document[pictname+'Layer'].document.images[pictname].src = eval(pictname + "on.src");
   else 
      document.images[pictname].src = eval(pictname + "on.src");
   
  }
					
function turnOff(id)
  {
   var pictname = ("pict" + id);

   if(document.layers)
      document[pictname+'Layer'].document.images[pictname].src = eval(pictname + "off.src");
   else 
      document.images[pictname].src = eval(pictname + "off.src");
  }


// OLD NETSCAPE 4 REFRESH BUG
function MM_reloadPage(init) 
  {
   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);

  

