<!--
$(function(){
	
	//scroll
	$("a[href*='#Wrapper']").easingScroll({easing: "easeInOutExpo",duration: 1200});
	
	//ヘッダーロールオーバー
	$("#Header a").each(function() {
		$(this).hover(
	  	function() {$(this).stop().animate({opacity: 0},400); },
		function() {$(this).stop().animate({opacity: 1},400); });
	});
	
	//ナビロールオーバー
	$("#Navi a").each(function() {
		
		$(this).hover(
	  	function() {
			//parentsLinkの場合は、不透明度100%
			if( $(this).hasClass("parentsLink") ){$(this).stop().animate({opacity: 1},400);}
			//parentsLink以外、不透明度0%
			else $(this).stop().animate({opacity: 0},400); },
		function() {$(this).stop().animate({opacity: 1},400); });
	});
	
	//イメージロールオーバー（.ovr以外）
	$("#Main a img").not(".ovr").each(function() {
		$(this).hover(
	  	function() {$(this).stop().animate({opacity: 0.5},600); },
		function() {$(this).stop().animate({opacity: 1},600); });
	});

	//イメージ変更ロールオーバー
	var image_cache = new Object();
	$("img.ovr").each(function(i) {
	var imgsrc = this.src;
	var dot = this.src.lastIndexOf('.');
	var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
	image_cache[this.src] = new Image();
	image_cache[this.src].src = imgsrc_on;
	$(this).css("opacity","1");
	$(this).hover(
	  function() { this.src = imgsrc_on; $(this).stop().animate({opacity: 0.8},300); },
	  function() { this.src = imgsrc; $(this).stop().animate({opacity: 1},300); });
	});

});

//別ウィンドウ用
function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
	var anchor = anchors[i];
	if (anchor.getAttribute("href") &&
	anchor.getAttribute("rel") == "external")
	anchor.target = "_blank";
	}
}
window.onload=externalLinks;

// -->
