jQuery.noConflict();
jQuery(document).ready(function(){
	
		if (typeof(jQuery.reject) != "undefined") {
			jQuery('#home-slider').bxSlider({
				  wrapper_class: 'slides1_wrap',
				  auto: true,
				  auto_controls: true
			});
		}
         
         jQuery('.cat-side-nav li.parent').removeAttr("onmouseover").removeAttr("onmouseout");
         
		 if (typeof(jQuery.reject) != "undefined") {
			jQuery.reject({
				  close: false
			});
		 } 
         
         jQuery("#nav li a span:contains('Suggestions')").parent().replaceWith('<span class="suggestions">Suggestions:</span>');
         jQuery(".cat-side-nav li a span:contains('Suggestions')").parent().parent().addClass('active');
         jQuery(".cat-side-nav li a span:contains('Suggestions')").parent().replaceWith('<span class="suggestions">Suggestions:</span>');
         
         
         jQuery("#navigation li").hover(
                  function () {
                    jQuery(this).addClass("hover");
                  },
                  function () {
                    jQuery(this).removeClass("hover");
                  }
         );  
                  
         
	//jQuery Tabs set to auto-rotate and stop on hover
	/*
	jQuery("#featured").tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 8000);
	jQuery('#featured').hover(function(){
		jQuery(this).tabs('rotate', 0, false);
		},function(){
			jQuery(this).tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 8000);
		}
	);
	*/
	
	//jQuery Accordion
	/*
	jQuery("#accordion").accordion({
		active: false, //Selector for the active element. Set to false to display none at start. Needs collapsible: true.
		autoHeight: true, //If set, the highest content part is used as height reference for all other parts. Provides more consistent animations.
		navigation: true, //If set, looks for the anchor that matches location.href and activates it. Great for href-based state-saving. 
		collapsible: true //Whether all the sections can be closed at once. Allows collapsing the active section by the triggering event (click is the default).
	});
	*/
	
	//add class of 'last' to last link in a list
	//jQuery('#someListId li:last-child').addClass('last');

	//inline form labels (labelify)	
	//jQuery("input").labelify({ text: "label" });
	//jQuery("textarea").labelify({ text: "label" });
        
         if(jQuery('#product-options-wrapper > .shade-list')){
                  jQuery('.product-options-bottom').append('<div class="clearer"></div><div class="post-add-to-cart"><div class="find-your-shade"><a href="/shade-finder">Find Your Shade</a></div></div>');
                  jQuery('.link-wishlist').appendTo('.post-add-to-cart');
         }else{
                  jQuery('.link-wishlist').appendTo('.add-to-box');
         }
         
         
         //Uniform Height Script
         var gridHeight = 0;
         
         jQuery('.location-finder li').each(function() { /* Enter the element that you would like to check height on */
            if(jQuery(this).height() > gridHeight){
                gridHeight = jQuery(this).height();            
            }        
         });
         
         jQuery('.location-finder li').height(gridHeight); /* Enter the element that you would like to apply height to */
         
		 if (typeof(jQuery.tabs) == "function") {
         	jQuery("#tabs").tabs();
		 }
		 
         jQuery(".block-account li:contains('My Downloadable Products')").hide();
         jQuery(".block-account li:contains('Billing Agreements')").hide();
         jQuery(".block-account li:contains('My Tags')").hide();
         
});




                 
