// jQuery Rollover



jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
}


// preload images first (can run before page is fully loaded)
$.preloadImages("images/storyideas_on.gif", "images/aboutus_on.gif", "images/contactinfo_on.gif", "images/requestvideo_on.gif");
$(
	function()
	{
		// set up rollover
		$("img.rollover").hover(
			function()
			{
				this.src = this.src.replace("_off","_on");
			},
			function()
			{
				this.src = this.src.replace("_on","_off");
			}
		);
	}
)



