function smartRollover() {
	if(document.getElementsByTagName) {
		var images = $("img");

		$(images).each(function(){
			if($(this).attr("src").match("_off.")) {
				$(this).hover(
				function() {
					$(this).attr("src", $(this).attr("src").replace("_off.", "_on."));
				},
				function() {
					$(this).attr("src", $(this).attr("src").replace("_on.", "_off."));
				});
			}
		});
	}
}

function defaultSet(){
	$("img[src$=png]").pngfix();
}

$(function(){
	smartRollover(),defaultSet();
});

