jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
  jQuery("<img>").attr("src", arguments[i]);
  }
};

$.preloadImages("images/buttons/home-over.jpg" ,
"images-homepage/buttons/why-over.jpg",
"images-homepage/buttons/about-us-over.jpg",
"images-homepage/buttons/services-over.jpg",
"images-homepage/buttons/testimonials-over.jpg",
"images-homepage/buttons/links-over.jpg",
"images-homepage/buttons/contact-over.jpg");


$(document).ready( function() {

$("#home img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/home-over.jpg"); });
$("#home img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/home.jpg"); });
$("#why img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/why-over.jpg"); });
$("#why img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/why.jpg"); });
$("#about-us img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/about-us-over.jpg"); });
$("#about-us img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/about-us.jpg"); });
$("#services img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/services-over.jpg"); });
$("#services img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/services.jpg"); });
$("#testimonials img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/testimonials-over.jpg"); });
$("#testimonials img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/testimonials.jpg"); });
$("#links img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/links-over.jpg"); });
$("#links img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/links.jpg"); });
$("#contact img").bind("mouseover", function() { $(this).attr("src", "images-homepage/buttons/contact-over.jpg"); });
$("#contact img").bind("mouseout", function() { $(this).attr("src", "images-homepage/buttons/contact.jpg"); });

});