function pageIsLoaded() {			
				$("li#features").click(linkIsClicked);
	}
	function linkIsClicked(event) {
		if ($("div#features-list").css("display") == "none") {
			$("div#features-list").show('fast');
		}
		else {
			$("div#features-list").hide('fast');
		}
	}
				
	//use jquery to detect when the page has fully loaded
	$(document).ready(pageIsLoaded);

$(function(){
			$('#slides').slides({
				preload: true,
				preloadImage: 'images/loading.gif',
				play: 5000,
				pause: 2500,
				generatePagination: false,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-35
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:0
					},200);
				}
			});
		});
