function initRollover()
{

   var nodes;
   
   try
   {
		nodes = document.getElementById("leads").getElementsByTagName("div");
   }
   catch (e)
   {
		// cant find leads? then return.
		return;
   }
   
   if(nodes)
   {
      var mainHeight = document.getElementById("leads").offsetHeight;
      for (var i=0; i<nodes.length; i++)
      {
         nodes[i].onclick = function()
         {
            links = this.getElementsByTagName("a");
            for (var m=0; m<links.length; m++)
            window.location.href = links[m].href;
            
         }
         nodes[i].onmouseover = function () 
         {
            if (this.className.indexOf("hover") == -1)
            {
               this.className += " hover";
            }
         }
         nodes[i].onmouseout = function ()
         {
            this.className = this.className.replace(" hover", "");
         }
         
      }
   }
}
if (window.addEventListener) window.addEventListener("load", initRollover, false);
else if (window.attachEvent) window.attachEvent("onload", initRollover); 

function initRollover2()
{

   var nodes;
   
   try
   {
		nodes = document.getElementById("products").getElementsByTagName("div");
   }
   catch (e)
   {
		// cant find leads? then return.
                return;
   }
   
   if(nodes)
   {
      var mainHeight = document.getElementById("products").offsetHeight;
      for (var i=0; i<nodes.length; i++)
      {
         nodes[i].onclick = function()
         {
            links = this.getElementsByTagName("a");
            for (var m=0; m<links.length; m++)
            window.location.href = links[m].href;
            
         }
         nodes[i].onmouseover = function () 
         {
            if (this.className.indexOf("hover") == -1)
            {
               this.className += " hover";
            }
         }
         nodes[i].onmouseout = function ()
         {
            this.className = this.className.replace(" hover", "");
         }
         
      }
   }
}

function setLangChoice(){
   var hn = window.location.hostname;
   if(hn == "fr.practicomfort.be"){
      document.getElementById("taalkeuze").style.display = "block";
      document.getElementById("taal-frans").style.display = "block";
   }
   else if((hn == "practicomfort.be") || (hn = "www.practicomfort.be")){
      document.getElementById("taalkeuze").style.display = "block";
      document.getElementById("taal-vlaams").style.display = "block";
   }
}

if (window.addEventListener){
   window.addEventListener("load", initRollover2, false);
   window.addEventListener("load", setLangChoice, false);
}
else if (window.attachEvent){
   window.attachEvent("onload", initRollover2); 
   window.attachEvent("onload", setLangChoice);
}