
/**** PATCH POUR OOPARTIR *****/
function waitforjQuery() {
if((typeof jQuery == "undefined")){
	setTimeout(waitforjQuery,100);
}
else {
	var xhr_object = null;
	var xhr_url = '/inc/php/bloc.menuPaysV3-requete.inc.php';
	jQuery.get(xhr_url,{},function(data){
				   jQuery("#barMenuHorizontal .menu").html(data);
				   }
				 );
	

	
			jQuery('.titre_dyn').click (function (){
					jQuery('#image_carte').slideToggle();
				});
			
			
			jQuery('#titre_commentaires').click(function (){
				if (jQuery(this).parent().css('bottom')>="28px") {
						jQuery(this).parent().animate({bottom: '-=470'}, 500);
					}
				else {
						jQuery(this).parent().animate({opacity: 1,bottom: '+=470'}, 500);
						
						jQuery("#SubmitButton").bind("click", function() {
		
						jQuery.ajax({
							type	: "POST",
							cache	: false,
							url		: '../inc/php/bloc.ajouterCommentaire.php',
							data	: 'nom='+jQuery('#nom').val()+'&pays_code='+jQuery('#pays_code').val()+'&email='+jQuery('#email').val()+'&titre='+jQuery('#titre').val()+'&commentaire='+jQuery('#commentaire').val(),
							success: function(data) {
									jQuery('#addComment').html(data);
									location.reload(); 
								}
							});
						return false; 
					});
				}
			});
	
	
	
	
	
	
	
	
	
	
	
	
	};
};
waitforjQuery();
			
				var xhr_object = null;
				var xhr_url = '/inc/php/bloc.menuPaysV3-requete.inc.php';
				function charge() {
				 jQuery.get(xhr_url,{},function(data){
				   jQuery("#barMenuHorizontal .menu").html(data);
				   }
				 );
				};
				
				
				
				function slideSwitch() {
				    var $active = jQuery('#cadre_photo img.active');
					if(	$active){
						if ( $active.length == 0 ) $active = jQuery('#cadre_photo img:last');
					
						var $next =  $active.next().length ? $active.next()
							: jQuery('#cadre_photo img:first');
					
						$active.addClass('last-active');
					
						$next.css({opacity: 0.0})
							.addClass('active')
							.animate({opacity: 1.0}, 1000, function() {
								$active.removeClass('active last-active');
							});
					}
				}
				
				
				function textSwitch() {
						
				    var $active = jQuery('#cadre_texte_photo li.active');
					if(	$active){
						if ( $active.length == 0 ) $active = jQuery('#cadre_texte_photo li:last');
					
						var $next =  $active.next().length ? $active.next()
							: jQuery('#cadre_texte_photo li:first');
					
						$active.fadeOut(function(){
								$next.addClass('active').fadeIn( function() {
									  $active.removeClass('active last-active');
								 });   
							});
				
					}
				}


/**** PATCH POUR OOPARTIR FIN *****/




document.write('<style>#bloc_moteur_tarifair .in_trans{height:auto !important;}</style><center><p>Trouvez le meilleur prix pour vos billets d\'avion, en toute simplicit&eacute; : </p></center><div id="MomondoSearchForm"><center><br><img src="http://tarifair.fr/oopartir/wait.gif"/><br>chargement en cours, <br>veuillez patienter</center><noscript><a href="http://tarifair.fr/Billet-Avion/">Comparez tous les billets d&apos;avion</a></noscript></div><div id="script"></div><!-- <center><br />avec notre partenaire <a href="http://tarifair.fr">Tarif\'Air, le voyage pas cher ! <br /> <img src="http://tarifair.fr/IMG/siteon0.jpg" width="90%" /> </a></center>-->');


(function() {
 var myscript = document.createElement('script');
 myscript.type = 'text/javascript';
 myscript.src = ('http://tarifair.fr.momondo.com/Themes/momondo/js/whitelabel/momondo.js?culture=fr-FR&css=http%3A%2F%2Ftarifair.fr%2Foopartir%2Fwidget.css%3Fw&url=http%3A%2F%2Ftarifair.fr%2FBillet-Avion%2F&type=flight&searchType=whitelabel');
 var s = document.getElementById('script');
 s.parentNode.insertBefore(myscript, s);
})();



  var _gaq = _gaq || [];
  _gaq.push(['trf._setAccount', 'UA-3325992-7']);
  _gaq.push(['trf._trackPageview']);
  _gaq.push(['trf._trackEvent', 'oopartir', 'Affichage', '']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();




