     // Stop jquery conflicting with magento scriptilicous
      var $j = jQuery.noConflict(); 
     // Use jQuery via $j(...)
      
     $j(document).ready(function(){
   		
   		//Homepage slider	
     	$j("#slider").easySlider({
				auto: true,
				continuous: true,
				numeric: true,
				pause: 6000
		});		
		
		//Item clickable
		$j(".features .aside").click(function(){
    		window.location=$j(this).find("a").attr("href");return false;
		});
		
		// JCarousel
		$j('#upsell-list').jcarousel({
			scroll: 4
		});
				
		 // Homepage Tabs
	 	$j(function () {
			var tabContainers = $j('div.home-tabs > div');
			tabContainers.hide().filter(':first').show();
			
			$j('div.home-tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$j('div.home-tabs ul.tabNavigation a').removeClass('selected');
				$j(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
		
		$j('#newsletter-validate-detail #newsletter').each(function() {
						var default_value = this.value;
						$j(this).focus(function() {
							if(this.value == default_value) {
								this.value = '';
							}
						});

						$j(this).blur(function() {
							if(this.value == '') {
								this.value = default_value;
							}
						});	
					});	
		
		
		 // Product page tabs simple tabs
	 	$j(function () {
			var tabContainers = $j('div.tabs > div');
			tabContainers.hide().filter(':first').show();
			
			$j('div.tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$j('div.tabs ul.tabNavigation a').removeClass('selected');
				$j(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
		
		//Product page desc toggle
		$j(".product-description-link a").click(function(){
			var target = "quickOverview";
			var target_offset = $j("#"+target).offset();
			var target_top = target_offset.top;
			$j('html, body').animate({scrollTop:target_top}, 500);
			return false;
		});
		
		$j(".my-cart-dropdown").hide();
		$j(".cart-sidebar-header").hide();
		
			$j(".header-cart").mouseenter(function() {
			    $j('.my-cart-dropdown').animate({
				 	opacity: 1,
					height: 'toggle'
				}, 500, function() {
				    // Animation complete.
				});
				$j('.cart-sidebar-header').animate({
				    opacity: 'toggle'
				 }, 500, function() {
				    // Animation complete.
				 });
			  }).mouseleave(function() {
			    $j('.my-cart-dropdown').animate({
				    opacity: 1,
				    height: 'toggle'
				}, 500, function() {
				    // Animation complete.
				});
				$j('.cart-sidebar-header').animate({
				    opacity: 'toggle'
				}, 500, function() {
				    // Animation complete.
				});
			  });
		
		
		
		$j(function()
		{
			$j('.scroll-pane').jScrollPane();
		});
	});
