function collapseObjekt(objekt){
var blok = document.getElementById(objekt).style;
blok.display="none"
}

function expand(objekt,onoff){
skjulAlle();
var blok = document.getElementById(objekt).style;
	if (onoff==true)
		blok.display=(onoff) ? "block" : "none"
}

function skjulAlle(){
	for (nr=1;nr<=6;nr++)
		collapseObjekt('menu'+nr)
}

function placemaindiv()
{
 if (screen.width <= 800) 
  x = -1   
 else 
  x = Math.round((screen.width-827) / 2);
 divstr = "<div id='container' style='position:absolute; height:599px; top:15px; left:" + x + "px; border: 1px solid #000000;'>";
 document.write(divstr);
}

function tom()
{
 return;
}

function billeder(navn)
{
 pic = new Array();
 pic['en_on'] = new Image();
 pic['en_on'].src = "images/eng_over.gif";
 pic['en_off'] = new Image();
 pic['en_off'].src = "images/engelsk.gif";
 pic['fr_on'] = new Image();
 pic['fr_on'].src = "images/fra_over.gif";
 pic['fr_off'] = new Image();
 pic['fr_off'].src = "images/fransk.gif";
 pic['sp_on'] = new Image();
 pic['sp_on'].src = "images/spa_over.gif";
 pic['sp_off'] = new Image();
 pic['sp_off'].src = "images/spansk.gif";
 pic['ty_on'] = new Image();
 pic['ty_on'].src = "images/tys_over.gif";
 pic['ty_off'] = new Image();
 pic['ty_off'].src = "images/tysk.gif";
 pic['ru_on'] = new Image();
 pic['ru_on'].src = "images/rus_over.gif";
 pic['ru_off'] = new Image();
 pic['ru_off'].src = "images/russisk.gif";
 pic['ki_on'] = new Image();
 pic['ki_on'].src = "images/kin_over.gif";
 pic['ki_off'] = new Image();
 pic['ki_off'].src = "images/kinesisk.gif";
 pic['nl_on'] = new Image();
 pic['nl_on'].src = "images/hol_over.gif";
 pic['nl_off'] = new Image();
 pic['nl_off'].src = "images/hollandsk.gif";
 pic['da_on'] = new Image();
 pic['da_on'].src = "images/dan_over.gif";
 pic['da_off'] = new Image();
 pic['da_off'].src = "images/dansk.gif";
 pic['it_on'] = new Image();
 pic['it_on'].src = "images/ita_over.gif";
 pic['it_off'] = new Image();
 pic['it_off'].src = "images/italiensk.gif";
 pic['po_on'] = new Image();
 pic['po_on'].src = "images/por_over.gif";
 pic['po_off'] = new Image();
 pic['po_off'].src = "images/portugisisk.gif";
 pic['us_on'] = new Image();
 pic['us_on'].src = "images/usa_over.gif";
 pic['us_off'] = new Image();
 pic['us_off'].src = "images/usa.gif"; 
}

function billeder2()
{
 pic = new Array();
 pic['en_on'] = new Image();
 pic['en_on'].src = "images/eng_stor_over.gif";
 pic['en_off'] = new Image();
 pic['en_off'].src = "images/eng_stor.gif";
 pic['fr_on'] = new Image();
 pic['fr_on'].src = "images/fra_stor_over.gif";
 pic['fr_off'] = new Image();
 pic['fr_off'].src = "images/fra_stor.gif";
 pic['sp_on'] = new Image();
 pic['sp_on'].src = "images/spa_stor_over.gif";
 pic['sp_off'] = new Image();
 pic['sp_off'].src = "images/spa_stor.gif";
 pic['ty_on'] = new Image();
 pic['ty_on'].src = "images/tys_stor_over.gif";
 pic['ty_off'] = new Image();
 pic['ty_off'].src = "images/tys_stor.gif";
 pic['ru_on'] = new Image();
 pic['ru_on'].src = "images/rus_stor_over.gif";
 pic['ru_off'] = new Image();
 pic['ru_off'].src = "images/rus_stor.gif";
 pic['ki_on'] = new Image();
 pic['ki_on'].src = "images/kin_stor_over.gif";
 pic['ki_off'] = new Image();
 pic['ki_off'].src = "images/kin_stor.gif";
 pic['nl_on'] = new Image();
 pic['nl_on'].src = "images/hol_stor_over.gif";
 pic['nl_off'] = new Image();
 pic['nl_off'].src = "images/hol_stor.gif";
 pic['da_on'] = new Image();
 pic['da_on'].src = "images/dan_stor_over.gif";
 pic['da_off'] = new Image();
 pic['da_off'].src = "images/dan_stor.gif";
 pic['us_off'] = new Image();
 pic['us_off'].src = "images/usa_stor.gif"; 
 pic['us_on'] = new Image();
 pic['us_on'].src = "images/usa_stor_over.gif"; 
 pic['it_off'] = new Image();
 pic['it_off'].src = "images/ita_stor.gif"; 
 pic['it_on'] = new Image();
 pic['it_on'].src = "images/ita_stor_over.gif"; 
 pic['po_off'] = new Image();
 pic['po_off'].src = "images/por_stor.gif"; 
 pic['po_on'] = new Image();
 pic['po_on'].src = "images/por_stor_over.gif"; 
}

function shift(navn,status)
{
 eval("document." + navn + ".src = pic['" + navn + "_" + status + "'].src"); 
}

function hideshow(name)
{
 divColl = document.getElementsByTagName("DIV");
 for (i=0; i<divColl.length; i++) 
 {
  whichEl = divColl[i];
  if (whichEl.style.visibility == 'visible') whichEl.style.visibility = 'hidden';
 }
 eval("document.all." + name + ".style.visibility = 'visible'");
}


