
	// featured content slider
	$('.fSlider > ul').jcarousel({
		auto: 5,
		scroll: 1,
		wrap: 'last',
		buttonPrevHTML: null,
		buttonNextHTML: null,
		initCallback: function(carousel){
			$('.fSliderNav a').click(function(){
				carousel.scroll(parseInt(jQuery(this).index()) + 1);
				return false;
			})
			$('.fSlider li').hover(function() {
		        carousel.stopAuto();
		    }, function() {
		        carousel.startAuto(5);
		    });
		},
		itemFirstInCallback: function(carousel, li, idx){
			$('.fSliderNav a').removeClass('active').eq(idx-1).addClass('active');
		}
	});

	// FAQ Show/Hide

		$('.scrollBlock .answers').hide();
		$('.scrollBlock h4 a').click(function(){
		   $('.scrollBlock .answers').slideUp();
		   $(this).parent().next().slideDown();
		   return false;
		});
		
	// Blinking Fields
	$('input[type="text"], textarea')
		.focus(function() { if(this.title==this.value) { this.value = ''; } })
		.blur(function(){ if(this.value=='') {this.value = this.title; } });

	// jScroll
        if (jQuery("#sidebarColScroll").length > 0) {
	$("#sidebarColScroll").jScroll();
        }

    // Product Image Zoom

        $(window).load(function(){
		var options = {
	            zoomType: 'standard',
	            lens: true,
	            title: false,
	            preloadImages: true,
	            preloadText: 'Loading...',
	            alwaysOn: false,
	            showEffect: 'fadein',
	            hideEffect: 'hide',
	            fadeinSpeed: 'fast',
	            fadeoutSpeed: 'fast',
	            zoomWidth: 450,
	            zoomHeight: 385,
	            xOffset: 48,
	            yOffset: 0,
	            position: 'right'
		};
		$('.productImgZoom').jqzoom(options);
        });
        
	// Switch Auth Logo
	
		var url = location.pathname;
		var folders = url.split('/');
		var curDir = folders[folders.length-3];
		
		if (curDir === 'hair-care') {
			$('.authSeal').attr('src', '/css/images/consumable_logo.png');
		}
		else {
			$('.authSeal').attr('src', '/css/images/authFurm.png');
		}
