﻿
<!--
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);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


//-->

<!--
function CheckEnter(eventTarget,eventArgument, event)
{
var key = event.keyCode || event.which;
// 13 is the ASCII
// Code for the ENTER Key
//eventTarget = eventTarget.replace(':', '$'); // why does M$ have to change : to $
if (key == 13)
    {
      document.getElementById(eventTarget).click();
      return EnterClickOff(event);
    }
    return true;
}

function EnterClickOff(event)
{
try
    {
    event.keyCode = 0;
    }
catch(Error)
    {
    if (event && event.preventDefault)
    event.preventDefault(); 
    }
    event.returnValue = false;
    event.cancelBubble = true;
    
    return false;
}
//-->

<!--
function newpage(file,x,y,target) {
	var winl = 10; //(screen.width - (x + 9)) / 2;
	var wint = 10; //(screen.height - (y + 56)) / 2;
	option = "top=" + wint + ",left=" + winl + ",toolbar=0,status=0,menubar=0,scrollbars=no,resizable=0,width=" + x + ",height=" + y + "";
	childwindow = open(file, target, option);
	childwindow.focus();
}
function newpageWithScroll(file,x,y,target) {
	var winl = 10; //(screen.width - (x + 9)) / 2;
	var wint = 10; //(screen.height - (y + 56)) / 2;
	option = "top=" + wint + ",left=" + winl + ",toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + x + ",height=" + y + "";
	childwindow = open(file, target, option);
	childwindow.focus();
}
function showWebVersionOfImage(file) {
	option = "top=100,left=100,toolbar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=450,height=450";
	childwindow = open(file, 'frukt_no_view_web_version', option);
	childwindow.focus();
}
//-->

<!--
function imgChangeFPL2(contr,img) {
	contr.src = img;
}
function imgChangeById(id,img) {
	document.getElementById(id).src = img;
}
//-->

<!--
//setter høyden på venstre wrapper lik containing wrapper minus footer og hvitt felt.
onload=function() {
	document.getElementById('leftcolumn').style.height=
	(document.getElementById('contentwrapper').offsetHeight-(document.getElementById('footwrapper').offsetHeight+35))+"px";
}
//-->