$(window).bind('load', function(){
   var preload = [
     '../images/nav_loginOver.gif',
     '../images/nav_registerOver.gif',
	 '../images/topNav1_over.gif',
	 '../images/topNav2_over.gif',
	 '../images/topNav3_over.gif',
	 '../images/topNav4_over.gif',
	 '../images/topNav5_over.gif',
	 '../images/topNav6_over.gif',
     '../images/topNav7_over.gif',
	 '../images/home_btn_registerOver.gif',
	 '../images/home_btn_calendarOver.gif'
	 ];           
   $(document.createElement('img')).bind('load', function(){
    if(preload[0]) this.src = preload.shift();
   }).trigger('load');          
});



 /* $(document).ready(function(){
	$(".loginBox a.over img").hover(
		function(){
			if($(this).attr("src").indexOf("Over") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","Over.gif");
				$(this).attr("src",newSrc);
			}
		},
		function(){
			if($(this).attr("src").indexOf("Over.gif") != -1) {
				var oldSrc = $(this).attr("src").replace("Over.gif",".gif");
				$(this).attr("src",oldSrc);
			}
		}
	);
});

$(document).ready(function(){
	$(".topNav a.over img").hover(
		function(){
			if($(this).attr("src").indexOf("_over") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","_over.gif");
				$(this).attr("src",newSrc);
			}
		},
		function(){
			if($(this).attr("src").indexOf("_over.gif") != -1) {
				var oldSrc = $(this).attr("src").replace("_over.gif",".gif");
				$(this).attr("src",oldSrc);
			}
		}
	);
});

$(document).ready(function(){
	$(".home_toolBox a.over img").hover(
		function(){
			if($(this).attr("src").indexOf("Over") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","Over.gif");
				$(this).attr("src",newSrc);
			}
		},
		function(){
			if($(this).attr("src").indexOf("Over.gif") != -1) {
				var oldSrc = $(this).attr("src").replace("Over.gif",".gif");
				$(this).attr("src",oldSrc);
			}
		}
	);
}); */



