var jqOver = function() {
	$("img[@ref=over]")
	    .mouseover(function () {  
	        this.src = this.src.replace(/^(.+)_off(.[a-z]+)$/, "$1_on$2");  
	    })  
	    .mouseout(function () {  
	        this.src = this.src.replace(/^(.+)_on(.[a-z]+)$/, "$1_off$2");  
	    })  
	    .each(function () {  
	        this.preloaded = new Image;  
	        this.preloaded.src = this.src.replace(/^(.+)_off(.[a-z]+)$/, "$1_on$2");  
	});
};

$(function(){
    jqOver();
});
