	function formatText(index, panel) {
		return index + "";
	}

	$(function () {

	    $('.anythingSlider').anythingSlider({
	        easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
	        autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
	        delay: 3000,                    // How long between slide transitions in AutoPlay mode
	        startStopped: false,            // If autoPlay is on, this can force it to start stopped
	        animationTime: 600,             // How long the slide transition takes
	        hashTags: true,                 // Should links change the hashtag in the URL?
	        buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
			pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
			startText: "Go",             // Start text
	    stopText: "Stop",               // Stop text
	    navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
	    });
    
	    $("#bottle1,#mainos1").click(function(){ $('.anythingSlider').anythingSlider(1); });
		$("#bottle2,#mainos2").click(function(){ $('.anythingSlider').anythingSlider(2); });
		$("#bottle3,#mainos3").click(function(){ $('.anythingSlider').anythingSlider(3); });
		$("#bottle4,#mainos4").click(function(){ $('.anythingSlider').anythingSlider(4); });
		$("#bottle5,#mainos5").click(function(){ $('.anythingSlider').anythingSlider(5); });
		$("#bottle6,#mainos6").click(function(){ $('.anythingSlider').anythingSlider(6); });
		$("#bottle7,#mainos7").click(function(){ $('.anythingSlider').anythingSlider(7); });
		$("#bottle8,#mainos8").click(function(){ $('.anythingSlider').anythingSlider(8); });
		$("#bottle9,#mainos9").click(function(){ $('.anythingSlider').anythingSlider(9); });
	
    
	});
	
	$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'fast', /* fast/slow/normal */
				opacity: 0.80, /* Value between 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				default_width: 600,
				default_height: 380,
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
				hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
				wmode: 'opaque', /* Set the flash wmode attribute */
				autoplay: false, /* Automatically start videos: True/False */
				modal: false, /* If set to true, only the close button will close the window */
				changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
				callback: function(){} /* Called when prettyPhoto is closed */
				
			});
		});
	
	
