// Gallery Hide from Flash...
function winGalleryHide () {
	$(".win_gallery").fadeOut(500);
	$("#body_off").slideUp("slow");
};
// · · · · · · · · · · · JQUERY 
$(document).ready(function(){
	// CUFON					   
	Cufon.replace('h1');
	Cufon.replace('h2');
	Cufon.replace('.img');
	// DEFAULT
	// Window Resize...
	$(window).resize(function(){
			/*var t = $(window).height()/2-250+$(document).scrollTop()-165; 
			$(".win_gallery").animate({top: t}, 300);*/
			$("#body_off").css({'width': $(window).width()});
			$("#body_off").css({'height': $(document).height()});
	});
	// win language
	$("#link_win_lng1").click (function(){
		$("#win_lng1").show();
		return false;
	});
	$(".b_close1").click(function () {
			$("#win_lng1").hide(); 
			return false;
		});
	// Win Close
	$(".win .close").click(
		function() {
			$(this).parent().parent(".win").fadeOut(500);
			return false;
		}
	);
	// GALLERY
		$(".df_link_gallery").click(
		  function () { 
			$(".win_gallery").fadeIn(500);
			$("#body_off").slideDown("slow");
			return false;
		  }
		);
		// RV STEP 1
		$("#rv_b1-1").click(function () {
			$("#step1-1").slideUp(1000, show1_2);
			function show1_2() {
			  $("#step1-2").slideDown(1000);
			  $("#info1-2").slideDown(1000);	
			}
			return false;
		});
		$("#rv_b1-1-nodisp").click(function () {
			$("#calendars").slideDown(500);
			return false;
		});
		// Rates conditions
		$(".conditions").click(
			function() {
				$(this).prev(".win").fadeIn(200);	
				return false;
			}	   
		);
		// Info Room
		$(".info_room").click(
			function() {
				$(this).prev(".win").fadeIn(200);
				return false;
			}	   
		);
		// mas info
		$(".mas_info").click(
			function() {
				$(this).prev(".win").fadeIn(200);	
				return false;
			}	   
		);
		// RV STEP 3
		$("#rv_b_send_passw").toggle(
		  function () { 
			$("#send_password").slideDown("500");
			return false;
		  },
		  function () {		  
			$("#send_password").hide();
			return false;
		  }
		);
	// RV STEP 1
	$("#calendars").hide();
	$("#step1-2").hide();
	$("#info1-2").hide();
	
	// RV STEP 3
	$("#send_password").hide();
	$("#body_off").css({'width': $(document).width()});
	$("#body_off").css({'height': $(document).height()});	
		});	

