$(document).ready(function(){
	$('.trigerPriceAlert').click(function(){
		$('#alertSeaShorePrices').show('fast');
	});
	$('#cancelPriceAlert').click(function(){
		$('#alertSeaShorePrices').hide('fast');
	});

	if($('.tooltip_trigger').length){
		$('.tooltip_trigger').click(
			function(){
				$(this).next('.tooltip').toggle('fast');
			}
		);
	}
})
function foto(img,width,height){
	  width+=15;
	  height+=15;
	  window.open("inc/foto.php?fotoHotel_id="+img,"secondWindow","scrollbars=yes,width="+width+",height="+height);
  }
function readStatiune(){
	obj=document.filtru_form.statiune;
	index=obj.selectedIndex;
	if(obj.options[index].value!='') return 'statiuni/'+obj.options[index].value.replace(/[^a-zA-Z0-9]+/i,'-')+'/';
	return '';
}
function readTara(){
	obj=document.filtru_form.tara;
	index=obj.selectedIndex;
	if(obj.options[index].value!='') return 'tari/'+obj.options[index].value.replace(/[^a-zA-Z0-9]+/i,'-')+'/';
	return '';
}
function readStele(){
	obj=document.filtru_form.stele;
	index=obj.selectedIndex;
	if(obj.options[index].value!='') return 'stele/'+obj.options[index].value+'/';
	return '';
}
function readZile(){
	obj=document.filtru_form.durata;
	index=obj.selectedIndex;
	if(obj.options[index].value!='') return 'zile/'+obj.options[index].value+'/';
	return '';
}
