
var imgPath;
// will contain path to images
imgPath = "img/"
// preload images
// image key
// d series = default image
// h series = hover image
//
OK = false;
isIE = true;
navname = navigator.appName;
navversion = parseInt(navigator.appVersion);

if (navversion >= 3) {
 OK = true;
 if((navversion < 4)&&(navname=="Microsoft Internet Explorer")) {
  OK = false;
 }
}

if (document.images) {
 
d0 = new Image();
d0.src = imgPath + "aboutus.gif";
d1 = new Image();
d1.src = imgPath + "procurement.gif";
d2 = new Image();
d2.src = imgPath + "staffing.gif";
d3 = new Image();
d3.src = imgPath + "group.gif";
d4 = new Image();
d4.src = imgPath + "admin.gif";
d5 = new Image();
d5.src = imgPath + "contact.gif";
d6 = new Image();
d6.src = imgPath + "employee.gif";
d7 = new Image();
d7.src = imgPath + "employer.gif";
d8 = new Image();
d8.src = imgPath + "knowledgecenter.gif";
 
h0 = new Image();
h0.src = imgPath + "aboutusover.gif";
h1 = new Image();
h1.src = imgPath + "procurementover.gif";
h2 = new Image();
h2.src = imgPath + "staffingover.gif";
h3 = new Image();
h3.src = imgPath + "groupover.gif";
h4 = new Image();
h4.src = imgPath + "adminover.gif";
h5 = new Image();
h5.src = imgPath + "contactover.gif";
h6 = new Image();
h6.src = imgPath + "employeeover.gif";
h7 = new Image();
h7.src = imgPath + "employerover.gif";
h8 = new Image();
h8.src = imgPath + "knowledgecenterover.gif";
}

function on(imgName) {
   if (document.images) {
       document["d" + imgName].src = eval("h" + imgName + ".src");
   }
}

// Button released ("OFF") look
function off(imgName) {
   if (document.images) {
       document["d" + imgName].src = eval("d" + imgName + ".src");
   }
}
