<!--
   function openPhoto(sPhoto)

   {
     var WinW,WinH,x,y;
     WinW = 850;
     WinH = 650;
     x=(screen.width/2-(WinW/2)) - 12;
     y=(screen.height/2-(WinH/2));
     window.open("photo" + sPhoto.substring(0,1) + ".html?id=" + sPhoto ,"","location=0,resizable,height=" + WinH + ",top=" + y + ",left=" + x + ",width=" + WinW + ",scrollbars=no,titlebar=no,status=yes,toolbar=0,menubar=0");
   }


   function setPhoto()
   {
     var sURL = document.location.toString();
     var i = sURL.indexOf("?id");
     var sPhoto = sURL.substring(i + 4, i + 7);
     var info = document.getElementById(sPhoto).title.split(";");

     var sTitle = info[3];
     var sTitle2 = document.getElementById(sPhoto).innerHTML;
     
     document.getElementById("idPhoto").src = "../photo/" + sPhoto + ".jpg";
     document.getElementById("idPhoto").alt = sTitle; 
     document.title = sTitle;
     document.links[0].href = "../is/photo" + sPhoto.substring(0,1)  + ".html?id=" + info[1];
     document.links[1].href = "../is/photo" + sPhoto.substring(0,1)  + ".html?id=" + info[0];
     
     document.getElementById("idText").innerHTML = sTitle;
     document.getElementById("idText2").innerHTML = sTitle2;

     if (info[2] == "1")
     {
       document.getElementById("idZoom").href = "javascript: setDetail()";
       document.getElementById("idZoom").innerHTML = "(+) Sjį stękkun";
     }


   }

   function setDetail()
   {
      var sURL = document.location.toString();
      var i = sURL.indexOf("?id");
      var sPhoto = sURL.substring(i + 4, i + 7);
      document.getElementById("idZoom").href = "javascript: setPhoto()";
      document.getElementById("idZoom").innerHTML = "(-) Sjį mynd";
      document.getElementById("idPhoto").src = "../photo/" + sPhoto + "d.jpg";  
   }
-->
