$(document).ready(function(){

/*-----------------------------------------
	Form inField Labels
-----------------------------------------*/
    $("#emailLabel").inFieldLabels();
    $("#findastore_search #map_search label").inFieldLabels();
	$(".form label").inFieldLabels();

/*-----------------------------------------
	FAQs Accordion
-----------------------------------------*/
	$('.accordion h3').next().hide();
	
	$('.accordion h3').click(function() {
        $(this).next().slideToggle();
        return false;
    });
    
    $('#btn_openAccordion').click(function(){
    	$('.accordion h3').next().slideDown();
    	return false;
    });

/*-----------------------------------------
	Zebra Tables
-----------------------------------------*/
	$("tr:nth-child(odd)").addClass("odd");

/*-----------------------------------------
	Find a Store pg
-----------------------------------------*/
	$('#results_h2').hide();
	$('#results').hide();
	$('#findastore_search .online').hide();
	//$('#findastore_search #map').hide();
	
	showResults = function(){
		$('#findastore_search #mapswap').fadeOut(1000);
		$('#onlinestores').fadeOut(1000, function(){
			$('#results_h2').fadeIn(1000);
			$('#results').fadeIn(1000);
			//$('#findastore_search #map').fadeIn(1000);
			$('#findastore_search .online').fadeIn(1000);
		});
	};
	
	showOnlineStores = function(){
		$('#results_h2').fadeOut(1000);
		$('#findastore_search .online').fadeOut(1000);
		//$('#findastore_search #map').fadeOut(1000);
		$('#results').fadeOut(1000, function(){
			$('#onlinestores').fadeIn(1000);
			$('#findastore_search #mapswap').fadeIn(1000);
		});
	};

/*-----------------------------------------
	Product Page Colors Gallery
-----------------------------------------*

	$('#color_thumbs').galleriffic({
        delay:                     3000,
        preloadAhead:              -1,
        imageContainerSel:         '#color_slideshow',
        enableHistory:             false,
        enableKeyboardNavigation:  false,
        autoStart:                 false,
        syncTransitions:           false,
        defaultTransitionDuration: 1000
    });
*/
/*-----------------------------------------
	Photo Gallery
-----------------------------------------*

	$('#photo_thumbs').galleriffic({
        delay:                     3000,
        preloadAhead:              -1,
        imageContainerSel:         '#photo_slideshow',
        captionContainerSel:       '#photo_caption',
        enableTopPager:            true,
        enableBottomPager:         true,
        numThumbs:                 15,
		maxPagesToShow:            18,
		nextPageLinkText:          'Next &raquo;',
        prevPageLinkText:          '&laquo; Prev',
        enableHistory:             false,
		enableKeyboardNavigation:  false,
        autoStart:                 false,
        syncTransitions:           true,
        defaultTransitionDuration: 1000
    });

*/


});

