//(function($){
	//コンテンツ背景画像設定
	var getContentElm = function(elm){
		var obj = $(elm).size();
		return !!obj;
	}
	if(getContentElm('#content02-01-01')&&getContentElm('#content02-01-02')){
		$('#content-area').addClass('column4');
	}else if(!getContentElm('#content02-02')){
		$('#content-area').addClass('column2');
	}else{
		$('#content-area').addClass('column3');
	}
	//トップページメニュー設定
	$('ul.menu span.label').each(function(i,val){
		var maxwidth = Math.ceil($(this).parent().width()*0.7);
		if($(this).width() > maxwidth){
			$(this).parent().addClass('wide');
			$(this).next().wrap('<span class="wide-price"></span>')
		};
	});
	//重要なお知らせ
	var showImportantNews = function(){
		setTimeout(function(){
			$('#complement-area .important')
			.css({backgroundColor: 'black'})
			.animate({
				backgroundColor: '#faf9dc'
			},{
				duration: 1000
			},1000);
		});
	}
	showImportantNews();
	//タイトルの調整
	$('.title01').each(function(val,i){
		var htm = '<span>' + $(this).html() + '</span>';
		$(this).html(htm);
	});
	var setGlid04C = function(){
		var h = $('.grid04-c').height();
		$('.grid04-c').find('div').height(h + 'px');
	}
	setGlid04C();
	// fancyboxのセットアップ
	$('a.zoom').fancybox();
	// 本文の高さ調整
	var fixContentH = function(){
		windowH = window.innerHeight || document.body.clientHeight;
		headerH = $('#header-area').height();
		footerH = $('#footer-area').height();
		contentH = $('#content-area').height();
		margin = 45;
		if(windowH > headerH + footerH + contentH + 45){
			newH = windowH - headerH - footerH - 45;
			$('#content-area').css({'height':newH + 'px'})
		}
	}
	fixContentH();
	$(window).resize(function(){
		$('#content-area').css({'height':'auto'})
		fixContentH();
		//alert($('#content-area').height());
	});

//})(jQuery);