// JavaScript Document
$( function(){
	var conf = {
		className : "mouse_over",
		postfix : "_on"
	};
	$( "." + conf.className ).each( function(){
		this.originalSrc = this.src;
		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg)/, conf.postfix+"$1");
		preloadedImage(this.rolloverSrc);
	}).hover( function(){
		this.src = this.rolloverSrc;
	},function(){
		this.src = this.originalSrc;
	});
});

preloadedImages = []
function preloadedImage( url ){
	var p = preloadedImages;
	var l = p.length;
	p[l] = new Image();
	p[l].src = url;
}