// mouse over
$(function(){
	$('img, input:image').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.'));
		}
	});
});

// dropdown nemu
$(function(){
	$("ul.sub").hide();
	$("#gnavi ul li").hover(function(){
		$("ul:not(:animated)",this).slideDown("fast");
	},
	function(){
		$("ul",this).slideUp("fast");
	});
});

// link target blank
$(document).ready( function () {
    $('.blank').click(function(){
        window.open(this.href, '_blank');
        return false;
    });
});

// scroll
$(function(){
	$('a[href^=#]').click(function() {
		var speed = 400;
		var href= $(this).attr("href");
		var target = $(href == "#" || href == "" ? 'html' : href);
		var position = target.offset().top;
		$($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing');
		return false;
	});
});





