/************

*  Fichier Javascript commun

*

*

*****************/



//*************************************************************MENU*******************************************************//

//************************************************************************************************************************//



$(document).ready(function() { 





		$('#menu_site dl').hover(function() {

			if ($(this).find('ul').length) {

				$(this).find('dd').stop(true, true).show();


				$("#menu_site li").mouseover(function(){
					$(this).addClass("indicateur");
				});

				$("#menu_site li").mouseout(function(){
					$(this).removeClass("indicateur");
				});

			}

		});

		$('#menu_site dl').mouseleave(function() {

			$(this).find('dd').stop(true, true).delay(250).hide(0);

		});
 



//******************************************* SLICE : FAQ ************************************************//

//**********************************************************************************************************************//





    $(".declenche").hide(); 

	$(".actif").show(); 

	$(".declencheur").mouseover(function(){
		$(this).css("text-decoration","none");
		$(this).css("padding-left","21px");
		$(this).css("color","#f39911");
		
		//$(this).hover(function(){
			$(this).addClass("hover");
		//},function(){
			//$(this).removeClass("hover");
		//});	
		
	});

	$(".declencheur").mouseout(function(){
	
	if ($(this).next().is(":visible") == true) {
	
		$(this).css("padding-left","20px");
		$(this).css("color","#f39911");
		$(this).removeClass("hover");
		
		}else {
		$(this).css("padding-left","20px");
		$(this).css("color","#CA007A");
		$(this).removeClass("hover");
		};
	});

	
	
    $(".declencheur").click(function() { 

		if ($(this).next().is(":visible") == false) {

			$(this).next().slideDown();
			$(this).css("background-color","#fff");
			$(this).addClass("deploie");
			

		}else{

			/*$(this).next().slideUp();*/

			$(this).next().hide(); 
			$(".declencheur:even").css('background-color','#ececec');
			$(this).removeClass("deploie");
			
			/*$(this).css("background-color","#ececec");*/

		};

    }); 

	
	
	

	

	

	

	$(".declenche_conso").hide(); 

	$(".actif").show(); 

	$(".declencheur_conso.deploie > .clic_contrat").css("display", "none");

	$(".declencheur_conso > h3").mouseover(function(){$(this).css("text-decoration", "underline");});

	$(".declencheur_conso > h3").mouseout(function(){$(this).css("text-decoration", "none");});

	$(".declencheur_conso > p").mouseover(function(){$(this).css("text-decoration", "none");});

	$(".declencheur_conso > p").mouseout(function(){$(this).css("text-decoration", "none");});



	

    $(".declencheur_conso").click(function() { 

		if ($(this).next().is(":visible") == false) {

			$(this).next().slideDown();

			$(this).addClass("deploie");

			$(".declencheur_conso.deploie > .clic_contrat").css("display", "none");

		}else{

			/*$(this).next().slideUp();*/

			$(this).next().hide(); 

			$(".declencheur_conso.deploie > .clic_contrat").css("display", "block");

			$(this).removeClass("deploie");

		};

    }); 



$(".declenche_mobile").hide(); 

	$(".actif").show(); 

	$(".declencheur_mobile.ouvre > .clic_contrat").css("display", "none");



	$(".declencheur_mobile > p").mouseover(function(){$(this).css("text-decoration", "none");});

	$(".declencheur_mobile > p").mouseout(function(){$(this).css("text-decoration", "none");});



	

    $(".declencheur_mobile").click(function() { 

		if ($(this).next().is(":visible") == false) {

			$(this).next().slideDown();

			$(this).addClass("ouvre");

			$(".declencheur_mobile.ouvre > .clic_contrat").css("display", "none");

		}else{

			/*$(this).next().slideUp();*/

			$(this).next().hide(); 

			$(".declencheur_mobile.ouvre > .clic_contrat").css("display", "block");

			$(this).removeClass("ouvre");

		};

    }); 



	

	

/****************************************************************************************************************************/

	

	/* Connection auto */

	





$('#texte_connexion_automatique2').click(function(){

                                              if ($('#get_connexion_automatique').is(':checked')){

                                                 $('span#explication_connexion_automatique2').slideDown('fast');

                                              }else{

                                                  $('span#explication_connexion_automatique2').slideUp('fast');

                                              }



  });









	$('#bouton_connexion_automatique').mouseover(function(){$('#explication_connexion_automatique').slideDown('fast');}	);

	$('#bouton_connexion_automatique').mouseout(function(){$('#explication_connexion_automatique').slideUp('fast');});



	

/****************************************************************************************************************************/	

	



	

	/***************************************/

	

	/* Survol zone choixBP selection Bouton */

	

	

	$('#choix_bp > ul > li').hover(function() {

                     $(this).css('background-color', '#ccc');

                     }, function() {



                     $(this).css('background-color', '#fff');

	});

	

	

	

	/* flashs autopromos */

	

	var path_flash='/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/autopromo/';

	

	/*$('#pousser_arbre').flash({src: path_flash+'arbre_pousse', width:217, height:192});*/

	$('#boutique_lieusaint').flash({src: path_flash+'boutique_lieusaint', width:217, height:192});

	$('#boutique_lyon').flash({src: path_flash+'boutique_lyon', width:217, height:192});

	$('#carnet_avantages').flash({src: path_flash+'carnet_avantages', width:217, height:192});		

	$('#chaudiere').flash({src: path_flash+'chaudiere', width:217, height:192});

	$('#demenagement').flash({src: path_flash+'demenagement', width:217, height:192});
	
	$('#mobile').flash({src: path_flash+'mobile', width:217, height:192});

	$('#creer_cel').flash({src: path_flash+'creer_cel', width:217, height:192});	

	$('#MFL').flash({src: path_flash+'MFL', width:217, height:192});

	$('#maison_bbc').flash({src: path_flash+'maison_bbc', width:217, height:192});		

	$('#zenbox').flash({src: path_flash+'zenbox', width:217, height:192});

	$('#buzz_demenagement').flash({src: path_flash+'buzz_demenagement', width:217, height:192});

	$('#tchat_public').flash({src: path_flash+'tchat_public', width:217, height:192});
	
	$('#tchat_prive').flash({src: path_flash+'tchat_prive', width:217, height:192});

	$('#pac').flash({src: path_flash+'pac', width:217, height:192});

	$('#tchat_financement_public').flash({src: path_flash+'tchat_financement_public', width:217, height:192});
	$('#tchat_financement_prive').flash({src: path_flash+'tchat_financement_prive', width:217, height:192});
	
	$('#jeu_public').flash({src: path_flash+'jeu_public', width:217, height:192});

	$('#jeu_prive').flash({src: path_flash+'jeu_prive', width:217, height:192});
	
	$('#jeu_ecohabitants').flash({src: path_flash+'jeu_ecohabitants', width:217, height:192});
	
	/* flash de la home */	
	$('#flash_bandeau').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/home', width:949, height:204});
	
	/* flash niveau de prix -- page gaz TR */	
	$('#niveau_prix').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/offres/liste_prix', width:640, height:180});

	/* flash relev� compteur - page saisie des releves */	
	$('#compteur_elec').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/releve-compteur/electricite', width:470, height:400});
	
	/* flash relev� compteur - page saisie des releves */	
	$('#compteur_gaz').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/releve-compteur/gaz', width:300, height:265});

	/*animation pac - page Mes projets - j'opte pour la pompe a chaleur*/
	$('#animation_pac').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/animation_pac', width:650, height:650});
	
	/*animation site mobile*/
	$('#dolcevita_mobile').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/nouveaux/site_mobile', width:640, height:298});

	/*flash ecogenerateur - Mes projets - page ecogenerateur */
	$('#ecogenerateur').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/ecogenerateur', width:473, height:399});
	
	/*flash simulateur hausse facture*/
	$('#simulateur_facture').flash({src: '/portailClients/framework/skins/xhtml2009/flash/simulateur_facture.swf', width:650, height:320});


	$('#popin1').flash({src: '/portailClients/framework/skins/xhtml2009/flash/calculTR.swf', width:488, height:605});
	$('#popin3').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/facture_prix/conversion', width:488, height:605});
	
	/*chaudiere condensation*/
	$('#chaudiere_condensation').flash({src: '/gestionContenu/ShowBinary/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/chaudiere_condensation', height:530, width: 654});

	/*pompe � chaleur air-eau*/
	$('#pac_air_eau').flash({src: '/gestionContenu/ShowProperty?nodePath=/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/nouveaux/anim_pac_aireau', height:530, width: 654});

	/*pompe � chaleur air-air*/
	$('#pac_air_air').flash({src: '/gestionContenu/ShowProperty?nodePath=/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/nouveaux/anim_pac_airair', height:530, width: 654});
	
	/*pompe � chaleur g�othermique*/
	$('#pac_geo').flash({src: '/gestionContenu/ShowProperty?nodePath=/BEA%20Repository/Racine%20Gaz%20de%20France/medias/flash/nouveaux/anim_pac_geo', height:530, width: 654});	
	
	/***************************/

	

	/* Cycle actus */ 

	

	$('#actualites').cycle({ 

					    fx:      'scrollDown', 

						speed:    1000, 

						timeout:  8000,

						pager:      '#nav',

						pagerEvent: 'click',

						pauseOnPagerHover: true

	});

	




<!------------- 16/09/2011 - Script Toggle Charte--------------------->


			//Cache le conteneur au chargement/Affiche le premier
			$(".toggle_services").hide();
			$(".toggle_services_f").show();
			$("h3.trigger_services:first").addClass("active");  
		
			//Switch ouverture/fermeture par clique puis slide (depend de l'�tat initial)
			$("h3.trigger_services").click(function(){
				$(this).toggleClass("active").next().slideToggle("slow");
				return false; //Prevent the browser jump to the link anchor
			});

<!------------- FIN Script Toggle Charte--------------------->

<!------------- 16/09/2011 - Script Tabs and Fade Pour Home Fiches Pratiques --------------------->

			//Action par d�faut
			$(".fp_contenu").hide(); //Cache le contenu
			
			$("ul.fp_tabs li:first").addClass("active").show(); //Active le premier onglet
			$(".fp_contenu:first").show(); //Affiche le contenu du premier onglet
			
			//On Click Event
			$("ul.fp_tabs li").click(function() {
				$("ul.fp_tabs li").removeClass("active"); //Enleve toute les classes "active"
				$(this).addClass("active"); //Add "active" class to selected tab 
				$(".fp_contenu").hide(); //Cache tout le contenu
				var activeTab = $(this).find("a").attr("href"); //Trouve la valeur de l'attribut rel pour identifier l'onglet actif et son contenu
				$(activeTab).fadeIn(); //Fade in le contenu actif
				return false;
			});
			
			
			
			/* Fade Div */
			$(".fade-black div").stop().fadeTo(1,0);
			$(".fade-black div").hover(
				function()
				{
					if ( navigator.appName == "Microsoft Internet Explorer")
					{
						// IE
						$(this).stop().fadeTo(250,.35);
					}
					else
					{
						// Other browsers
						$(this).stop().fadeTo(250,1);
					}
				},
				function()
				{
					$(this).stop().fadeTo(250,0);
				});
				
<!------------- FIN Script Tabs and Fade Pour Home Fiches Pratiques --------------------->




<!-- 17.10.2011 - Script Tabs pour Portail Economie Energie -->

			//Action par d?faut
			$(".pee_contenu").hide(); //Cache le contenu
			
			$("ul.pee_tabs li:first").addClass("active").show(); //Active le premier onglet
			$(".pee_contenu:first").show(); //Affiche le contenu du premier onglet
			
			//On Click Event
			$("ul.pee_tabs li").hover(function() {
				$("ul.pee_tabs li").removeClass("active"); //Enleve toutes les classes "active"
				$(this).addClass("active"); //Add "active" class to selected tab 
				$(".pee_contenu").hide(); //Cache tout le contenu
				var activeTab = $(this).find("a").attr("href"); //Trouve la valeur de l'attribut rel pour identifier l'onglet actif et son contenu
				$(activeTab).show(); //Fade in le contenu actif
				return false;
			});
			
			// Hover pour les elements des blocs PEE
			$("ul.pee_elements li").hover(function() {
				$("ul.pee_elements li").removeClass("dessus"); //Enleve toutes les classes "dessus"
				$(this).addClass("dessus"); //Ajoute la classe dessus au li survol?
			});
							
<!-- FIN 17.10.2011 - Script Tabs pour Portail Economie Energie -->


<!-- 14/12/2011 - Script Tabs pour Nouvelle Home Simulateurs -->

			//Action par defaut
			$(".sim_contenu").hide(); //Cache le contenu
			
			$("ul.sim_tabs li:first").addClass("active").show(); //Active le premier onglet
			$(".sim_contenu:first").show(); //Affiche le contenu du premier onglet
			
			//On Click Event
			$("ul.sim_tabs li").hover(function() {
				$("ul.sim_tabs li").removeClass("active"); //Enleve toutes les classes "active"
				$(this).addClass("active"); //Add "active" class to selected tab 
				$(".sim_contenu").hide(); //Cache tout le contenu
				var activeTab = $(this).find("a").attr("href"); //Trouve la valeur de l'attribut rel pour identifier l'onglet actif et son contenu
				$(activeTab).show(); //Fade in le contenu actif
				return false;
			});
			
			
			// Hover pour les elements des blocs PEE
			$("ul.sim_elements li").hover(function() {
				$("ul.sim_elements li").removeClass("dessus"); //Enleve toutes les classes "dessus"
				$(this).addClass("dessus"); //Ajoute la classe dessus au li survole
			});
			
			
							
<!-- FIN 14/12/2011 - Script Tabs pour Nouvelle Home Simulateurs -->

<!-- 04.11.2011 - Popin Promo CEL -->
		
	if($("div#the_popin").length != 0) {
	
	function createCookie(name,value,hours) {
		if (hours) {
			var date = new Date();
			date.setTime(date.getTime()+(hours*60*60*1000));
			// date.setTime(date.getTime()+(sec*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
	
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	
	function eraseCookie(name) {
		createCookie(name,"",-1);
	}



		if (readCookie("popin_dolcevita") == null) {
			
			// Procedure de gestion des cookies
			createCookie("popin_dolcevita","Creer un Compte en Ligne", 1);
			
			
			// Ouverture de la fenetre
			$("#the_popin").delay(3000).animate({top:"0px"}, 1000);
			// Fermeture de la popin
			$("#pp_close_button").click(function(){
				$("#the_popin").hide();
			});
			
			// Gestion des tags Nedstat
			
					sitestat('http://fr.sitestat.com/gdf/test/s?'+marqueurUrl+'&amp;Category=non-identifie');
					
		}
	
	}
	
	
<!-- 04.11.2011 - Fin Popin Promo CEL -->


		
});





<!-- Popin esprit services -->


////////////////////////////////////////////////////////////////////////////////////////////////
var dival = {};

jQuery.fn.ratings = function(stars, initialRating) {
dival.src=0;
  //Save  the jQuery object for later use.
  var elements = this;
  
  //Go through each object in the selector and create a ratings control.
  return this.each(function() {
  
    //Make sure intialRating is set.
    if(!initialRating)
      initialRating = 0;
      
    //Save the current element for later use.
    var containerElement = this;
    
    //grab the jQuery object for the current container div
    var container = jQuery(this);
    
    //Create an array of stars so they can be referenced again.
    var starsCollection = Array();
    
    //Save the initial rating.
    containerElement.rating = initialRating;
    
    //Set the container div's overflow to auto.  This ensure it will grow to
    //hold all of its children.
    container.css('overflow', 'auto');
    
    //create each star
    for(var starIdx = 0; starIdx < stars; starIdx++) {
      
      //Create a div to hold the star.
      var starElement = document.createElement('div');
      
      //Get a jQuery object for this star.
      var star = jQuery(starElement);
      
      //Store the rating that represents this star.
      starElement.rating = starIdx + 1;
      
      //Add the style.
      star.addClass('jquery-ratings-star');
      
      //Add the full css class if the star is beneath the initial rating.
      if(starIdx < initialRating) {
        star.addClass('jquery-ratings-full');
      }
      
      //add the star to the container
      container.append(star);
      starsCollection.push(star);
      
      //hook up the click event
      star.click(function() {
        //When clicked, fire the 'ratingchanged' event handler.  Pass the rating through as the data argument.
        elements.triggerHandler("ratingchanged", {rating: this.rating});
        containerElement.rating = this.rating;
		dival.src=containerElement.rating;
      });
      
      star.mouseenter(function() {
        //Highlight selected stars.
        for(var index = 0; index < this.rating; index++) {
          starsCollection[index].addClass('jquery-ratings-full');
        }
        //Unhighlight unselected stars.
        for(var index = this.rating; index < stars; index++) {
          starsCollection[index].removeClass('jquery-ratings-full');
        }
      });
      
      container.mouseleave(function() {
        //Highlight selected stars.
        for(var index = 0; index < containerElement.rating; index++) {
          starsCollection[index].addClass('jquery-ratings-full');
        }
        //Unhighlight unselected stars.
        for(var index = containerElement.rating; index < stars ; index++) {
          starsCollection[index].removeClass('jquery-ratings-full');
        }
      });
    }
  });
};

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////




//------------------------------------------
//-----------Cookie Management--------------
//------------------------------------------

jQuery.cookie = function (key, value, options) {

    // key and at least value given, set cookie...
    if (arguments.length > 1 && String(value) !== "[object Object]") {
        options = jQuery.extend({}, options);

        if (value === null || value === undefined) {
            options.expires = -1;
        }

        if (typeof options.expires === 'number') {
            var days = options.expires, t = options.expires = new Date();
            t.setDate(t.getDate() + days);
        }

        value = String(value);

        return (document.cookie = [
            encodeURIComponent(key), '=',
            options.raw ? value : encodeURIComponent(value),
            options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
            options.path ? '; path=' + options.path : '',
            options.domain ? '; domain=' + options.domain : '',
            options.secure ? '; secure' : ''
        ].join(''));
    }

    // key and possibly options given, get cookie...
    options = value || {};
    var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
    return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};

//------------------------------------------
//--------End of Cookie Management----------
//------------------------------------------

//Function to call the popin
var crmsrc = {};

/**
* Function to call to display a popin in a page. If it is necessary to scroll to the top of the page
* you have to specify an Array with the Nedstat source in the 1st place and then another string to scroll.
* showpopin(src)
* param: src > String or Array of 2 strings
* example: - showpopin("factureprix") => calls the Nedstat trigger for "factureprix"
* 		   - showpopin(["factureprix","scroll"]) => calls the Nedstat trigger and then scrolls to the top
**/
function showpopin(src)
{
	if ($.cookie('popin')!=1){
		
		//Si le parametre src est un tableau et qu'on souhaite scroller sur la page si necessaire
		if(src instanceof Array && src[1] == 'scroll'){
			//si la fenetre est descendue a plus de 300 px
			if($(window).scrollTop() > 300){
				//si la popin est deja affichee
				if($('div#box').css('display') != 'none'){
					//on remonte au niveau du haut de la popin
					$('html,body').animate({scrollTop : $("div#box").position().top},'slow');
				}
				else{
					//sinon on remonte a 100 px de hauteur de page
					$('html,body').animate({scrollTop : 100},'slow');
					// et on affiche la popin puisqu'elle n'est pas affichee
					$("div#box").slideDown("slow");	
				}
			}else{
				$("div#box").slideDown("slow");	
			}
			crmsrc.val = src[0];
			
		}else{
			$("div#box").slideDown("slow");	
			crmsrc.val = src;
		}
		
		// Gestion des tags Nedstat
		sitestat('http://fr.sitestat.com/gdf/test/s?'+marqueurUrlPes+'&amp;Category=non-identifie');
 	}
}

//Function to hide the popin with cookie
function closepopin()
{
	$("div#box").slideUp("slow");
	$("#opaque").slideUp();
	// $.cookie('popin', 1, { expires: 20, path: '/' });
}

//Function to hide onclick the popin with BG
$("a#in").click(function(event){
	$("div#box").slideUp("slow");
	$("#opaque").hide();
});

//Function to show onclick the popin with BG
$("a#slide").click(function(event){
	$("div#box").slideDown("slow");		
	$("#opaque").show();
});


if ($.cookie('popin')!=1) {
		$(document).ready(function() {		  
		  $('#rateit5').ratings(5).bind('ratingchanged', function(event, data) {$('#example-rating-2').text(data.rating); });
		});
		
			$(function() {		
					
					//script to limit the nbr the chars to be entered
							var limit = 200;
				 
							$('textarea[id$=comments]').keyup(function() {
								var len = $(this).val().length;
								if (len > limit) {
									this.value = this.value.substring(0, limit);
								}
								$('#spn').text(limit - len + " characters left");
							});
					//end of script to limit the nbr the chars to be entered
					 					 
			
					 $(".submit").click(function(event) {												
						var rate = dival.src;
						var comments = $("#comments").val();   
						
						var dataString = 'rate='+ rate + '&comments=' + comments + '&src=' +crmsrc.val ;
						
						if(rate==0)
							{
							
							$('.error').show();
							
							}
							
							else
							{
							
							
							/* Condition Detection Navigateur
							if ( $.browser.msie ) {
								var objHTTP;
								objHTTP = new ActiveXObject('Microsoft.XMLHTTP');
								objHTTP.open('POST','http://applicationespritservice.gazdefrance.fr/db.php',false);
								objHTTP.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
								objHTTP.send(dataString);
							} else {
								
							$.ajax({
									
									type: "POST",
									url: "http://applicationespritservice.gazdefrance.fr/db.php",
									data: dataString
																
									});
							
							 }	
							*/
							
							$.getJSON("http://applicationespritservice.gazdefrance.fr/db.php?jsoncallback=?", {rate : rate, comments : comments, src : crmsrc.val});
							
							 $("#opaque").slideUp("slow");
							 $("div#box").slideUp("slow");
							 // $.cookie('popin', 1, { expires: 90, path: '/' });
							return false;		
							}	
							
						return false;
					 });
			
			});
		
}


<!-- Fin Popin esprit services -->


/****************************************************************************************************************************/



 /******************************************************************************************

* Fonctions MOA

 **********************************************************************************************************/



/*

if (document.getElementById && document.createTextNode) {

	window.onload = demarrage;

}





function demarrage(){

	bulle_job('bulle_MDP');

	bulle_job('bulle_Nom');

	bulle_job('bulle_refClient');

	bulle_job('telephone');

        bulle_job('bulle_CP')

        bulle_job('bulle_consommation')

        bulle_job('bulle_puissance')

        bulle_job('bulle_comptage')

        bulle_job('bulle_ref_client')

        bulle_job('bulle_prelevement_auto')

        bulle_job('bulle_mensualisation')

        bulle_job('bulle_facture_ligne')

        bulle_job('bulle_assurance_facture')

        bulle_job('bulle_pass_multi_services')

        bulle_job('bulle_diagnostic_securite')

        bulle_job('bulle_diagnostic_eco_nrj')

}

 

function bulle_job(id){

	

	if (document.getElementById(id)){

		var vid = document.getElementById(id);

		var vtitle = vid.getAttribute('title');

		document.getElementById(id).onmouseover=function(){Tip('<div class=\'gc_tooltips_cel\'>'+vtitle+'</div>')};

		document.getElementById(id).onmouseout=function(){UnTip()};

	}



}



*/



