<!-- Détection iPhone -->
if (navigator.userAgent.indexOf('iPhone') != -1)
{
if(confirm('Visiter la version mobile ?'))
    window.location="http://iphone.ydeo.net/";
}
else if (navigator.userAgent.indexOf('iPod') != -1) 
{
if(confirm('Visiter la version mobile ?'))
    window.location="http://iphone.ydeo.net/";
}
<!--/ Détection iPhone -->

<!-- Animations haut/bas barre de sous-titres -->
$(document).ready(function(){ 
$("span.togglenav").hover(function(){ 
$("#toggle1").slideDown("slow"); 
},
function(){ 
$("#toggle1").slideUp("slow"); 
}); 
}); 
$(document).ready(function(){ 
$("#toggle1").slideUp("slow");  
}); 
<!-- / Animations haut/bas barre de sous-titres -->

<!-- Déplacement gauche/droite barre de sous-titres -->
$(function(){
			$.slidenav({
				animspeed: 'medium',
				hideonout: 'true'
			});
		});
<!-- / Déplacement gauche/droite barre de sous-titres -->

<!-- Animation ImgRotator -->
$(document).ready(function() {	
	//Show Banner
	$(".main_image .desc").show(); //Show Banner
	$(".main_image .block").animate({ opacity: 0.85 }, 1 ); //Set Opacity

	//Click and Hover events for thumbnail list
	$(".image_thumb ul li:first").addClass('active'); 

	// * Code added by Jeff Schram, SchramDesign, http://schramdesign.com, email@schramdesign.com
	// * Adds a class 'last' to the last li to let the rotator know when to return to the first
	$(".image_thumb ul li:last").addClass('last');


	$(".image_thumb ul li").click(function(){ 
		//Set Variables
		var imgAlt = $(this).find('img').attr("alt"); //Get Alt Tag of Image
		var imgTitle = $(this).find('a').attr("href"); //Get Main Image URL
		var imgDesc = $(this).find('.block').html(); 	//Get HTML of block
		var imgDescHeight = $(".main_image").find('.block').height();	//Calculate height of block	
		
		if ($(this).is(".active")) {  //If it's already active, then...
			return false; // Don't click through
		} else {
			//Animate the Teaser
			$(".main_image img").animate({ opacity: 0}, 250 );
			$(".main_image .block").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() {
				$(".main_image .block").html(imgDesc).animate({ opacity: 0.85,	marginBottom: "0" }, 250 );
				$(".main_image img").attr({ src: imgTitle , alt: imgAlt}).animate({ opacity: 1}, 250 );
			});
		}
		
		$(".image_thumb ul li").removeClass('active'); //Remove class of 'active' on all lists
		$(this).addClass('active');  //add class of 'active' on this list only
		return false;
		
	}) .hover(function(){
		$(this).addClass('hover');
		}, function() {
		$(this).removeClass('hover');
	});
			
			
	// * Code added by Jeff Schram
	// * if we are hovering over the image area, pause the clickNext function
	// * by default, our new pauseClickNext variable is false
	pauseClickNext = false;
	
	$(".main_image .ramp").hover(
	function ()
	{
	pauseClickNext = true;
	}
	,
	function ()
	{
	pauseClickNext = false;
	}
	);
	$(".main_image .ramp").hover(
	function ()
	{
	var obj= document.getElementById("main-image");
	obj.style.cursor='pointer';
	}
	);
	
	$(".main_image .ramp").click(
	function ()
	{
	if ( document.getElementById("one").className == "active")
	{
	window.location="http://www.ydeo.net";
	}
	else if ( document.getElementById("two").className == "active")
	{
	window.location="http://www.ydeo.net";
	}
	else if ( document.getElementById("three").className == "active")
	{
	window.location="http://www.ydeo.net";
	}
	else if ( document.getElementById("four").className == "active")
	{
	window.location="http://www.ydeo.net";
	}
	else if ( document.getElementById("five").className == "last active")
	{
	window.location="http://www.ydeo.net";
	}
	}
	);



	//Toggle Teaser
	$("a.collapse").click(function(){
		$(".main_image .block").slideToggle();
		$("a.collapse").toggleClass("show");
		return false;
	});
	
	//add
	$(".image_thumb").hover(
	function ()
	{
	pauseClickNext = true;
	}
	,
	function ()
	{
	pauseClickNext = false;
	}
	);
	// * Code credit to Soh Tanaka http://designm.ag/ and Jeff Schram, SchramDesign, http://schramdesign.com
	// * Define function to click the next link
	// * notice that it checks for a class of 'last', we added that above
	var clickNext = function(){
	if(!pauseClickNext) {
	/// find the next li after .active
	var Mnext_li = $("li.active").next("li");
	if($("li.active").hasClass("last") ){
	$(".image_thumb ul li:first").trigger("click");
	} else {
	Mnext_li.trigger("click");
	}
	}
	};
	
	// * Code added by Jeff Schram
	// * setTimeInterval to run clickNext
	setInterval(clickNext, 7000);

});//Close Function
<!--/ Animation ImgRotator -->


<!-- TARIFS DE LOCATION -->
// FONCTION DE REQUETE AJAX 
function makeRequest(url,id_niveau,id_ecrire) 
{ 
// CREER UNE INSTANCE (UN OBJET) DE LA CLASSE DESIREE FONCTIONNANT SUR PLUSIEURS NAVIGATEURS 
var http_request = false; 
// POUR MOZILLA ET SAFARI 
if (window.XMLHttpRequest) 
{ 
http_request = new XMLHttpRequest(); 
if (http_request.overrideMimeType) 
{ 
// UN APPEL DE FONCTION SUPPLEMENTAIRE POUR ECRASER L'EN TETE ENVOYE PAR LE SERVEUR (AU CAS OU IL NE S'AGIT PAS DE TEXT/XML, CAS DE CERTAINES VERSIONS DE FIREFOX 
http_request.overrideMimeType('text/xml'); 
} 

} 
// POUR IE 
else if (window.ActiveXObject) 
{ 
try 
{ 
http_request = new ActiveXObject("Msxml2.XMLHTTP"); 
} 
catch (e) 
{ 
try 
{ 
http_request = new ActiveXObject("Microsoft.XMLHTTP"); 
} 
catch (e) {} 
} 
} 

if (!http_request) 
{ 
alert('Abandon :( Impossible de creer une instance XMLHTTP'); 
return false; 
} 
//	FONCTION DE TRAITEMENT APPELLEE QUAND ON RECEVRA LA REPONSE 
http_request.onreadystatechange = function() { traitementReponse(http_request,id_ecrire); } 
// LANCEMENT DE LA REQUETE 
http_request.open('POST', url, true); 
// CHANGER LE TYPE MIME DE LA REQUETE POUR ENVOYER LES DONNEES AVEC LA METHODE POST 
http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); 
obj=document.getElementById(id_niveau); 
data="val_sel="+obj.value; 
http_request.send(data); 
} 

// FONCTION DE TRAITEMENT 
function traitementReponse(http_request,id_ecrire) 
{ 
var affich=""; 
if (http_request.readyState == 4) 
{ 
// CAS AVEC REPONSE DE PHP EN MODE TEXTE 
if (http_request.status == 200) 
{ 
// CHARGEMENT DES ELEMENTS RECUS DANS LA LISTE 
var affich_list=http_request.responseText; 
obj = document.getElementById(id_ecrire); 
obj.innerHTML = affich_list; 
} 
else 
{ 
alert('Un problème est survenu avec la requête.'); 
} 
} 
} 
<!--/ TARIFS DE LOCATION -->


<!-- CATALOGUE DE LCOATION - Vignette Affiche -->
jQuery(function($){ 
  var settings = { 
    thumbListId: "thumbs_affiche", 
    imgViewerId: "affiche",
    activeClass: "active", 
    activeTitle: "Photo en cours de visualisation", 
    loaderTitle: "Chargement en cours", 
    loaderImage: "interface/loader/loader.gif" 
  }; 
 
  var thumbLinks = $("#"+settings.thumbListId).find("a"), 
    firstThumbLink = thumbLinks.eq(0), 
    highlight = function(elt){ 
      thumbLinks.removeClass(settings.activeClass).removeAttr("title"); 
      elt.addClass(settings.activeClass).attr("title",settings.activeTitle); 
    }, 
    loader = $(document.createElement("img")).attr({ 
      alt: settings.loaderTitle, 
      title: settings.loaderTitle, 
      src: settings.loaderImage 
    }); 
 
  highlight(firstThumbLink); 
 
 
  var imgViewer = $("#"+settings.imgViewerId), 
    bigPic = imgViewer.children("img"); 
 
  thumbLinks 
    .click(function(e){ 
      e.preventDefault(); 
      var $this = $(this), 
        target = $this.attr("href"); 
      if (bigPic.attr("src") == target) return; 
      highlight($this); 
      imgViewer.html(loader); 
      bigPic 
        .load(function(){ 
          imgViewer.html($(this).fadeIn(250)); 
        }) 
        .attr("src",target); 
    }); 
 
});
<!--/ CATALOGUE DE LCOATION - jCarousel -->



<!-- CATALOGUE DE LCOATION - jCarousel -->
jQuery(document).ready(function() {
    jQuery('.pensez_y_list').jcarousel({
        // Configuration goes here
		buttonPrevHTML: '<img src="../interface/coda-slider/scroll_left.png" class="prev" />',
		buttonNextHTML: '<img src="../interface/coda-slider/scroll_right.png" class="next" />',
    });
});
<!--/ CATALOGUE DE LCOATION - jCarousel -->


<!-- CATALOGUE DE LOCATION - Toggleclic -->
 $(document).ready(function(){

	// Hide all ulss
	$("ul.list_connectable").hide();

	//  When a li is clicked, 
	$("a.toggleclic").click(function () {
	  //  Toggle the slideVisibility of the ul directly after the clicked a
	  $(this).next("ul").slideToggle("slow")
		//  And hide any uls that are siblings of that "just shown" ul.
		//.siblings("ul").slideUp("slow");
	});

 });
<!--/ CATALOGUE DE LOCATION - Toggleclic -->


<!-- SPY -->
$(function () {
    $('ul.spy').simpleSpy();
});

(function ($) {    
$.fn.simpleSpy = function (limit, interval) {
  // set some defaults
  limit = limit || 4;
  interval = interval || 4000;
  
  return this.each(function () {
    // 1. setup
      // capture a cache of all the list items
    var $list = $(this),
      items = [], // uninitialised
      currentItem = limit,
      total = 0, // initialise later on
      height = $list.find('> li:first').height();
          
    // capture the cache
    $list.find('> li').each(function () {
      items.push('<li>' + $(this).html() + '</li>');
    });
    
    total = items.length;

	$list.wrap('<div class="spyWrapper" />').parent().css({ height : height * limit });

    // chomp the list down to limit li elements    
    $list.find('> li').filter(':gt(' + (limit - 1) + ')').remove();

    // 2. effect        
    function spy() {
      // insert a new item with opacity and height of zero
      var $insert = $(items[currentItem]).css({
        height : 0,
        opacity : 0,
        display : 'none'
      }).prependTo($list);
                    
      // fade the LAST item out
      $list.find('> li:last').animate({ opacity : 0}, 1000, function () {
        // increase the height of the NEW first item
        $insert.animate({ height : height }, 1000).animate({ opacity : 1 }, 1000);

		// finally fade the first item in (and we can remove the last)
		$(this).remove();
      });
        
      currentItem++;
      if (currentItem >= total) {
        currentItem = 0;
      }
        
      // trigger the effect again in 4 seconds
      setTimeout(spy, interval);
    }
    
    spy();
  });
};    
})(jQuery);
<!--/ SPY -->