	$(document).ready(function(){
		if(Q != null)
		{
			switch (Q)
			{
				case 'franco-parenti': $("#logotipo-fitnes").fadeTo('fast', 0); $("#logotipo-franco").addClass("logotipo-unico"); break; 
				case 'fitnes-santander': $("#logotipo-franco").fadeTo('fast', 0); $("#logotipo-fitnes").addClass("logotipo-unico"); break;
			}
		}
		$(document).pngFix();
		/*
		$("#slider").easySlider({
			auto: true, 
			controlsShow: false,
			continuous: true,
			vertical: false,
			speed: 5000,
			pause: 15000
		});	
		*/
		// first-menu
		$("#first-menu>ul>li:not(.li-active)>a").hover(
			function(){ $(this).fadeTo("fast", 0.3); $(this).fadeTo("slow", 1.0); }, // This should set the opacity to 100% on hover 
			function(){ $(this).fadeTo("slow", 1); } // This should set the opacity back to 30% on mouseout
		);
		$('a.thickbox').lightBox();
		$('.lightbox').lightBox();
		$('.accordion').click(function() {
			$(this).next().toggle('slow');
			return false;
		}).next().hide();
		$('.no-fade').fadeTo('fast', 1); // This sets the opacity of the thumbs to fade down to 30% when the page loads
		$('.fade').fadeTo('slow', 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
		$('.fade').hover(
			function(){ $(this).fadeTo('slow', 1); }, // This should set the opacity to 100% on hover 
			function(){ $(this).fadeTo('slow', 0.3); } // This should set the opacity back to 30% on mouseout
		);
		// tooltip
		$('.tooltips[title]').tooltip('#demotip');
		$("#nosotros-nav ul").tabs("#nosotros-panel > div.articulo");
		$("#destacados a.accordion").next().toggle('slow');
		$('a.email').each(function(i) {
			var text = $(this).text();
			var address = text.replace(" _at_ ", "@");
			$(this).attr('href', 'mailto:' + address);
			$(this).text(address);
		});
		if(document.getElementById('mapa')) load();
	});
