// <!--





$(document).ready(function(){

	


function mostrarItinerario()
{
	var miSel = window.location.hash.substring(1);
	$('.itiSelect').slideUp('slow');
	$('#'+miSel).addClass('itiSelect');
	$('#'+miSel).slideDown('slow');
}
$(window).bind('hashchange', function () 
{
	mostrarItinerario();
});
	

	$('.li-back').mouseover( function (){

		id = $(this).attr('id');

		$('#'+id).addClass('tabs_hover');

	});

	$('.li-back').mouseout( function (){

		id = $(this).attr('id');

		$('#'+id).removeClass('tabs_hover');

	});

	

	

	

	$('#slider1').s3Slider({

        timeOut: 4000 

						   });

	

	

	Cufon.replace('h3');

	Cufon.replace('.text_myrad');

	Cufon.replace('.address');

	Cufon.replace('.nota');



	$('.txt_contacto').focus(function(){ 

									 $(this).css('color', '#000'); 

  									 $(this).css('border-color', '#000'); 

									  var cual = $(this).attr('id');

									  var defa;

									  switch(cual){

										case 'nombre':

											defa = 'Ingrese su nombre';

											if( $(this).val() == defa) {

												$(this).val('');	

											}

											break;

										case 'email':

											defa = 'Direccion de Correo Electronico';

											if( $(this).val() == defa || $(this).val() == 'Ingrese su Email'  ) {

												$(this).val('');	

											}

											break;

										case 'telefono':

											defa = 'Ingrese su Telefono';

											if( $(this).val() == defa) {

												$(this).val('');	

											}

											break;

										case 'hotel':

											defa = 'Ingrese Hotel donde se hospeda';

											if( $(this).val() == defa) {

												$(this).val('');	

											}

											break;

											

										case 'subject':

											defa = 'Encabezado del correo';

											if( $(this).val() == defa) {

												$(this).val('');	

											}

											break;

										case 'mensaje':

											defa = 'Mensaje';

											if( $(this).val() == defa) {

												$(this).val('');	

											}

											break;

									  }

									  

									  });

	$('.txt_contacto').blur(function(){ 

									 $(this).css('color', '#666'); 

									 $(this).css('border-color', '#666'); 

									 var cual = $(this).attr('id');

									  var defa;

									  switch(cual){

										case 'nombre':

											defa = 'Ingrese su nombre';

											if( $(this).val() == '') {

												$(this).val(defa);	

												$(this).css('border-color', '#CCC'); 

											}

											break;

										case 'email':

											defa = 'Direccion de Correo Electronico';

											if( $(this).val() == '') {

												$(this).val(defa);	

												$(this).css('border-color', '#CCC'); 

											}

											break;

										case 'subject':

											defa = 'Encabezado del correo';

											if( $(this).val() == '') {

												$(this).val(defa);	

												$(this).css('border-color', '#CCC'); 

											}

											break;

										case 'mensaje':

											defa = 'Mensaje';

											if( $(this).val() == '') {

												$(this).val(defa);	

												$(this).css('border-color', '#CCC'); 

											}

											break;

									  }

									 

									 

									 });

	

	

});

//-->
