// 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');
	};    

	//iniciar();


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

		$j('#peshabitaciones').removeAttr('class');
		$j('#peshabitaciones').attr('class', 'enlace2');
		$j('#habitacion').hide();

		$j('#peseventos').removeAttr('class');
		$j('#peseventos').attr('class', 'enlace2');
		$j('#eventos').hide();

		$j('#pescomedor').removeAttr('class');
		$j('#pescomedor').attr('class', 'enlace2');
		$j('#comedor').hide();

		$j('#pessalon').removeAttr('class');
		$j('#pessalon').attr('class', 'enlace2');
		$j('#salon').hide();

		$j('#pestarifas').removeAttr('class');
		$j('#pestarifas').attr('class', 'enlace2');
		$j('#tarifas').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('#pescasa').click( function (){						 
		apagarenlaces(this);
		encenderenlace(this);

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

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

		apagarenlaces(this);
		encenderenlace(this);

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

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

		apagarenlaces(this);
		encenderenlace(this);

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

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

		apagarenlaces(this);
		encenderenlace(this);

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

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

		apagarenlaces(this);
		encenderenlace(this);

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

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

		apagarenlaces(this);
		encenderenlace(this);

		$j('#tarifas').show();
	});
	
	$j('.verfotos').hover(
		function(){
			$j(this).css("text-decoration", "underline");
			$j(this).css("color", "#000000");
		},
		function(){
			$j(this).css("text-decoration", "none");
			$j(this).css("color", "#996600");
		}
	);
}) 
//-->