//DOCUMENT READY
jQuery.noConflict();
jQuery(document).ready(function(){
    
    
     ////////////////Product Page Accordion////////////////
    jQuery('.product-options-list li h3').not(":last, .required").click(function() {
	    jQuery(this).next().toggle('slow');
        jQuery(this).toggleClass('opened')
	    return false;
    }).next().hide().prev().addClass('dropdown').append('<span class="icon">&nbsp;</span>');
    
    jQuery('.product-options-list li h3').each(function(i){
	i = i+1;
	jQuery(this).prepend(i+'. ')
    });
    
    
    ////////////////Uniform Grid Height////////////////
    var gridHeight = 0;

    jQuery('.products-grid .item').each(function() {
        if(jQuery(this).height() > gridHeight){
            gridHeight = jQuery(this).height();
        }
    });
    
    jQuery('.products-grid .item').height(gridHeight);
    
       
	//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" });

	
});
// END DOCUMENT READY
