
// NS3+/MSIE4+ compatibility test (for javascript image swapping)
compat = parseInt( navigator.appVersion ) >= 3  &&  
                   navigator.userAgent.indexOf("MSIE 3") == -1;

// cache images for quick swapping
// menu images
if( compat )
{ home = new Image;(38,33)
  home.src = "images/menu/home.png";
  homeon = new Image;(38,33)
  homeon.src = "images/menu/homeon.png";
  
  news = new Image;(36,33)
  news.src = "images/menu/news.png";
  newson = new Image;(36,33)
  newson.src = "images/menu/newson.png";
  
  services = new Image;(57,33)
  services.src = "images/menu/services.png";
  serviceson= new Image;(57,33)
  serviceson.src = "images/menu/serviceson.png";
  
  support = new Image;(53,33)
  support.src = "images/menu/support.png";
  supporton= new Image;(53,33)
  supporton.src = "images/menu/supporton.png";
  
  comments = new Image;(72,33)
  comments.src = "images/menu/comments.png";
  commentson = new Image;(72,33)
  commentson.src = "images/menu/commentson.png";
  
  contact = new Image;(52,33)
  contact.src = "images/menu/contact.png";
  contacton = new Image;(52,33)
  contacton.src = "images/menu/contacton.png";
  
// support page images

  isllight = new Image;(105,110)
  isllight.src = "images/isllight.png";
  isllighton = new Image;(105,110)
  isllighton.src = "images/isllighton.png";
  
}

// swap images using the cached images
function Swap(x, y)
{ if (compat) { document.images[x].src=eval(y+'.src'); }
}



