//画像ロールオーバー
$(function(){
	$("img.rollover").mouseover(function(){
		$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"));
	}).mouseout(function(){
		$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/,"$1$2"));
	}).each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"));
	});
});

////ページスクロール
//$(function(){
//	$("a[href^=#]").click(function(){
//		var Hash = $(this.hash);
//		var HashOffset = $(Hash).offset().top;
//		$("html,body").animate({
//			scrollTop: HashOffset
//		}, 200);//数字が小さいほど速い
//	return false;
//	});
//});
$(function(){  
     $("#toTop a").click(function(){  
     $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');  
     return false;  
     })  
}); 


//小窓
function open_win(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
