jQuery.noConflict()(function($){

	var preLoadImg = new Object();

// メインメニュー
	$('body.home #homeimg').css({opacity:"0"}).attr('src','/common_2010/pic/home-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.vectrix #vectriximg').css({opacity:"0"}).attr('src','/common_2010/pic/vectrix-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.product #productimg').css({opacity:"0"}).attr('src','/common_2010/pic/product-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.environmental #environmentalimg').css({opacity:"0"}).attr('src','/common_2010/pic/environmental-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.question #questionnaireimg').css({opacity:"0"}).attr('src','/common_2010/pic/questionnaire-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.inquiry #inquiryimg').css({opacity:"0"}).attr('src','/common_2010/pic/inquiry-b_f2.jpg').animate({opacity:"1"}, 1000 );
	$('body.application #applicationimg').css({opacity:"0"}).attr('src','/common_2010/pic/application-b_f2.jpg').animate({opacity:"1"}, 1000 );

	$("#mainmenu li a").each(function(){
		$(this).hover(
			function() {
				$(this).find('img').animate({ 
				opacity: 0.4}, 250 );
			},
			function() {
				$(this).find('img').animate({ 
				opacity: 1}, 250 );
			}
		);
	});

// ロールオーバー
	$("a.rollover img").each(function(){
		var imgSrc = this.src;
		var sep = imgSrc.lastIndexOf('.');
		var onSrc = imgSrc.substr(0, sep) + '_f2' + imgSrc.substr(sep, 4);
		preLoadImg[imgSrc] = new Image();
		preLoadImg[imgSrc].src = onSrc;
		$(this).parent("a.rollover").hover(
			function() {
				$(this).children("img").css({opacity: "0"}).attr('src',onSrc).animate({ 
    				opacity: 1}, 250 );
			},
			function() {
				$(this).children("img").attr('src',imgSrc);
			}
		);
	});





	
});

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: false,//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)
	});
});

