// JavaScript Document

$(function(){
	$("img").each(function(){
		if(String($(this).attr("src")).match(/_off\.(.*)$/)){
			var img = new Image();
			img.src = String($(this).attr("src")).replace(/_off\.(.*)$/,"_on.$1");
		}
	});
	$("*").each(function(){
		var result;
		if("none" != (result = $(this).css("background-image"))){
			result = String(result).slice(4,-1);
			if(result.charAt(0)=='"') result = String(result).slice(1,-1); //firefox
			if(result.match(/_off\.(.*)$/)){
				var img = new Image();
				img.src = result.replace(/_off\.(.*)$/,"_on.$1");
			}
		}
	});
});

$(function(){
     $('a img').hover(function(){
        $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
          }, function(){
             if (!$(this).hasClass('currentPage')) {
             $(this).attr('src', $(this).attr('src').replace('_on','_off'));
        }
   });
});

