$(document).ready(function() {
	
	$(".pagetop a,.pagetop_02 a").click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
		return false;
	})
	
     /* ウィンク効果 */
       $(".wink img").hover(function(){
               $(this).css("opacity", "0.0");
               $(this).css("filter", "alpha(opacity=0)");
               $(this).fadeTo("slow", 1.0);
       });

	
	//submit押した感 & ウィンクorsmartrollover
	$('form div.submit input').mousedown(function(){
		$(this).css({position:'relative',top:'1px',left:'1px'});
	}).mouseup(function(){
		$(this).css({position:'static'});
	}).mouseout(function(){
		$(this).css({position:'static'});
	})
	  /* ウィンク版 */
	  /*.hover(function(){
		$(this).css({opacity:0.2});
		$(this).fadeTo('slow',1.0);*/

	  /* smartrollover版　*/
	  .hover(function(){
		$(this).attr('src',$(this).attr('src').replace(/^(.*)_off.(.*)$/,'$1_on.$2'));
	},function(){
		$(this).attr('src',$(this).attr('src').replace(/^(.*)_on.(.*)$/,'$1_off.$2'));
	});
});


