

		$(document).ready(function() {
			// Preload all rollovers
			$("#mainNav img").each(function() {
				// Set the original src
				rollsrc = $(this).attr("src");
				rollON = rollsrc.replace('.gif', '_over.gif');
				newImg = new Image(); // create new image obj
				$(newImg).attr("src", rollON); // set new obj's src
			});
			// Navigation rollovers
			$("#mainNav a").mouseover(function(){
				imgsrc = $(this).children("img").attr("src");
				
				if (typeof(imgsrc) != 'undefined' && imgsrc.match("_off.gif")) {
				imgsrcON = imgsrc.replace('_off.gif', '_over.gif');
				$(this).children("img").attr("src", imgsrcON);
				}
			});
			
			// Handle mouseout
			$("#mainNav a").mouseout(function(){
				if (typeof(imgsrc) != 'undefined') {
				$(this).children("img").attr("src", imgsrc);
				}
			});
		});
			
				