// Marc Gray 2008 -- Rollover Manager for KDezign

var rollovers = [];

function preLoad(name,w,h) {
  img = new Image(w,h);
  img.src = '/images/'+name;
  rollovers[rollovers.length] = img;    
}

function rollOver(img) {
  img.src = img.src.replace(/_u/g,'_d');
  return true;
}

function rollOut(img) {
  img.src = img.src.replace(/_d/g,'_u');
  return true;
}

if (document.images) {
  preLoad('home_d.jpg',81,46);
  preLoad('range_d.jpg',119,46);
  preLoad('contact_d.jpg',124,46);
  preLoad('login_d.jpg',89,46);
  preLoad('register_d.jpg',100,46);
  preLoad('logout_d.jpg',89,46);
  preLoad('account_d.jpg',100,46);
}