// zmiana obrazka w menu

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
     if      (bName == "Netscape" && bVer >= 3) ver = "n3";
     if      (bName == "Microsoft Internet Explorer" && bVer >= 3) ver = "n3";
     else if (bName == "Netscape" && bVer == 2) ver = "n2";
     else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e3";
     if (ver == "n3")        {

     about_off = new Image(154, 22);
     about_off.src = "images/aboutoff.gif";
     about_on = new Image(154, 22);
     about_on.src = "images/abouton.gif"; }
  
     products_off = new Image(153, 22);
     products_off.src = "images/productsoff.gif";
     products_on = new Image(153, 22);
     products_on.src = "images/productson.gif";
   
     services_off = new Image(153, 22);
     services_off.src = "images/servicesoff.gif";
     services_on = new Image(153, 22);
     services_on.src = "images/serviceson.gif";
            
     contact_off = new Image(154, 22);
     contact_off.src = "images/contactoff.gif";
     contact_on = new Image(154, 22);
     contact_on.src = "images/contacton.gif";
     
     koperta_off = new Image(169, 51);
     koperta_off.src = "images/kopertaoff.gif";
     koperta_on = new Image(169, 51);
     koperta_on.src = "images/kopertaon.gif"; 
     
     

function img_act(imgName) {

     if (ver == "n3") {
     imgOn = eval(imgName + "_on.src");
     document [imgName].src = imgOn;
     }
}
function img_inact(imgName) {
     if (ver == "n3") {     
     imgOff = eval(imgName + "_off.src");
     document [imgName].src = imgOff;
     }
}


// otwieranie obrazka w nowym oknie

function openWindow(url, windowName)
{
  var options = "width=400,height=300,scrollbars=yes,toolbar=no,location=no,status=no,resizable=yes,menubar=no";

 {
    window.open(url,windowName,options);
  }
}

