jQuery.noConflict();

// TB FadeIn Set
TB_speed = "normal";
B_speed  = "fast";
jQuery(document).ready(
	function(){
		// メインボタン
		jQuery("#MB_sitetop a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_shoptop a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_card a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_d_flyer a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_dailynews a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_game_del a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_game_new a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_member_new a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_present a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_project a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_recruit a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_shop a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_vipnews a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_voice a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_pre_movie a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_yajin a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_shopdata a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_game a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		jQuery("#MB_shopblog a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		
		// オープン記念プレゼント
		jQuery("#open_present a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		
		// 0円パチンコ
		jQuery("#b_marupachi a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		
		// カイショウバナー
		jQuery("#BN_project a").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		
		// 商品情報ボタン・カイショウ（総合）
		jQuery(".fade img").hover(
			function(){	jQuery(this).fadeTo(TB_speed,0.5);},
			function(){	jQuery(this).fadeTo(TB_speed,1.0);}
		);
		
		// デジタルチラシ詳細ボタン
		jQuery('p[id^=dlink]').hover(
			function(){
				// ID名を取得
				var idn1 = this.getAttribute("Id").split("k")[1];
				jQuery("#dlink"+idn1).fadeTo(TB_speed,0.5);
			},
			function(){
				// ID名を取得
				var idn2 = this.getAttribute("Id").split("k")[1];
				jQuery("#dlink"+idn2).fadeTo(TB_speed,1.0);
			}
		);
		
		// デジタルチラシ　店舗ページ移動ボタン
		jQuery('td[id^=shop_link]').hover(
			function(){
				// ID名を取得
				var idn1 = this.getAttribute("Id").split("k")[1];
				jQuery("#shop_link"+idn1).fadeTo(TB_speed,0.5);
			},
			function(){
				// ID名を取得
				var idn2 = this.getAttribute("Id").split("k")[1];
				jQuery("#shop_link"+idn2).fadeTo(TB_speed,1.0);
			}
		);
	}
);

// デジタルチラシ（サムネール）：クロスフェード
function Photo_fade(num,path){
	jQuery("img#fade_photo"+num).each(
		function(i){
			var img1 = this.src;
			var img2 = path;
			jQuery(this).hover(
				function(){	this.src = img2;},
				function(){	this.src = img1;}
			);
		}
	);
}
