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

//AnythingSlider
    
        $(function () {
        
            $('.homeSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 7000,                    // 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)
            });
            
        });

        $(function () {
        
            $('.voicesSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 7000,                    // How long between slide transitions in AutoPlay mode
                startStopped: true,            // 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)
            });
            
        });


$(document).ready(function() {
    $("#leftNav").accordion();
	$("#cities").toggle(
		function() {
			$("#citiesSub").css('display','block');
		}, 
		function() {
			$("#citiesSub").css('display','none');
		}
	);

	$(".subscribe-btn").click(function() {
		$("#mailchimpsf_widget-4").css('display','block');
	});
	
	$("#mailchimpsf_widget-4").append("<a id='sub-close' href='#'>x</a>");

	$("#sub-close").click(function() {
		$("#mailchimpsf_widget-4").css('display','none');
	});

	document.getElementById('s').value = "Search iVolunteer.org";
	document.getElementById('s').defaultValue = "Search iVolunteer.org";

	clrValue(); 
 });

function clrValue() {
	if( document.getElementById && document.getElementsByTagName ){
			if ( document.getElementById("s") ) {
				var element = document.getElementById("s");
				element.onfocus = function(){
					if(this.value == this.defaultValue) {
						this.value="";
					}
				element.onblur = function() {
					if(!this.value) {
						this.value = this.defaultValue;
					}
				}
				};
			}
	}
}

