// JavaScript Document
   $(function(){
  $(".d_menu li").mouseover(function(){  
         $(this).stop().animate({height:'150px'},{queue:false, duration:600, easing: 'easeOutBounce'})  
     });  
   
     $(".d_menu li").mouseout(function(){  
         $(this).stop().animate({height:'43px'},{queue:false, duration:600, easing: 'easeOutBounce'})  
     });  
	 
/*     $('.zoom').zoomy();
*/	
     $('.zoom').click(function(){
		$(this).addClass('zoom');
		$('.zoom').zoomy();
     });
	  $('.zoom').click(function(){
		$(this).removeClass('.zoom');
     });
	 
  /*   $(window).scroll(function(){
	   $('.d-float-menu')
	     .stop()
		 .animate({top: $(document).scrollTop()}, 'slow', 'easeOutBack' );
	 });  */
	 $(window).scroll(function(){
	   $('.d_brandmenu1')
	     .stop()
		 .animate({top: $(document).scrollTop() + 160}, 'slow', 'easeOutBack' );
	 });
	  $(window).scroll(function(){
	   $('.d_categorymenu1')
	     .stop()
		 .animate({top: $(document).scrollTop() + 160}, 'slow', 'easeOutBack' );
	 });
     $(window).scroll(function(){
	   $('.d_charactermenu1')
	     .stop()
		 .animate({top: $(document).scrollTop() + 160}, 'slow', 'easeOutBack' );
	 });
	 
	 $('#d-nav-image ul li a').hover(function() {
		  if($(this).is(':animated')) {
			   $(this).addClass("active").stop().animate({width: "320px"},
			   {duration: 450, easing: "easeOutQuad", complete: "callback"});
		   }  else  {

			   $(this).addClass("active").stop().animate({width: "320px"}, {duration: 400, easing: "easeOutQuad", complete: "callback"});
		   }
		 
	 }, function() {
		   if($(this).is(':animated')){
			    $(this).removeClass("active").stop().animate({width: "78px"}, {duration: 400, easing: "easeInOutQuad", complete: "callback"})
		   }
		   else {
			   $(this).addClass("active").stop().animate({width: "78px"}, {duration: 600, easing: "easeOutQuad", complete: "callback"});
		   }
		   });
	 $('a.overlaylink').fancybox({
     'titlePosition' : 'over',
     'overlayColor' : '#000',
     'overlayOpacity' : 0.8,
     'transitionOut' : 'elastic',
     'transitionIn' : 'elastic',
     'autoscale' : true
   });	   
		   
   });
   
   
