(function($){
	
	$(function(){
		preload();
		$(".ro").hover(
			function(){ $(this).attr( 'src', newimage($(this).attr('src')) ); },
			function(){ $(this).attr( 'src', oldimage($(this).attr('src')) ); }
    );
	});
	
	function preload() {
		$(window).bind('load', function() {
    	$('.ro').each( function( key, elm ) { $('<img>').attr( 'src', newimage( $(this).attr('src') ) ); });
		});
	}
   
	function newimage(src) {
		return src.substring(0, src.search(/(\.[a-z]+)$/) ) + '_over' + src.match(/(\.[a-z]+)$/)[0];
	}
	
	function oldimage(src) {
		return src.replace(/_over\./, '.');
	}
	
})(jQuery);