   jQuery.easing.easeOutBounce = function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	};
	
	jQuery.extend( jQuery.easing,
         {easeOutExpo: function (x, t, b, c, d) {return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;}}
    );


  $(function () {
  
			$(window).load(function(){
		           
		           $('#hiding_mishin').fadeOut(7000);
		           
                   $.fn.soundPlay({url: '/new/scripts/sounds/ts.wav'});
                    
          			setTimeout(
          			  function(){
          			  $('#mishin').fadeOut(2000);
          			}, 7000);
                    
			});

     $('.ja02,.tailor_ascot,.tailor_ascot3,#tips,#bo1,#bo2,#bo3,#bo4,#bo5,.news').css({ opacity:'0'});

     // Happens when page load
     $(window).load(function() {
          $('#loading').hide(); 
          $('#inner').animate({opacity:'1'},{queue:false,duration:2000}); 
                    
          setTimeout(
            function(){
          $('.ja02').animate({ opacity:'1'},3000);
          $('.tailor_ascot').animate({ opacity:'1', top:'130px'},3000, 'easeOutBounce');
          $('.tailor_ascot3').animate({ opacity:'1', left:'280px'},3000, 'easeOutBounce');
          $('#bo1').animate({ opacity:'1', top:'0'},2400, 'easeOutBounce');
          $('#bo2').animate({ opacity:'1', top:'0'},2600, 'easeOutBounce');
          $('#bo3').animate({ opacity:'1', top:'0'},2800, 'easeOutBounce');
          $('#bo4').animate({ opacity:'1', top:'0'},3000, 'easeOutBounce');
          }, 8500);
          
          setTimeout(
            function(){
            $('#bo5').animate({ opacity:'1', top:'0'},3000, 'easeOutBounce');
            $('#tips').animate({ opacity:'1'},3000);
            $('.news').animate({ opacity:'1'},3000);
          }, 10000);

     });

     // Top Page Animation          
     $('img.01').hover(function(){
          $('#tip1').stop(true, true).fadeIn(100);
          }, function(){
          $('#tip1').fadeOut(100);
     });
     $('img.02').hover(function(){
          $('#tip2').stop(true, true).fadeIn(100);
          }, function(){
          $('#tip2').fadeOut(100);
     });
     $('img.03').hover(function(){
          $('#tip3').stop(true, true).fadeIn(100);
          }, function(){
          $('#tip3').fadeOut(100);
     });
     $('img.04').hover(function(){
          $('#tip4').stop(true, true).fadeIn(100);
          }, function(){
          $('#tip4').fadeOut(100);
     });
     $('img.05').hover(function(){
          $('#tip5').stop(true, true).fadeIn(100);
          }, function(){
          $('#tip5').fadeOut(100);
     });
     $('img.06').hover(function(){
          $('#tip6').stop(true, true).fadeIn(100);
          }, function(){
          $('#tip6').fadeOut(100);
     });

        
     // Menu Hover Action
     $('#menu img.m01').hover(function(){
          $('#menu_text p.01').show();
          }, function(){
          $('#menu_text p.01').hide();
     });
     $('#menu img.m02').hover(function(){
          $('#menu_text p.02').show();
          }, function(){
          $('#menu_text p.02').hide();
     });
     $('#menu img.m03').hover(function(){
          $('#menu_text p.03').show();
          }, function(){
          $('#menu_text p.03').hide();
     });
     $('#menu img.m04').hover(function(){
          $('#menu_text p.04').show();
          }, function(){
          $('#menu_text p.04').hide();
     });
     $('#menu img.m05').hover(function(){
          $('#menu_text p.05').show();
          }, function(){
          $('#menu_text p.05').hide();
     });
     $('#menu img.m06').hover(function(){
          $('#menu_text p.06').show();
          }, function(){
          $('#menu_text p.06').hide();
     });
               
  });
