jQuery(document).ready(function(){ 

jQuery("ul#anav li:nth-child(6)").addClass("brn-lst");
jQuery("ul#anav li li:nth-child(6)").removeClass("brn-lst");
jQuery("ul#anav li li li:nth-child(6)").removeClass("brn-lst");
jQuery("ul#anav li li li li:nth-child(6)").removeClass("brn-lst");





		jQuery("#header .login ul li:first-child").addClass("first-child");
		
			jQuery("ul#topnav li:last-child").addClass("last-child");
		
						jQuery("#leftArea .myBasket ul li:last-child").addClass("last-child");
						
												jQuery("ul#anav li:last-child").addClass("last-child");
												jQuery("ul#anav li:nth-child(4n)").addClass("last-child");
						
					jQuery("ul#topnav li:nth-child(5n)").addClass("last-child");
			jQuery("#footer .rowCopyright ul li:last-child").addClass("last-child");
		jQuery("#header .topLinks ul li:nth-child(5n)").addClass("last-child");
		jQuery("#header .topLinks ul li:nth-child(6n)").addClass("last-child");
		
				jQuery("ul#topnav li .row ul:first li:nth-child(1n)").addClass("line-child");
				
				jQuery("ul#topnav li .row ul:nth-child(6n) li:nth-child(1n)").addClass("line-child");
				jQuery("#ContentArea  .productRow ul li:nth-child(3n)").addClass("last-child");
				
						jQuery("#leftArea .recentViews ul li:nth-child(2n)").addClass("last-child");
							jQuery("#leftSinglePro .productView ul li:nth-child(3n)").addClass("last-child");
								jQuery("#leftSinglePro .mightLike ul li:nth-child(3n)").addClass("last-child");
 		
        jQuery("ul#topnav .sub ul li:first-child").addClass("first-child");
		
		




 jQuery('.breadcums .right span.myAccount').click(function (e) {
		e.stopPropagation(e);
        jQuery('div.the_menu4').toggle();
        jQuery('.breadcums .right span.myAccount').toggleClass('account-hov');
		
		
 });





		
        jQuery('#header .topNav span.cart').click(function (e) {
		e.stopPropagation(e);
        jQuery('div.the_menu').toggle();
        jQuery('#header .topNav span.cart').toggleClass('cart-hov');
		
		
 });
		jQuery('#header .topNav span.currency').click(function () {
		jQuery('div.the_menu').css("display","none");
		jQuery('#header .topNav span.cart').removeClass('cart-hov');	
		
 });
		jQuery('#header .topNav span.lang').click(function () {
		jQuery('div.the_menu').css("display","none");
		jQuery('#header .topNav span.cart').removeClass('cart-hov');	
});
		
		
		
		
        jQuery('#carousel_ul li').hover(function () {
	
       
        jQuery(this).find('a').css("color","#fefefe");
		jQuery(this).find('.productSnap ').css("border","solid 1px #fff");
	 }, 
      function () {
         jQuery(this).find('p a').css("color","#e9967a");
		 	jQuery(this).find('.productSnap ').css("border","solid 1px #231F20");


      }
    );

		
        jQuery('#main .BottomRow .right ul li').hover(
			function () {
			jQuery(this).css("border","solid 1px #fff");
			   jQuery(this).find('h4 a').css("color","#ffa07a");
	 }, 
	 
      function () {

		 jQuery(this).css("border","solid 1px #3e3e3e");
		   jQuery(this).find('h4 a').css("color","#fff");

      }
    );
		
		
		
		
		
        jQuery('#header .topNav span.currency').click(function (e) {
		e.stopPropagation(e);
		jQuery('div.the_menu2').toggle();
		jQuery('#header .topNav span.currency').toggleClass('currency-hov');
 });		
		jQuery('#header .topNav span.cart').click(function () {
		jQuery('div.the_menu2').css("display","none");
		jQuery('#header .topNav span.currency').removeClass('currency-hov');
 });		
        jQuery('#header .topNav span.lang').click(function () {
		jQuery('div.the_menu2').css("display","none");
		jQuery('#header .topNav span.currency').removeClass('currency-hov');	
		
});		


        jQuery('#header .topNav span.lang').click(function (e) {
		e.stopPropagation(e);
		jQuery('div.the_menu3').toggle();
        jQuery('#header .topNav span.lang').toggleClass('lang-hov');
});
		jQuery('#header .topNav span.currency').click(function () {
		jQuery('div.the_menu3').css("display","none");
		jQuery('#header .topNav span.lang').removeClass('lang-hov');	
});		
		jQuery('#header .topNav span.cart').click(function () {
		jQuery('div.the_menu3').css("display","none");
        jQuery('#header .topNav span.lang').removeClass('lang-hov');	
});	


	
		
		
		
		
		 jQuery('#carousel_ul li:first').before(jQuery('#carousel_ul li:last')); 
        
        
       
        jQuery('#right_scroll').click(function(){
        
          
            var item_width = jQuery('#carousel_ul li').outerWidth() + 10;
            
            
            var left_indent = parseInt(jQuery('#carousel_ul').css('left')) - item_width;
           
            jQuery('#carousel_ul:not(:animated)').animate({'left' : left_indent},500,function(){    
                
              
                jQuery('#carousel_ul li:last').after(jQuery('#carousel_ul li:first')); 
                
              
                jQuery('#carousel_ul').css({'left' : '-193px'});
            }); 
        });
        
     
        jQuery('#left_scroll').click(function(){
            
            var item_width = jQuery('#carousel_ul li').outerWidth() + 10;
            
          
            var left_indent = parseInt(jQuery('#carousel_ul').css('left')) + item_width;
            
            jQuery('#carousel_ul:not(:animated)').animate({'left' : left_indent},500,function(){    
                     
            jQuery('#carousel_ul li:first').before(jQuery('#carousel_ul li:last')); 
            
        
            jQuery('#carousel_ul').css({'left' : '-193px'});
            });
            
            
        });
		
		
		jQuery(document).click(function(event) {
			jQuery("#header .topNav span.cart").next('div').hide();
			jQuery(".cart").removeClass('cart-hov');
			
			jQuery("#header .topNav span.lang").next('div').hide();
			jQuery(".lang").removeClass('lang-hov');
			
			jQuery("#header .topNav span.currency").next('div').hide();
			jQuery(".currency").removeClass('currency-hov');
			jQuery(".breadcums .right span.myAccount").next('div').hide();
			
			jQuery(".myAccount").removeClass('account-hov');
		 });
		
		
		
		
		jQuery("ul#anav li ul").hover(
      function () {
        jQuery(this).parent().addClass('active');

      }, 
      function () {
        jQuery(this).parent().removeClass('active');
      }
    );
		
		
		
	 
	 
	 
	 
		
	jQuery('ul#anav li').each(function(index) {
		if(jQuery(this).find('ul').length>0) jQuery(this).addClass('arrow');
	});
	
	
	
	
	
		
		
		
		
		
		
		
			jQuery("#header .topLinks ul li").hover(
      function () {
        	jQuery(this).find('div').fadeIn('fast', function() {
        // Animation complete
      });

      }, 
      function () {
         	jQuery(this).find('div').css("display","none");
      }
    );
		
		
		
});	



