jQuery.noConflict()(function($){


// メインメニュー
	$('body.corporate #mainmenucorporateimg').css({opacity:"0"}).attr('src','/common_2010/pic/corporate-b_f2.jpg').animate({opacity:"0.5"}, 1000 );
	$('body.ir #mainmenuirimg').css({opacity:"0"}).attr('src','/common_2010/pic/ir-b_f2.jpg').animate({opacity:"0.5"}, 1000 );
	$('body.csr #mainmenucsrimg').css({opacity:"0"}).attr('src','/common_2010/pic/csr-b_f2.jpg').animate({opacity:"0.5"}, 1000 );
	$('body.brandservice #mainmenubrandserviceimg').css({opacity:"0"}).attr('src','/common_2010/pic/brand_service-b_f2.jpg').animate({opacity:"0.5"}, 1000 );
	$('body.franchise #mainmenufranchiseimg').css({opacity:"0"}).attr('src','/common_2010/pic/franchise-b_f2.jpg').animate({opacity:"0.5"}, 1000 );
	$('body.recruitment #mainmenurecruitmentimg').css({opacity:"0"}).attr('src','/common_2010/pic/recruitment-b_f2.jpg').animate({opacity:"0.5"}, 1000 );	
	$('body.home #submenuhomeimg').css({opacity:"0"}).attr('src','/common_2010/pic/home-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.news #submenunewsimg').css({opacity:"0"}).attr('src','/common_2010/pic/news-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.shopsearch #submenushopsearchimg').css({opacity:"0"}).attr('src','/common_2010/pic/shop_search-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.customersupport #submenucustomersupportimg').css({opacity:"0"}).attr('src','/common_2010/pic/customer_support-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.inquiry #submenuinquiryimg').css({opacity:"0"}).attr('src','/common_2010/pic/inquiry-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.shopping #submenushoppingimg').css({opacity:"0"}).attr('src','/common_2010/pic/shopping-b_f2.jpg').animate({opacity:"1"}, 1000 );

// コンテンツ内サブメニュー
	$('body.profile #contentsubmenuprofileimg').css({opacity:"0"}).attr('src','/corporate/common/profile-b_f2.gif').animate({opacity:"1"}, 1000 );
	$('body.executive #contentsubmenuexecutiveimg').css({opacity:"0"}).attr('src','/corporate/common/executive-b_f2.gif').animate({opacity:"1"}, 1000 );
	$('body.affiliated #contentsubmenuaffiliatedimg').css({opacity:"0"}).attr('src','/corporate/common/affiliated-b_f2.gif').animate({opacity:"1"}, 1000 );
	$('body.access #contentsubmenuaccessimg').css({opacity:"0"}).attr('src','/corporate/common/access-b_f2.gif').animate({opacity:"1"}, 1000 );
	$('body.history #contentsubmenuhistoryimg').css({opacity:"0"}).attr('src','/corporate/common/history-b_f2.gif').animate({opacity:"1"}, 1000 );
	$('body.initiation #contentsubmenuinitiationimg').css({opacity:"0"}).attr('src','/corporate/common/initiation-b_f2.gif').animate({opacity:"1"}, 1000 );


	$('#mainmenu li a,#submenu li a').each(function(){
		$(this).hover(
			function() {
				$(this).find('img').animate({ 
				opacity: 0.75}, 250 );
			},
			function() {
				$(this).find('img').animate({ 
				opacity: 1}, 250 );
			});
	});
	$('table.datalisttable tr').each(function(){
		$(this).children('th:first').css({'border-left':'1px solid #ccc'});
		$(this).children('th:last').css({'border-right':'1px solid #ccc'});
		$(this).children('td:first').css('background-image','none');
	});
	
	$('table.datalisttable tbody tr:not([class*="nolink"])').children('td').css('cursor','pointer').end().hover(
		function() {
			$(this).find('td').css('background-color','#ffffe5');
		},
		function() {
			$(this).find('td').css('background-color','#ffffff')
	}).click(
		function() {
			var href_str=$(this).find('a').attr('href');
			var target_str=$(this).find('a').attr('target');
			if(target_str=='_blank'){
				window.open(href_str, "");
			}else if(target_str) {
				window.open(href_str, target_str);
			}else {
				location.href=href_str;
			}
		return false;
	});
});




window.addEvent('domready', function(){
	//call multiBox
	var initMultiBox = new multiBox({
		mbClass: '.mb',//class you need to add links that you want to trigger multiBox with (remember and update CSS files)
		container: $(document.body),//where to inject multiBox
		descClassName: 'mbDesc',//the class name of the description divs
		path: './Files/',//path to mp3 and flv players
		useOverlay: true,//use a semi-transparent background. default: false;
		maxSize: {w:900, h:1000},//max dimensions (width,height) - set to null to disable resizing
		addDownload: false,//do you want the files to be downloadable?
		pathToDownloadScript: './Scripts/ForceDownload.asp',//if above is true, specify path to download script (classicASP and ASP.NET versions included)
		addRollover: true,//add rollover fade to each multibox link
		addOverlayIcon: true,//adds overlay icons to images within multibox links
		addChain: false,//cycle through all images fading them out then in
		recalcTop: true,//subtract the height of controls panel from top position
		addTips: true//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
	});
});
