MJL.event.add(window, "load", function(event) {

	MJL.enable.flash("flash", {version:8});
	MJL.enable.rollover("roll", {disable:"unroll"});
	MJL.enable.styleSwitcher("styleswitcher");
	MJL.enable.tab("tabs");

}, false);

/* 空室検索 */
$(function(){
	$('#valid_people_label').click(
		function(){ // クリック

			if ( $("#valid_people").attr("checked") ) { // 人数が選択されたとき
				$("#plan_search_price").attr("class", "plan_search_condition_price_active");
				$("#condition_price_low").attr("disabled", false);
				$("#condition_price_high").attr("disabled", false);
			} else {
				$("#plan_search_price").attr("class", "plan_search_condition_price_disabled");
				$("#condition_price_low").attr("disabled", "disabled");
				$("#condition_price_high").attr("disabled", "disabled");
			}

		}
	);
});


/*ページ内スムーススクロール*/

/* トップページのタブで影響があるのでコメントアウト

// Easingの追加
jQuery.easing.quart = function (x, t, b, c, d) {
return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery.easing.quint = function (x, t, b, c, d) {
return c * ((t=t/d-1)*t*t*t*t + 1) + b;
};


jQuery(document).ready(function(){
 
    //
    // <a href="#***">の場合、スクロール処理を追加
    //
    jQuery('a[href*=#]').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
            var $target = jQuery(this.hash);
            $target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                jQuery('html,body').animate({ scrollTop: targetOffset }, 1200, 'quint');
                return false;
            }
        }
    });
 
});

*/

