$(document).ready(function() {	
 
	//Show Banner

	$(".ideas_main .description_place").animate({ opacity: 0.75 }, 1 ); //Set Opacity

	//Click and Hover events for thumbnail list
	$(".ideas_thumb ul li:first").addClass('active'); 
	$(".ideas_thumb ul li").click(function(){ 
	
		//Set Variables
		var imgAlt = $(this).find('a').attr("title"); //Get Alt Tag of Image
		var imgTitle = $(this).find('a').attr("href"); //Get Main Image URL
		var imgUrl = $(this).find('.trip_descript a').attr("href"); //Main images redirect url
		var imgDesc = $(this).find('.trip_descript').html(); 	//Get HTML of block
		var imgHeight = $(".image_main").find('.trip_descript').height();	//Calculate height of block	
	
		
		if ($(this).is(".active")) {  //If it's already active, then...
			return false; // Don't click through
		} else {
			//Animate the Teaser	
		$(".ideas_main .description_place").animate({opacity: 0, marginBottom: -imgHeight-10},500,function(){
						
				       $(".ideas_main .description_place").html(imgDesc).html(imgDesc).animate({ opacity: 0.75,	marginBottom: "0" },200 );
					  $(".ideas_main img").attr({ src: imgTitle , alt: imgAlt});
					  $(".ideas_main a").attr({ href: imgUrl});
            });
				
			
		}
		
		$(".ideas_thumb ul li").removeClass('active'); //Remove class of 'active' on all lists
		$(this).addClass('active');  //add class of 'active' on this list only
		return false;
		
	}) .hover(function(){
		$(this).addClass('hover');
		}, function() {
		$(this).removeClass('hover');
	});
			
	//Toggle Teaser

	
});//Close Function
