jQuery.noConflict()(function($){

	var preLoadImg = new Object();

// メインメニュー
	$('body.about #mainmenuaboutimg').css({opacity:"0"}).attr('src','/common_2010/pic/about-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.menu #mainmenumenuimg').css({opacity:"0"}).attr('src','/common_2010/pic/menu-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.shop #mainmenushopimg').css({opacity:"0"}).attr('src','/common_2010/pic/shop-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.customersupport #mainmenucustomersupportimg').css({opacity:"0"}).attr('src','/common_2010/pic/customer_support-b_f2.jpg').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 );
			});
	});
});



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)
	});
});
