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

$(document).ready(function() {

$.preloadImages("/images/nav/over/home.gif", "/images/nav/over/coaching.gif",
"/images/nav/over/leadership.gif", "/images/nav/over/about.gif", "/images/nav/over/ebooks.gif", "/images/nav/over/newsletter.gif","/images/nav/over/brochure.gif", "/images/nav/over/papers.gif", "/images/nav/over/contact.gif", "/images/nav/over/blog.gif", "/images/nav/over/mastery_ad.gif"  );

$('img#home').hover(function() {
	$(this).attr("src","/images/nav/over/home.gif");
		}, function() {
	$(this).attr("src","/images/nav/home.gif");
});
$('img#coaching').hover(function() {
	$(this).attr("src","/images/nav/over/executive_coaching.gif");
		}, function() {
	$(this).attr("src","/images/nav/executive_coaching.gif");
});
$('img#leadership').hover(function() {
	$(this).attr("src","/images/nav/over/leadership_development.gif");
		}, function() {
	$(this).attr("src","/images/nav/leadership_development.gif");
});
$('img#about').hover(function() {
	$(this).attr("src","/images/nav/over/about_us.gif");
		}, function() {
	$(this).attr("src","/images/nav/about_us.gif");
});
$('img#ebooks').hover(function() {
	$(this).attr("src","/images/nav/over/ebooks.gif");
		}, function() {
	$(this).attr("src","/images/nav/ebooks.gif");
});
$('img#newsletter').hover(function() {
	$(this).attr("src","/images/nav/over/newsletter.gif");
		}, function() {
	$(this).attr("src","/images/nav/newsletter.gif");
});
$('img#brochure').hover(function() {
	$(this).attr("src","/images/nav/over/brochure.gif");
		}, function() {
	$(this).attr("src","/images/nav/brochure.gif");
});
$('img#papers').hover(function() {
	$(this).attr("src","/images/nav/over/white_papers.gif");
		}, function() {
	$(this).attr("src","/images/nav/white_papers.gif");
});
$('img#contact').hover(function() {
	$(this).attr("src","/images/nav/over/contact_us.gif");
		}, function() {
	$(this).attr("src","/images/nav/contact_us.gif");
});
$('img#blog').hover(function() {
	$(this).attr("src","/images/nav/over/wcg_blog.gif");
		}, function() {
	$(this).attr("src","/images/nav/wcg_blog.gif");
});
$('img#mastery_ad').hover(function() {
	$(this).attr("src","/images/common/over/personal_mastery_ad.jpg");
		}, function() {
	$(this).attr("src","/images/common/personal_mastery_ad.jpg");
});


});

