
// -------------------------------------------- SEND POST AJAX DATA  --------------------------------------------
function meteoLoad() {
     $.ajax({
		type: 'post',
		dataType: 'script',
		url: 'meteo',
		success: function(response) {
			//$("#meteoTMP").html(response);
        }
     });
 }
 
 

function show(id) {
if($("#"+id).is(":visible")) {
	$("#"+id).hide();
	} else {
	$("#"+id).show();
	}
}

function archive() {
	$('#selector').datepicker({
	   onChangeMonthYear: function(year, month, inst) { alert('tst'); }
	});
}



/*
	$(function() {

		$("#datepicker").datepicker({
			onSelect: function(dateText, inst) { alert(dateText); }
			});
	});
	*/
	
$(window).resize(function(){
	$(".nav_wrap").each(function(){
		left = $(this).parents(".item_wrap").position().left;
		$(this).css("left", left);
	})
	$(".lenta").each(function(){
		$(this).css("height", "auto");
		$(this).css("height", ($(this).parent().height()-$(this).outerHeight()+$(this).height()));
	})
})

$(function(){
	$(window).resize();
})

$(window).load(function(){
	$(window).resize();
})
