//var myCaption=new Array();
//myCaption[1]='images/brunch.jpg'
//myCaption[0]='images/autumn1.jpg'
//var dispCaption = 0

		$(document).ready(function(){
		
		
		
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//Vertical Sliding
				//http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/
				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
				});
				//Horizontal Sliding
				$('.boxgrid.slideright').hover(function(){
					$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
				});
				//Diagnal Sliding
				$('.boxgrid.thecombo').hover(function(){
					$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
				});
				//Partial Sliding (Only show some of background)
				$('.boxgrid.peek').hover(function(){
					$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
				});
				//Full Caption Sliding (Hidden to Visible)
				$('.boxgrid.captionfull').hover(function(){
					$(".cover", this).stop().animate({top:'107px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'167px'},{queue:false,duration:160});
				});
				//Caption Sliding (Partially Hidden to Visible)
				$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'107px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'142px'},{queue:false,duration:160});
				});
				$('.boxgrid.caption1').hover(function(){
					$(".cover", this).stop().animate({top:'147px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'182px'},{queue:false,duration:160});
				});
				$('.boxgrid.caption2').hover(function(){
					$(".cover", this).stop().animate({top:'67px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'102px'},{queue:false,duration:160});
				});
				});

			//function slideSwitch() {
			//		if (dispCaption == 0) {
			//		dispCaption = 1
			//		}
			//		else {
			//		dispCaption = 0
			//		}
					
			//		//$("#caption").html(myCaption[dispCaption]);
			//		$("#autumn").css('background-image', 'url(' + myCaption[dispCaption] + ')');
			//}			

			//$(document).ready(function() {
			//	setInterval( "slideSwitch()", 5000 );
			// });			


