/* Script de menu accordeon en jquery avec ajout d'une class Active     Source : http://www.haleystar.com/blog/jquery-accordion-menu-active-states */var rotator = 0;var inTransition = 0;$(document).ready(function(){	$("ul.navigation .afficherSousMenu a.click").click(function() 		{ 			if($(this).parent().hasClass("active")) {				$(this).siblings("ul").slideUp("slow",function() {					$(this).parent().removeClass("active");				});			} else {				$("ul.navigation li.active ul").slideUp("slow",function() {					$(this).parent().removeClass("active");				});				$(this).siblings("ul").slideToggle("slow",function() {					$(this).parent().toggleClass("active");				});			}			return false;		});	$("ul.navigation>li.active").not(".afficherSousMenu");		$("a[rel='lightBoxCarte']").colorbox({close: "FERMER"});	 	$("ul#defillant").liScroll({travelocity: 0.02}); 		$('.infobulle').hide();	$('.ilots').bt({		contentSelector: "$('.ilotsContenu').html()", /*get text of inner content of hidden div*/		trigger: ['mouseover', 'none'],		width: 194,		strokeWidth: 3,		fill : '#fff',		strokeStyle: '#9D3488',		spikeLength: 0,		spikeGirth: 0,		padding: 20,		cornerRadius: 15,		cssStyles: {		  fontSize: '1.1em'		}	});  	$('.redressement').bt({		contentSelector: "$('.redressementContenu').html()", /*get text of inner content of hidden div*/		trigger: ['mouseover', 'none'],		width: 194,		strokeWidth: 3,		fill : '#fff',		strokeStyle: '#EC7F00',		spikeLength: 0,		spikeGirth: 0,		padding: 20,		cornerRadius: 15,		cssStyles: {		  fontSize: '1.1em'		}	});	if($("#da-vinci-carousel").length!=0)	{	$("#da-vinci-carousel").CloudCarousel({ 		reflHeight: 40,		reflGap:2,		titleBox: $('#da-vinci-title'),		altBox: $('#da-vinci-alt'),		buttonLeft: $('#but1'),		buttonRight: $('#but2'),		xRadius:240,		yRadius:65,		xPos: 265,		yPos: 80,		speed:0.15,		//autoRotate:"yes",		mouseWheel:true	});			/*$('.cloudcarousel').hover(function() 		{	  	eval("inTransition"+$(this).attr('id')+"=0");	  	if(rotator == 0 && eval('inTransition'+$(this).attr('id')) == 0)	  		{		  	eval("inTransition"+$(this).attr('id')+"=1");		  	largeur = $(this).attr('width');		  	hauteur = $(this).attr('height');		  	topM = $(this).css('top');		  	leftM = $(this).css('left');		  			  	reg = new RegExp("px", "g");		       topM = topM.replace(reg,"");			newTopM = parseInt(topM)-20;		  			  	leftM = leftM.replace(reg,"");			newLeftM = parseInt(leftM)-10;		  			  	newLargeur = parseInt(largeur)+20;		  	newHauteur = parseInt(hauteur)+20;		  	$(this).animate(		  		{		    		width:newLargeur,		    		height:newHauteur,		    		left:newLeftM,		    		top:newTopM		    	}, 500, function() {		    			//end animate		  		});			$(this).animate(	  			{				width:largeur,	    		height:hauteur,	    		left:leftM,	    		top:topM	    		}, 500, function() {	    				//enlever width et height du css			  		$(this).css("width","");			  		$(this).css("height","");			  		eval("inTransition"+$(this).attr('id')+"=0");	  			});			}		},		function()			{			if(rotator == 0 && inTransition == 0)		  		{				inTransition = 1;				$(this).animate(		  			{					width:largeur,		    			height:hauteur,		    			left:leftM,		    			top:topM,		    			}, 500, function() {		    				//enlever width et height du css				  		$(this).css("width","");				  		$(this).css("height","");				  		inTransition = 0;		  			});		  		}		});*/	}setTimeout("afficheCarousel()",100);});function afficheCarousel()	{	$("#conteneurCarousel").css("margin-left","0");	}	function Is_selected_point()	{	idPoint = $("#lieuRDV").attr("value");	$.post("includes/form_visite_chantier/_select_point.php",{unPoint:idPoint,provenance:'ajax'},function success(data)		{		$("#pointChoisir").html(data);		});		}	function IS_switch_champs(form,elem,elem2,longueur)	{	if(elem.value.length == 2)		{		eval('document.'+form+'.'+elem2+'.focus()');		}	}
