/* [rollover] --------------------------------------------------------------- */
$ (function () {
	$ ("img.hover").each (function () {
		$ ("<img>").attr ("src", this.src.replace (/\.([^.]+)$/, "_hover." + "$1")).appendTo ("body").hide ();
	});
	$ ("a:has(img.hover)").find("img.hover", this)
	.hover (function () {
		this.src = this.src.replace (/\.([^.]+)$/, "_hover." + "$1");
	}, function () {
		this.src = this.src.replace (/_hover\.([^.]+)$/, "." + "$1");
	}).click(function(){
		this.src = this.src.replace (/_hover\.([^.]+)$/, "." + "$1");
	});
	$ ("input.hover").each (function () {
		$ ("<img>").attr ("src", this.src.replace (/\.([^.]+)$/, "_hover." + "$1")).appendTo ("body").hide ();
		$ (this).hover (function () {
			this.src = this.src.replace (/\.([^.]+)$/, "_hover." + "$1");
		}, function () {
			this.src = this.src.replace (/_hover\.([^.]+)$/, "." + "$1");
		});
	});
});

