/* skripta za css menu */

    startList = function() {
        if (document.all&&document.getElementById) {
            navRoot = document.getElementById("dmenu");
            for (i=0; i<navRoot.childNodes.length; i++) {
                node = navRoot.childNodes[i];
                if (node.nodeName=="LI") {
                    node.onmouseover=function() {
                        this.className+=" over";
                    }
                    node.onmouseout=function() {
                        this.className=this.className.replace(" over", "");
                    }
                }
            }
        }
    }
    window.onload=startList;

/* skripta za image-over */

if (document.images)
{
  Image1a = new Image();
  Image1a.src = "fileadmin/templates/img/gostovanje_over.gif";

  Image2a = new Image();
  Image2a.src = "fileadmin/templates/img/action_bottom_over.gif";

  Image1b = new Image();
  Image1b.src = "fileadmin/templates/img/gostovanje.gif";

  Image2b = new Image();
  Image2b.src = "fileadmin/templates/img/action_bottom.gif";

  Image3a = new Image();
  Image3a.src = "fileadmin/templates/img/delavnica_over.gif";

  Image3b = new Image();
  Image3b.src = "fileadmin/templates/img/delavnica.gif";
  
  Image4a = new Image();
  Image4a.src = "fileadmin/templates/img/en/web_hosting_over.gif";
  
  Image4b = new Image();
  Image4b.src = "fileadmin/templates/img/en/web_hosting.gif";

  Image5a = new Image();
  Image5a.src = "fileadmin/templates/img/en/action_bottom_over.gif";

  Image5b = new Image();
  Image5b.src = "fileadmin/templates/img/en/action_bottom.gif";

  function turnOn(imageName)
  {
    if (document.images)
      document[imageName].src = eval(imageName + "a.src");
  }

  function turnOff(imageName)
  {
    if (document.images)
      document[imageName].src = eval(imageName + "b.src");
  }
}

/* skripta za pop-up okna */

function Popup(url, h, w, l, t) {
poph = + h + 40 
popw = + w
disp = window.open("","pop","height=" + poph + ",width=" + popw + ",left=" + l + ",top=" + t + "");
content = '<HTML>';
content += '<HEAD>';
content += '<title>Inetia.com</title>';
content += '</HEAD>';
content += '<BODY style="margin: 0; padding: 0;" link="black" alink="black" vlink="black" onBlur="self.close()">';
content += '<div style="text-align: center; width:' + popw + 'px;"><a href="#" onClick="self.close()"><img src="' + url + '" border="0"></a>';
content += '<br><font size="2px" face="Tahoma"><a href="#" onClick="self.close()">Zapri okno</a></font></div>';
content += '</BODY></HTML>';
disp.document.write(content);
disp.document.close();
}