function changeSubAbout(id){
	//alert(section);
	$('.img_sec_img').hide();
	$('.section_txt').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_sub_about.php",
		data: "id="+id,
		success: function(returned){
			$('.section_txt').html(returned);
			$('.section_txt').fadeIn();
			$('#loader').hide();
		}
		
	});
}
function changeSubServices(id){
	//alert(section);
	$('.img_sec_img').hide();
	$('.inside_desc').hide();
	$('#loader').show();//return;
	$.ajax({
		type: "POST",
		url: "_sub_services.php",
		data: "id="+id,
		success: function(returned){
			$('.inside_desc').html(returned);
			$('.inside_desc').fadeIn();
			$('#loader').hide();
		}
		
	});
}
function changeSubDest(id){
	//alert(section);
	$('.img_sec_img').hide();
	$('.dest_detail').hide();
	$('#loader').show();//return;
	$.ajax({
		type: "POST",
		url: "_sub_destination.php",
		data: "id="+id,
		success: function(returned){
			$('.dest_detail').html(returned);
			$('.dest_detail').fadeIn();
			$('#loader').hide();
		}
		
	});
}
var menu='home';
function ajax_home(){
	//alert(section);
	if(menu=='home')return;
	fix_menu(25,70);
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_news.php",
		data: "id="+id,
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
			
			intro_desat(); //fct to desaturate all hme imgs	
			desat_rollover();	//rollovers	
		}
		
		});
	menu='home';
}
function ajax_about(){
	if(menu=='about')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_about.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				animate_tri_show();
			
		}
		
		});
	menu='about';
}
function ajax_services(){
	if(menu=='services')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_services.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				animate_tri_show();
			
		}
		
		});
	menu='services';
}

function ajax_depart(){
	if(menu=='depart')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_depart.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				animate_tri_show();
				
				var heig=$('.depart_right').height()+20;
				//alert(heig);
				$('#prog_cont_new').height(heig+'px' );
				
				
		}
		
		});
	menu='depart';
}
function ajax_destination(){
	if(menu=='destination')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_destination.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				
				agentanimation();
				
		}
		
		});
	menu='destination';
}

function ajax_contact(){
	if(menu=='contact')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_contact.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				animate_triContact_show();
				setTimeout(function(){$('.ajax_container').fadeIn();},1500);
				
				//$('.ajax_container').fadeIn();
				//animate_triContact_show()
		
		}
		
		});
	menu='contact';
}

function ajax_devis(){
	if(menu=='devis')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_devis.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				
				animate_triDevis_show();
				setTimeout(function(){$('.ajax_container').fadeIn();},1500);
				
				//$('.ajax_container').fadeIn();
				//animate_triDevis_show();
			
		}
		
		});
	menu='devis';
}
function ajax_terms(){
	if(menu=='terms')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_terms.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				animate_tri_show();
			
		}
		
		});
	menu='terms';
}

function ajax_privacy(){
	if(menu=='privacy')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_privacy.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				
				animate_tri_show();
			
		}
		
		});
	menu='privacy';
}

function ajax_sitemap(){
	if(menu=='sitemap')return;
	//fix_menu('sub1',21);
	animate_tri_hide();	//hide right blue triangle of home page
 $('.ajax_container').hide();
	$('#loader').show();
	$.ajax({
		type: "POST",
		url: "_sitemap.php",
		data: "id=",
		success: function(returned){
				$('.ajax_container').html(returned);
				$('#loader').hide();
				$('.ajax_container').fadeIn();
				animate_tri_show();
			
		}
		
		});
	menu='sitemap';
}


