jQuery(document).ready(function($) {
	var postfix = '_on';
	$('a.rollover img').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
			+ postfix
			+ src.substring(src.lastIndexOf('.'));
		img.css('background', 'url("' + src_on + '") no-repeat left top');
		img.hover(
			function() {
				img.attr('src',src_on);
			},
			function() {
				img.attr('src',src);
			}
		);
	});
});



$(function(){
//	if (! $.browser.safari){
		$(".pagetop").click(function(){
			$(this).blur();
			$("html,body").animate({scrollTop:0},"slow");
			return false;
		});
//	}
});

function icnew(newdate){
	var dd = new Date();
	var fd = new Date(dd.getYear(),dd.getMonth(),dd.getDate()-7);
	newdate = fd.getYear() + "-" + (fd.getMonth()+1) + "-" + fd.getDate();
	if(nowdate < newdate){
		document.write("<div class='new'></div>");
	}
}
