$(document).ready(function(){
	$("a img[src*='_on']").addClass("current");
	$("a img,input").mouseover(function(){
		if ($(this).attr("src")){
			$(this).attr("src",$(this).attr("src").replace("_off.", "_on."));
		}			
		});
		$("a img[class!='current'],input").mouseout(function(){
		if ($(this).attr("src")){
			$(this).attr("src",$(this).attr("src").replace("_on.", "_off."));
		}
		});
});

// firefox bug reset script
function resetRollover() {
  var images = $('a img');
  for(var i = 0; i < images.length; i++){
    if(images[i].getAttribute("src").match("_on.")) {
      images[i].setAttribute("src", images[i].getAttribute("src").replace("_on.", "_off."));
    }
  }
}
