// JavaScript Document

$(function() {
jQuery.preloadImages = function(){
    for(var i = 0; i<arguments.length; i++){
        jQuery("<img>").attr("src", arguments[i]);
    }
};
// Usage
$.preloadImages("images/right_img/site_top_002_21.jpg", 
				"images/right_img/site_top_002_22.jpg", 
				"images/right_img/site_top_002_22.jpg", 
				"images/right_img/site_top_002_23.jpg", 
				"images/right_img/site_top_002_24.jpg", 
				"images/right_img/site_top_002_25.jpg", 
				"images/right_img/site_top_002_26.jpg", 
				"images/right_img/site_top_002_27.jpg", 
				"images/right_img/site_top_002_28.jpg", 
				"images/right_img/site_top_002_29.jpg");


if (document.querySelectorAll) {
// IE 8.0 Beta と Apple Safari 3、Google Chrome
}
else {

}


	$('.fl_0').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_0').animate({ opacity: 0 }, 0 );
	$('.fl_1').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_1').animate({ opacity: 0 }, 0 );
	$('.fl_2').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_2').animate({ opacity: 0 }, 0 );
	$('.fl_3').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_3').animate({ opacity: 0 }, 0 );
	$('.fl_4').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_4').animate({ opacity: 0 }, 0 );
	$('.fl_5').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_5').animate({ opacity: 0 }, 0 );
	$('.fl_6').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_6').animate({ opacity: 0 }, 0 );
	$('.fl_7').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_7').animate({ opacity: 0 }, 0 );
	$('.fl_8').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_8').animate({ opacity: 0 }, 0 );
	$('.fl_9').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_9').animate({ opacity: 0 }, 0 );
	$('.fl_10').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('.fl_10').animate({ opacity: 0 }, 0 );
/*----------------------------------------------------*/
//グローバルメニュー
/*----------------------------------------------------*/
	//初期動作
	menu_hd();
	
	//メニューロールオーバー処理
	$('.menu li:not(li.naw , li#m5)').hover(
    function () { $(this).stop().animate({ opacity: 1 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	
	//フッターリンクロールオーバー処理
	$('*#f_blink').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); },
    function () { $(this).stop().animate({ opacity: 0 }, 100 ); });
	$('*#f_blink').animate({ opacity: 0 }, 0 );
	
	//サファリ用処理（クリックされたら非アクティブへ）
	$('.menu li:not(li.naw , li#m5)').click( function(){ menu_hd(); });
	
	
	//メニュー全非アクティブ
	function menu_hd(){
		$('.menu li:not(li.naw , li#m5)').animate({ opacity: 0 }, 0 );
	}
	

	//各リンクボタンロールオーバー処理
	$('*#blink').hover(
    function () { $(this).stop().animate({ opacity: 0.5 }, 100 ); }, 
    function () { $(this).stop().animate({ opacity: 1 }, 100 ); });
	$('*#blink').click( function(){ $(this).stop().animate({ opacity: 1 }, 100 ); });
	
	
	$("#g1").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_21.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g2").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_22.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#gb2").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_30.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g3").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_23.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g4").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_24.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g5").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_25.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g6").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_26.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g7").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_27.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g8").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_28.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	$("#g9").hover(
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_29.jpg" />'); }, 
    function () { $("#map_img").html('<img src="images/right_img/site_top_002_20.jpg" />');/**/ });
	

	$('.l_1').animate({ opacity: 0 }, 100 ).css('display', 'block');
	$('.l_1').hover(
    function () { $(this).animate({ opacity: 0.3 }, 100 ); }, 
    function () { $(this).animate({ opacity: 0 }, 100 ); });
	$('.l_2').animate({ opacity: 0 }, 100 ).css('display', 'block');
	$('.l_2').hover(
    function () { $(this).animate({ opacity: 0.3 }, 100 ); }, 
    function () { $(this).animate({ opacity: 0 }, 100 ); });
	$('.l_3').animate({ opacity: 0 }, 100 ).css('display', 'block');
	$('.l_3').hover(
    function () { $(this).animate({ opacity: 0.3 }, 100 ); }, 
    function () { $(this).animate({ opacity: 0 }, 100 ); });
	$('.l_4').animate({ opacity: 0 }, 100 ).css('display', 'block');
	$('.l_4').hover(
    function () { $(this).animate({ opacity: 0.3 }, 100 ); }, 
    function () { $(this).animate({ opacity: 0 }, 100 ); });

	/*footerlink*/
	
});

