    jQuery.easing.quart = function(x,t,b,c,d) {
   	    return -c * ((t=t/d-1)*t*t*t -1) + b;
    }
    $(function() {
        $("#h_menu ul").lavaLamp({
            fx    : "backinout", 
            speed : 500
            //click : function(event, menuItem) {
                //li要素がクリックされたときの動作
            //}
        });
        $('#navigation').accordion({
            active: '.current',
            header: '.head',
            navigation: false,
            alwaysOpen: true,
            event: 'mouseover',
            fillSpace: false,
            autoHeight:true,
            animated: 'easeslide'
        });
        $('a[href*=#][rel!="face"]').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 },1000,'quart');
        			return false;
        		}
        	}
        });	
    	startTs();
    	
    	$('.dMenuFrame').corner();
    	$('.cts_bgbox').corner();

        $('h3[id^="serviceH3"]').hover(
          function(){ $(this).css({'background-color':'white','cursor':'pointer'}); },
          function(){ $(this).css({'background-color':'#EEE8AA','cursor':'normal'});}
        );
        $('#serviceH3Qua').click(
          function(){ location.href='c1serviceShousaiQuaAction.do'; }
        );
        $('#serviceH3Value').click(
          function(){ location.href='c1serviceShousaiValueAction.do'; }
        );
        $('#serviceH3Limited').click(
          function(){ location.href='c1serviceShousaiLimitedAction.do'; }
        );
        $('#serviceH3500').click(
          function(){ location.href='c1serviceShousai500Action.do'; }
        );
        $('#serviceH3Tom').click(
          function(){ location.href='c1serviceShousaiTomAction.do'; }
        );
        $('#serviceH3Hikaku').click(
          function(){ location.href='c1serviceHikakuAction.do'; }
        );
        $('#serviceH3Pdf').click(
          function(){ location.href='http://www.messem.jp/messem_service.pdf'; }
        );
        $('#serviceH3Else').click(
          function(){ location.href='c1serviceShousaiElseAction.do'; }
        );

    });
    

