jQuery.noConflict()(function($){


// オーダー
	$('#orderlistbox').before('<div id="openall">内容を全て開く</div>');
	$('#openall').toggle(function() {
		$('.orderlistbody').slideDown('500');
		$(this).text('内容を全て閉じる');
	},function() {
		$('.orderlistbody').slideUp('500');
		$(this).text('内容を全て開く');
	});	
	
	$('#orderlistbox li strong.orderlistheader').css('cursor','pointer').hover(function() {
		$(this).animate({ 
    			opacity: 0.5}, 250 );
	},function() {
		$(this).animate({ 
    			opacity: 1}, 250 );
	}).toggle(function() {
		$(this).next().slideDown('500');
	},function() {
		$(this).next().slideUp('500');
	});	

	$('a.inquirylink').click(function(){
		if($(this).data('querystr')){
			location.href='/inquiry/?'+$(this).data('querystr');
		}else {
			location.href='/inquiry/';
		}
	});


// ロールオーバー
	var preLoadImg = new Object();
	$('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: 'multiBoxDesc',//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:700, h:450},//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: true,//cycle through all images fading them out then in
		recalcTop: false,//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)
	});
});



//-->
