function rollover(){
  var ti = jQuery(":image") || "", img = jQuery('img');
  jQuery([ti,img]).each(function(i){
    this.each(function(){
	  if (this.src && this.src.match('_off')) {
	  	jQuery(this).hover(function(){
		  if (this.src.match('_off')) 
			jQuery(this).attr('src', jQuery(this).attr('src').replace('_off', '_on'))
		}, function(){
		  if (this.src.match('_on')) 
		    jQuery(this).attr('src', jQuery(this).attr('src').replace('_on', '_off'))
		  })
		}
	})
  })
}

$(function(){
	rollover();
})