    var ver3 = (navigator.appVersion.charAt(0) <= "3") ? true : false;
    var dom = (document.getElementById) ? true : false;
    var ie4 = (document.all && !document.getElementById) ? true : false;
    var ns4 = (document.layers) ? true : false;
    var ie5 = (document.all && document.getElementById) ? true : false;
    var n6 = (document.getElementById && !document.all) ? true : false;
    
    var count =0;
    
    function getObjekt(objekt) 
    {
    	var obj; 
    	if (dom) obj = document.getElementById(objekt).style;
      	else if (ie4) obj = document.all[objekt].style;
      	else if (ns4) obj = document.layers[objekt];
     	return obj;
    }
    
    function restartKono()
    {
	var movie = window.document.konoF;
	
	movie.rewind();
	movie.play();
    }
    
    function visPanel(objekt)
    {
    	skjulAlle();

   	var obj = getObjekt(objekt);
    	obj.display="block"
    	
    	if(objekt == "panel5")
    		restartKono();
    }
    
    function skjulPanel(objekt)
    {
    	var obj = getObjekt(objekt);
    	obj.display="none"
    }
    
    function skjulAlle()
    {
    	for (i=1;i<9;i++)
    		skjulPanel('panel'+i)
    }
    
    function konoPopup() 
    {	
	//window.open("Kono_Gallery.htm", "KONOMETER620", "status = 0, height = 420, width = 400, resizable = 0" )
	//window.open("Kono_Gallery.htm", "KONOMETER620", "left = 100, top = 100, height = 420, width = 400, resizable = 0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no" )
	
	//TheNewWin =window.open("Kono_Gallery.htm",'KONOMETER620', 'fullscreen=yes,toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no'); 

    	//TheNewWin.blur()
    	//window.focus() 
    	
	//TheNewWin.resizeTo(420, 400);
	//TheNewWin.moveTo(100, 100);
	
	var obj = getObjekt('Kono_Gallery');
	
	
	if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}


//	frameWidth = document.body.clientWidth;
    	obj.left = frameWidth/2-280;
    	obj.display="block"
    }
    
    function bigKono(nr)
    {
    	document.all.bigKono.src = "images/kono/img2Big.jpg";
    }
    
    function konoClose()
    {
    	skjulPanel('Kono_Gallery');
    }
    
    function restartknap1()
    {
    	document.all.bigKono.src = "images/kono/img1Big.jpg";
    	
	var movie = window.document.knap1;
	movie.rewind();
	movie.play();
    }
    
    function restartknap2()
    {
    	document.all.bigKono.src = "images/kono/img2Big.jpg";
    	
	var movie = window.document.knap2;
	movie.rewind();
	movie.play();
    }
    
    function restartknap3()
    {
    	document.all.bigKono.src = "images/kono/img3Big.jpg";
    	
	var movie = window.document.knap3;
	movie.rewind();
	movie.play();
    }