$(document).ready(function(){

	$("input[type='text'],textarea").one("focus",function(){$(this).val("");})
	var menu = new Menu("#nav",400);
	
	if($("#slideshow").length > 0)
	{
		var slideshow = new Slideshow("#slideshow",600,3000);
	}
	
	if($(".reserve_ticket").length > 0)
	{
		var link_ticketing = new ButtonTicketing(".reserve_ticket","#raz");
	}
	
	$("#footer #link a img, .flux img, .social_link img,#menu > a img ,#menu_pro > a img").mouseenter(function(){
		src = $(this).attr("src").split("\.");
		$(this).attr("src",src[0] + "_on." + src[1]).parent().css("opacity","1");
	}).mouseleave(function(){
		src = $(this).attr("src").replace("_on","");
		$(this).attr("src",src);
	});
	
	$("#container #content.pro  #leftCol .focus .description").mouseenter(function(){
		$(this).css("backgroundColor","#FFFFFF");
	}).mouseleave(function(){
		$(this).css("backgroundColor","#DEE1D9");
	});
	
	
	
	$("#container #content.pro #leftCol .focus").each(function(){
		var focus = $(this);
		var focusEven = $(this).next(".even");
		
		if(focusEven.height() > focus.height())
		{
			focus.height(focusEven.height()).children(".description").height(focusEven.height()-38);
		}
		else
		{
			focusEven.height(focus.height()).children(".description").height(focus.height()-38);
		}
		focus.fadeIn();
		focusEven.fadeIn();
		
	});

});
