function AsteaptaRezultate(){
	$('#fs').append('<div align="center" style="position: fixed; margin-top: 100px; width:100%;"><img src="http://static.infoturism.ro/interface/loading_oferte.gif" align="center" /></div>');
	$('#fs').css({background : '#ffffff'});
	window.onbeforeunload = __initFS;
}

function trimite_sortare(i){
	x = {

		transport : document.f_sej.transport.value,
		categorie : document.f_sej.categorie_cazare.value,
		durata : document.f_sej.durata_sejur.value,
		id_sejur : id_sejur,
		sortez : i
	}
	$.ajax(
	{
		type : 'POST',
		url : '/index.php?p=ajax&a=sort-sej',
		data : $.param(x),
		success : function(r){
			//alert(r);
		}
	}
	)
}
function schimba_sortare(i){
	__nume = i.value;
	x = '/index.php?p=quick&a=aplica-filtru-sejur&f='+ __nume + '&id_sejur=' + id_sejur + '&rt=' + window.location;
	//alert(x);
	window.location = x;
	return;
	//alert(ajax_load);
	$('.col2_int_list').prepend("<div id='ajax_load_sort' style='width: 501px; height: 100%; display: block; position : absolute; background : #fff;filter:alpha(opacity=75);-moz-opacity:.75;opacity:.75;z-index:2000;text-align:center; border:1px solid #ccc;'><br /><br /><Br /><img src='http://static.infoturism.ro/ajax/loader_1.gif' /></div>");
	trimite_sortare(__nume);
}

var __browser_p = false;
			if($.browser.msie){ if($.browser.version < 6.1) __browser_p = true }
			function __initFS(){
				y = $(document).height();
				x = $(document).width();
				$('#fs').css({height : y + "px"});
				$('embed, object, select').css({ 'visibility' : 'hidden' });
				
				if(!__browser_p)
				$('#fs').fadeIn(20);
				else {
					
					$('#info').css({position : "absolute"});
					
				}
			}
			function __stopFS(){
				$('#fs').fadeOut(300);
				$('embed, object, select').css({ 'visibility' : 'visible' });
			}
			var of_cache = new Array();
			
			function arataAgentii(i,e){
				__initFS();
				
				if(__browser_p){
				_xxx = (e.clientX);
				__top = ( _xxx - 300 )+"px"
				$('#info').css({top : __top});
				}
				h = $('#hotel_'+i).html();
				$('#info_head').html(h);
				pgx = 300;
				pgy = 300;
				
				newX = Math.ceil((x - $('#info').width())/2)
				newY = Math.ceil((y - $('#info').height())/2);
				//alert(newX + ' - ' + newY );
				
				$('#info').css({left : newX + "px"});
				//	/$('#info').css({top : newY + "px"});
				//$( '#info' ).css({top : (pgy-20) + "px"});
				$('#info').slideDown();
				
				$.ajax(
				{
					type : 'GET',
					url : '/index.php?p=ajax&a=info-sej&h_id='+i+'&id_oras='+id_sejur,
					success : function(r){
						//alert(r);
						$('#ajax-load2').html(r);
					}
				}
				)
				
			}

			function inchideOferte(){
				
				__stopFS();
				//$('#info').html(ajax_load);
				$('#info').slideUp();
			}
			/*
			jQuery(document).ready(function(){
			$().mousemove(function(e){
			$('#info').css({top : e.pageY + "px"});
			$('#info').css({left : e.pageX + "px"});
			});
			})
			*/