// JavaScript Documento
<!--
/*******************************************/
// Funciones de jquery para ocultar y mostrar el texto de la portada
/*******************************************/
var $j = jQuery.noConflict();


$j(document).ready(function(){

	function iniciar ()
	{
		$j("#pescasa").removeClass('enlace2');
		$j("#pescasa").addClass('enlace2-activo');
		$j("#pescasa").children(1).addClass('linklf-activo');

		$j("#peshabitaciones").addClass('enlace2');
		$j("#peshabitaciones").children(1).addClass('linklf');

		$j("#peseventos").addClass('enlace2');
		$j("#peseventos").children(1).addClass('linklf');

		$j("#pesmaps").addClass('enlace2');
		$j("#pesmaps").children(1).addClass('linklf');
	};    

	//iniciar();


	function apagarenlaces()
	{
		$j('#pescomarca').removeAttr('class');
		$j('#pescomarca').attr('class', 'enlace2');
		$j('#comarca').hide();

		$j('#pesespanha').removeAttr('class');
		$j('#pesespanha').attr('class', 'enlace2');
		$j('#espanha').hide();

		$j('#peseuropa').removeAttr('class');
		$j('#peseuropa').attr('class', 'enlace2');
		$j('#europa').hide();

		$j('#pesmaps').removeAttr('class');
		$j('#pesmaps').attr('class', 'enlace2');
		$j('#maps').hide();
	};

	function encenderenlace(enlace)
	{
		$j(enlace).removeClass('enlace2');
		$j(enlace).addClass('enlace2-activo');
	};


	$j('.enlace2').hover(
		function(){
			$j(this).css("class", ".enlace2:hover");
			//alert($j(this).attr("class"));
		},
		function(){
			$j(this).css("class", ".enlace2");//
		}
	);

	$j('#pescomarca').click( function (){						 
		apagarenlaces(this);
		encenderenlace(this);

		$j('#comarca').show();
	});

	$j('#pesespanha').click( function (){

		apagarenlaces(this);
		encenderenlace(this);

		$j('#espanha').show();
	});

	$j('#peseuropa').click( function (){

		apagarenlaces(this);
		encenderenlace(this);

		$j('#europa').show();
	});

	$j('#pesmaps').click( function (){

		apagarenlaces(this);
		encenderenlace(this);

		$j('#maps').show();
	});
}) 
//-->