﻿$J(function() {
	// Preload images
	$J("img.jq_hover").load(function() {
		$J("<img>").attr("src", $J(this).attr("src").replace(/^(.*)(\.\w+)$/, "$1_a$2"));
	});

	$J("img.jq_hover").hover(
		function()
		{
			$J(this).attr("src", $J(this).attr("src").replace(/^(.*)(\.\w+)$/, "$1_a$2"));
		},
		function()
		{
			$J(this).attr("src", $J(this).attr("src").replace(/^(.*)_a(\.\w+)$/, "$1$2"));
		}
	);
});
