///////////////////////////////////////////////////////////////////////
/*           JavaScript Resource file for Newtown                    */
///////////////////////////////////////////////////////////////////////
// by LotusHead > he does it cauuse he loves it! lotus@finegrafix.co.za

// Script Preload Images //


    if (document.images)
    {
      preload_image_object = new Image();
      // set image url
      image_url = new Array();
      image_url[0] = "../images/butt-home_over.gif";
      image_url[1] = "../images/butt-home_over_over.gif";
      image_url[2] = "../images/butt-comp_over.gif";
      image_url[3] = "../images/butt-comp_over_over.gif";
      image_url[4] = "../images/butt-serv_over.gif";
      image_url[5] = "../images/butt-serv_over_over.gif";
	  image_url[6] = "../images/butt-work_over.gif";
      image_url[7] = "../images/butt-work_over_over.gif";
      image_url[8] = "../images/butt-news_over.gif";
      image_url[9] = "../images/butt-news_over_over.gif";
      image_url[10] = "../images/butt-cont_over.gif";
      image_url[11] = "../images/butt-cont_over_over.gif";
	  image_url[12] = "../images/more.gif";
      image_url[13] = "../images/more2.gif";
	  image_url[14] = "../images/icon_pdf";
      image_url[15] = "../images/icon_pdf_over.gif";
	  image_url[16] = "../images/icon_mpg.gif";
      image_url[17] = "../images/icon_mpg_over.gif";

       var i = 0;
       for(i=0; i<=3; i++)
         preload_image_object.src = image_url[i];
    }



startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
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;

