$(document).ready(function(){
	/*if($("#header1").length > 0) {
		$("#header1").delay(2000).animate({left: "toggle", top: "+=250"}, 5000, function() {
			//$(this).css({ 'display': 'block' });
			$("#header1").css({ 'display': 'block' });
			$("#header2").css({ 'display': 'block' });
			$("#header1").fadeOut('slow', function() {;
				$("#header2").animate({left: "toggle", bottom: "-=260"}, 5000, function() {
					$(".title h1").animate({left: "+=1000", top: "toggle"}, 1000, function() {
						$(this).css({ 'display': 'block' });
					});
					$(".title h4").animate({left: "-=1000", top: "toggle"}, 1000, function() {
						$(this).css({ 'display': 'block' });
					});
				});
			});
		});
	} else {
		$(".title h1").animate({left: "+=1000", top: "toggle"}, 1000, function() {
			$(this).css({ 'display': 'block' });
		});
		$(".title h4").animate({left: "-=1000", top: "toggle"}, 1000, function() {
			$(this).css({ 'display': 'block' });
		});
	};
	*/
	$(function(){
		console.log('foo');
			$('#slides').slides({
				preload: true,
				preloadImage: 'img/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-40
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:17
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:17
					},200);
				}
			});
		});
});

