jQuery.noConflict();
jQuery(document).ready(function($){
								
/*-----------------------------------------------------------------------------------*/
/*	Superfish Settings - http://users.tpg.com.au/j_birch/plugins/superfish/
/*-----------------------------------------------------------------------------------*/
	
	if (jQuery().superfish) {
		
		jQuery('#primary-nav ul').superfish({
			delay: 0,
			animation: {opacity:'show', height:'show'},
			speed: 'medium',
			autoArrows: false,
			dropShadows: false
		}); 
	
	}

/*-----------------------------------------------------------------------------------*/
/*	jQuery Cycle Slideshow
/*-----------------------------------------------------------------------------------*/

	$('.slideshow').cycle({
			fx: 'fade', 
			pager: '.slide-nav',
			timeout: 12000
		});
	
/*-----------------------------------------------------------------------------------*/
/*	Side Nav
/*-----------------------------------------------------------------------------------*/
	
	// second example
	$("#category-nav").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	
/*-----------------------------------------------------------------------------------*/
/*	Scroll to Top
/*-----------------------------------------------------------------------------------*/

    $('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });
	
/*-----------------------------------------------------------------------------------*/
/*	FAQ Slide
/*-----------------------------------------------------------------------------------*/

  $('.faqs h4').each(function() {
    var tis = $(this), state = false, answer = tis.next('div').hide().css('height','auto').slideUp();
    tis.click(function() {
      state = !state;
      answer.slideToggle(state);
      tis.toggleClass('active',state);
    });
  });
		
/*-----------------------------------------------------------------------------------*/
/*	Small Product Fade
/*-----------------------------------------------------------------------------------*/
	
	jQuery(".image a img, .poplets img, #nav_849093 a").css({
		opacity: 1
	});
	
	jQuery(".image a img, .poplets img, #nav_849093 a").hover(function() {
		jQuery(this).stop().animate({
			opacity: 0.8
			}, 200);
	},function() {
		jQuery(this).stop().animate({
			opacity: 1
			}, 500);
	});
	
/*-----------------------------------------------------------------------------------*/
/*	Top Menu Switch
/*-----------------------------------------------------------------------------------*/
	   
      // Create the dropdown base
      $("<select />").appendTo("#cat_848700_divs");
      
      // Create default option "Go to..."
      $("<option />", {
         "selected": "selected",
         "value"   : "",
         "text"    : "Go to..."
      }).appendTo("#cat_848700_divs select");
      
      // Populate dropdown with menu items
      $("#cat_848700_divs a").each(function() {
       var el = $(this);
       $("<option />", {
           "value"   : el.attr("href"),
           "text"    : el.text()
       }).appendTo("#cat_848700_divs select");
      });
      
	   // To make dropdown actually work
	   // To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
      $("#cat_848700_divs select").change(function() {
        window.location = $(this).find("option:selected").val();
      });
	 
	
});
