function ShowLamp(lamp_id) {
  ShowLampwin = open("templates/showlamp.php?id="+lamp_id, "ShowItem", "width=560,height=350,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
}

function ShowLighter(lighter_id) {
  ShowLighterwin = open("templates/showlighter.php?id="+lighter_id, "ShowItem", "width=560,height=350,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
}

function ShowDrossel(drossel_id) {
  ShowLighterwin = open("templates/showdrossel.php?id="+drossel_id, "ShowItem", "width=560,height=350,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
}


function ShowFoto(foto, alttext) {
var Photo;
Photo = window.open("templates/showfoto.php?foto="+foto+"&alttext="+alttext, "ShowItem", "width=850,height=700,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
// Окно уже открыто, поэтому перемещаем его на передний план.
Photo.focus();
}



function ShowProvod(provod_id) {
  ShowFotorwin = open("templates/showprovod.php?id="+provod_id, "ShowItem", "width=560,height=350,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
}

function ShowProduct1(product_id) {
  ShowFotorwin = open("templates/showproduct1.php?id="+product_id, "ShowItem", "width=560,height=350,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
}


if (document.images)
{
  lefton = new Image(141,223);
  lefton.src = "images/leftactive.gif";
  righton = new Image(187,223);
  righton.src = "images/rightactive.gif";
  ukron = new Image(184,113);
  ukron.src = "images/ukractive.gif";

  leftoff = new Image(141,223);
  leftoff.src = "images/left.gif";
  rightoff = new Image(187,223);
  rightoff.src = "images/right.gif";
  ukroff = new Image(184,113);
  ukroff.src = "images/ukr.gif";
}

function imgOn(imgName)
{
        if (document.images)
        {
          document[imgName].src = eval(imgName + "on.src");
        }
}

function imgOff(imgName)
{
        if (document.images)
        {
          document[imgName].src = eval(imgName + "off.src");
        }
}
