// we use the $j variable to rename the default jQuery '$' variable so as not to conflict with other libraries.
// var $j = jQuery.noConflict();
      
// Use jQuery via $j(...)
$(document).ready(function(){
        
        // we add the jquery code here
	
	$(".rollover").hover(
		function(){
			if($(this).attr("src").indexOf("-on.jpg") == -1) {
				var newSrc = $(this).attr("src").replace(".jpg","-on.jpg");
				$(this).attr("src",newSrc);
			}
		},
		
		function(){
			if($(this).attr("src").indexOf("-on.jpg") != -1) {
				var oldSrc = $(this).attr("src").replace("-on.jpg",".jpg");
				$(this).attr("src",oldSrc);
			}
		}
	)
        
        
      
}); // end of the jquery document.ready function
