jQuery.noConflict();

jQuery('ul.nav').superfish({ 
	delay:       200,                            // one second delay on mouseout 
	animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
	speed:       'fast',                          // faster animation speed 
	autoArrows:  true,                           // disable generation of arrow mark-up 
	dropShadows: false                            // disable drop shadows 
});

jQuery('ul.nav > li > a.sf-with-ul').parent('li').addClass('sf-ul');


<!---- lavalamp ---->
jQuery('ul.nav ul > li').addClass('noLava');
	
var startLink = 0;

jQuery('ul.nav > li.current-cat-parent, ul.nav > li.current-cat, ul.nav > li.current-page-ancestor, ul.nav > li.current_page_parent, ul.nav > li.current_page_item').each(function(){
	startLink = jQuery(this).prevAll().length;
});

jQuery('ul.nav').lavaLamp({ startItem: startLink });
if ( startLink !=0 ) jQuery('ul.nav > li.backLava').animate({left:'+=2'},0);

<!---- et_switcher plugin v1.4 ---->
(function($)
{
	$.fn.et_switcher = function(options)
	{
		var defaults =
		{
		   slides: '>div',
		   activeClass: 'active',
		   linksNav: '',
		   findParent: true, //use parent elements in defining lengths
		   lengthElement: 'li', //parent element, used only if findParent is set to true
		   useArrows: false,
		   arrowLeft: 'prevlink',
		   arrowRight: 'nextlink',
		   auto: false,
		   autoSpeed: 5000
		};

		var options = $.extend(defaults, options);

		return this.each(function()
		{
			var slidesContainer = jQuery(this);
			slidesContainer.find(options.slides).hide().end().find(options.slides).filter(':first').css('display','block');
	 
			if (options.linksNav != '') {
				var linkSwitcher = jQuery(options.linksNav);
								
				linkSwitcher.click(function(){
					var targetElement;

					if (options.findParent) targetElement = jQuery(this).parent();
					else targetElement = jQuery(this);
					
					if (targetElement.hasClass('active')) return false;

					/* 	targetElement.siblings().removeClass('active').end().addClass('active');
						var ordernum = targetElement.prevAll(options.lengthElement).length;
						slidesContainer.find(options.slides).filter(':visible').hide()
							.end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700);
					*/
					
					targetElement.siblings('.active').animate({marginTop: '-18px'},500,function(){
						jQuery(this).removeClass('active');
						
					});
					targetElement.animate({marginTop: '6px'},500,function(){
						jQuery(this).addClass('active');
						
					});
					var ordernum = targetElement.prevAll(options.lengthElement).length;
				
					slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700);
					
					if (typeof interval != 'undefined') {
						clearInterval(interval);
						auto_rotate();
					};
					
					return false;
				});
			};
			
			jQuery('#'+options.arrowRight+', #'+options.arrowLeft).click(function(){
			  
				var slideActive = slidesContainer.find(options.slides).filter(":visible"),
					nextSlide = slideActive.next(),
					prevSlide = slideActive.prev();

				if (jQuery(this).attr("id") == options.arrowRight) {
					if (nextSlide.length) {
						var ordernum = nextSlide.prevAll().length;                        
					} else { var ordernum = 0; }
				};

				if (jQuery(this).attr("id") == options.arrowLeft) {
					if (prevSlide.length) {
						var ordernum = prevSlide.prevAll().length;                  
					} else { var ordernum = slidesContainer.find(options.slides).length-1; }
				};

				slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700);

				if (typeof interval != 'undefined') {
					clearInterval(interval);
					auto_rotate();
				};

				return false;
			});   

			if (options.auto) {
				auto_rotate();
			};
			
			function auto_rotate(){
				interval = setInterval(function(){
					var slideActive = slidesContainer.find(options.slides).filter(":visible"),
						nextSlide = slideActive.next();
				 
					if (nextSlide.length) {
						var ordernum = nextSlide.prevAll().length;                        
					} else { var ordernum = 0; }
				 
					if (options.linksNav === '') 
						jQuery('#'+options.arrowRight).trigger("click");
					else 		 		
						linkSwitcher.filter(':eq('+ordernum+')').trigger("click");
				},options.autoSpeed);
			};
		});
	}
})(jQuery);

		
var $featured = jQuery('#product-slider'),
	$featured_content = jQuery('#product-slides'),
	$controller = jQuery('#product-thumbs'),
	$slider_control_tab = $controller.find('a');
if ($featured_content.length) {
	$featured_content.cycle({
		fx: 'fade',
		timeout: 0,
		speed: 700,
		cleartypeNoBg: true
	});
	
	var ordernum;				
	
	function gonext(this_element){
		$controller.find("a.active").removeClass('active');
		
		this_element.addClass('active');
		
		ordernum = this_element.attr("rel");
		$featured_content.cycle(ordernum-1);
		
		if (typeof interval != 'undefined') {
			clearInterval(interval);
			auto_rotate();
		};
	}
	
	$slider_control_tab.click(function(){
		gonext(jQuery(this));
		return false;
	});
};

et_search_bar();
et_cycle_integration();

		
jQuery('#controllers-main a').hover(function(){
	jQuery(this).find('span.tooltip').animate({ opacity: 'show', left: '-222px' }, 300);
},function(){
	jQuery(this).find('span.tooltip').animate({ opacity: 'hide', left: '-232px' }, 300);
}); 


function et_cycle_integration(){
	var $featured = jQuery('#featured'),
		$featured_content = jQuery('#slides'),
		$controller = jQuery('#controllers'),
		$slider_control_tab = $controller.find('a');

	if ($featured_content.length) {
		$controller.css("opacity","0").find('a img').css("opacity","0.7").end().find('a.active img').css("opacity","1");
		
		$featured_content.cycle({
			fx: 'fade',
			timeout: 0,
			speed: 700,
			cleartypeNoBg: true
		});
		
	};
	
	var pause_scroll = false;
	
	jQuery('#slides, #controllers').hover(function(){
		$controller.stop().animate({opacity: 1, top: "30px"},500);
							pause_scroll = true;
					}).mouseleave(function(){
		$controller.stop().animate({opacity: 0, top: "15px"},500);
							pause_scroll = false;
					});
	
	$slider_control_tab.hover(function(){
		jQuery(this).find('img').stop().animate({opacity: 1},300);
	}).mouseleave(function(){
		if (!jQuery(this).hasClass("active")) jQuery(this).find('img').stop().animate({opacity: 0.7},300);
	});
	
	
	var ordernum;				
	
	function gonext(this_element){
		$controller.find("a.active img").stop().animate({opacity: 0.7},300).parent('a').removeClass('active');
		
		this_element.addClass('active').find('img').stop().animate({opacity: 1},300);
		
		ordernum = this_element.attr("rel");
		$featured_content.cycle(ordernum-1);
		
		if (typeof interval != 'undefined') {
			clearInterval(interval);
			auto_rotate();
		};
	}
	
	$slider_control_tab.click(function(){
		gonext(jQuery(this));
		return false;
	});
	
	
	var $nextArrow = jQuery('a#right-arrow'),
		$prevArrow = jQuery('a#left-arrow');
	
	$nextArrow.click(function(){
		var activeSlide = $controller.find('a.active').attr("rel"),
			$nextSlide = $controller.find('a:eq('+ activeSlide +')');
		
		if ($nextSlide.length) gonext($nextSlide)
		else gonext($controller.find('a:eq(0)'));
		
		return false;
	});
	
	$prevArrow.click(function(){
		var activeSlide = $controller.find('a.active').attr("rel")-2,
			$nextSlide = $controller.find('a:eq('+ activeSlide +')');
						
		if ($nextSlide.length && activeSlide != -1) { gonext($nextSlide); }
		else {
			var slidesNum = $slider_control_tab.length - 1;
			gonext($controller.find('a:eq('+ slidesNum +')'));
		};
		
		return false;
	});
			
				
					auto_rotate();
				
	function auto_rotate(){
		interval = setInterval(function() {
			if (!pause_scroll) $nextArrow.click();
		}, 4000);
	};
		
};


<!---- Search Bar Improvements ---->
function et_search_bar(){
	var $searchform = jQuery('#menu div#search-form'),
		$searchinput = $searchform.find("input#searchinput"),
		searchvalue = $searchinput.val();
		
	$searchinput.focus(function(){
		if (jQuery(this).val() === searchvalue) jQuery(this).val("");
	}).blur(function(){
		if (jQuery(this).val() === "") jQuery(this).val(searchvalue);
	});
};

		
<!---- Tipsy ---->
jQuery('[rel=tipsy]').tipsy({fade: true, gravity: 's'});
