var doneloading = 0;
var curArea = "";
function loadnav() {
  if (document.images) {

    nav_images = new Array("home", "about", "service", "whybis", "contact");
    for(i=0;i<nav_images.length;i++) {
      newimg = new Image();
      newimg.src = "/images/n_"+nav_images[i]+".gif";
      newimg = new Image();
      newimg.src = "/images/n_"+nav_images[i]+"_r.gif";
    }
    return 1;
  }
  return 0;
}
function rollOn(img, doneloading) {
  var loaddone = typeof(doneloading);
  if (document.images && loaddone!= "undefined") {
    var typeofImg = eval("typeof(document.images['"+img+"'])");
    if(typeofImg!="undefined") {
      if(doneloading==1)
        eval("document."+img+".src = '/images/n_"+img+"_r.gif'");
    }
  }
}
function rollOff(img, doneloading) {
  if(img!=curArea) {
    var typeofImg = eval("typeof(document.images['"+img+"'])");
    if(typeofImg!="undefined") {
      var loaddone = typeof(doneloading);
      if (document.images && loaddone!= "undefined") {
        if(doneloading==1)
          eval("document."+img+".src = '/images/n_"+img+".gif'");
      }
    }
  }
}
window.onload = function() {
  doneloading = loadnav();
  if (document.getElementById) {
    if(document.getElementById('content_area').offsetHeight<document.getElementById('right').offsetHeight) {
      document.getElementById('content_area').style.height=document.getElementById('right').offsetHeight+"px";
    }    
    if(document.getElementById('content_area').offsetHeight<document.getElementById('left').offsetHeight) {
      document.getElementById('content_area').style.height=document.getElementById('left').offsetHeight+"px";
    }    
  }
  if(typeof(afterLoad)=="function") {
    afterLoad();
  }
}
