window.attachEvent('onresize', resizePlaceHolder);

function calculatePlaceHolderWidth(){
    return ((document.body.offsetWidth-890)/2)-14;
}

function resizePlaceHolder(){
    document.getElementById("placeholder").width=calculatePlaceHolderWidth();
}
   
var browserType;

if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
   browserType= "gecko"
}

function hide() {
  if (browserType == "gecko" )
     document.poppedLayer = 
         eval('document.getElementById("OverDiv")');
  else if (browserType == "ie")
     document.poppedLayer = 
        eval('document.getElementById("OverDiv")');
  else
     document.poppedLayer =   
        eval('document.layers["OverDiv"]');
  document.poppedLayer.style.visibility = "hidden";
  
  
}
function hide2() {
  if (browserType == "gecko" )
     document.poppedLayer = 
         eval('document.getElementById("OverValWindowDiv")');
  else if (browserType == "ie")
     document.poppedLayer = 
        eval('document.getElementById("OverValWindowDiv")');
  else
     document.poppedLayer =   
        eval('document.layers["OverValWindowDiv"]');
  document.poppedLayer.style.visibility = "hidden";
  
  
}
function hideall() {
  hide();
  hide2();
}

function PrintMenu(szLocation){         
         
    var lnAutoWidth;         
    lnAutoWidth = calculatePlaceHolderWidth();          
         

    if(szLocation=="root"){
        document.write ('<img src="images_main/dummy.gif" id="placeholder" align="left" border="0" width="' + lnAutoWidth + '" height="68"><img alt="" src="images_main/logo.png" align="left" border="0"/><br/><img height="26" alt="" hspace="0" src="images_main/dummy.gif" align="bottom" border="0" style="width: 44px"/>&nbsp;<FONT class=LankarToolbar><A class=LankarToolbar href="index.htm"><FONT color=white>Startsidan</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="products.html"><FONT color=white>Produkter</FONT></A>&nbsp; | &nbsp;<A class=LankarToolbar href="news.html"><FONT color=white>Info &amp; Nyheter</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="webshop.html"><FONT color=white>Webshop</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="/company/omoss.htm"><FONT color=white>Om oss</FONT></A></FONT>');
    }

    else if(szLocation=="products") {
        document.write ('<img src="../../images_main/dummy.gif" id="placeholder" align="left" border="0" width="' + lnAutoWidth + '" height="68"><img alt="" src="../../images_main/logo.png" align="left" border="0"/><br/><img height="33" alt="" hspace="0" src="../../images_main/dummy.gif" align="bottom" border="0" style="width: 45px"/>&nbsp;<FONT class=LankarToolbar><A class=LankarToolbar href="../../index.htm"><FONT color=white>Startsidan</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="../../products.html"><FONT color=white>Produkter</FONT></A>&nbsp; | &nbsp;<A class=LankarToolbar href="../../news.html"><FONT color=white>Info &amp; Nyheter</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="../../webshop.html"><FONT color=white>Webshop</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="../../company/omoss.htm"><FONT color=white>Om oss</FONT></A></FONT>');
    }

    else {
        document.write ('<img src="../images_main/dummy.gif" id="placeholder" align="left" border="0" width="' + lnAutoWidth + '" height="68"><img alt="" src="../images_main/logo.png" align="left" border="0"/><br/><img height="26" alt="" hspace="0" src="../images_main/dummy.gif" align="bottom" border="0" style="width: 44px"/>&nbsp;<FONT class=LankarToolbar><A class=LankarToolbar href="../index.htm"><FONT color=white>Startsidan</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="../products.html"><FONT color=white>Produkter</FONT></A>&nbsp; | &nbsp;<A class=LankarToolbar href="../news.html"><FONT color=white>Info &amp; Nyheter</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="../webshop.html"><FONT color=white>Webshop</FONT></A>&nbsp; |&nbsp; <A class=LankarToolbar href="../company/omoss.htm"><FONT color=white>Om oss</FONT></A></FONT>');
    }              
}    

    function PrintNews() {
        document.write('<img src="/images_main/news.jpg" width="163" height="378" border="0" alt="" vspace="4" usemap="#Namnl_st_3_Map">');
        document.write('<map name="Namnl_st_3_Map">');  
        document.write('<area shape="rect" alt="" coords="0, 283, 163, 377" href="/products/ika/overview.htm">');  
        document.write('<area shape="rect" alt="" coords="0, 184, 163, 276" href="/products/starlab/RoboticTips-Introduction.htm">');  
        document.write('<area shape="rect" alt="" coords="0, 84, 163, 175" href="/products/julabo/products_cat2.htm">');  
        document.write('<area shape="rect" alt="" coords="0, 0, 163, 84" href="/products/camlab/label_micryo.htm">');  
        document.write('</map>');  
    }

