    jQuery.noConflict();
    
    var stopAnimSst = true;
    var stopAnimInterv = true;
    var stopAnimFourn = true;
    
    jQuery(document).ready(function(){

		//truncate content article
		
		 jQuery(".summaryPostArticle .content").each(function(){
	        var txt = jQuery(this).text();
	        txt = txt.substring(0,170);
        	jQuery(this).html(txt+"...");
        });
        
     	jQuery(".summaryPostArticle .title a h2").each(function(){
	        var txt = jQuery(this).text();
	        txt = txt.substring(0,45);
        	jQuery(this).html(txt+"...");
        });

	    //animation schema accueil
	    
        jQuery("#sst").mouseenter(function(){
	        jQuery("#sst").fadeTo(200, 1);
	        jQuery("#fournisseur, #intervenant").stop(true,true).fadeTo(600, 0.4);
        	
        	stopAnimSst = false;
        	animateBtnSst("#schema #sst .btn_accueil");	        
  
	    }).mouseleave(function(){
	        stopAnimSst = true;
	    }).click(function(){
	        document.location.href="Recherche.html?annuaire=sst";    
	    }); 
	    
        jQuery("#intervenant").mouseenter(function(){
	        jQuery("#intervenant").fadeTo(200, 1);
	        jQuery("#fournisseur, #sst").stop(true,true).fadeTo(600, 0.4 );
        	stopAnimInterv = false;
        	animateBtnInterv("#schema #intervenant .btn_accueil");	        
  
	    }).mouseleave(function(){	        
	        stopAnimInterv = true;
	    }).click(function(){
	        document.location.href="Recherche.html?annuaire=intervenant";     
	 
	    }); 
	    
        jQuery("#fournisseur").mouseenter(function(){
	        jQuery("#fournisseur").fadeTo(200, 1);
	        jQuery("#sst, #intervenant").stop(true,true).fadeTo(600, 0.4 );
        	stopAnimFourn = false;
        	animateBtnFourn("#schema #fournisseur .btn_accueil");	        
  
	    }).mouseleave(function(){
	        stopAnimFourn = true;
	    }).click(function(){
	        document.location.href="Recherche.html?annuaire=fournisseur";     
	 
	    }); 
	    
	    jQuery("#schema").mouseleave(function(){
	       jQuery("#sst, #intervenant, #fournisseur").fadeTo(200, 1);
	    }); 
	    
	    
	    ResizeSiteHeightAccueil();
	    
	    
	    
	    // initialize LightBox  
        SexyLightbox.initialize({
            find          : 'sexylightbox', // rel="sexylightbox"
            color         : 'orange',
            dir           : '/sites/templates/images/lightBox_images/',
            imagesdir     : '/sites/templates/images/lightBox_images/',
            emergefrom    : 'top',
            OverlayStyles : {
              'background-color': '#000',
              'opacity' : 0.5
            }
        });
        
        
        //*** LOAD MENU ****        
        LoadMenu();
        
        //*** LOAD LAST SUBSCRIBERS ****
        LoadLastSubscribers();
        
        //*** LOAD JOB OFFERS ****
        LoadJobOffers();
        
        
        //*** FUNCTIONS ****
            
	    
        function animateBtnSst(cssClass)
	    {
	        jQuery(cssClass).animate({ marginLeft: "4px"}, 250 );
	        jQuery(cssClass).animate({ marginLeft: "0px"}, 150, function () {
	            if (!stopAnimSst)
	                animateBtnSst(cssClass);
	        });
	    }
	    function animateBtnInterv(cssClass)
        {
            jQuery(cssClass).animate({ marginLeft: "4px"}, 250 );
            jQuery(cssClass).animate({ marginLeft: "0px"}, 150, function () {
                if (!stopAnimInterv)
                    animateBtnInterv(cssClass);
            });
        }
        function animateBtnFourn(cssClass)
        {
            jQuery(cssClass).animate({ marginLeft: "4px"}, 250 );
            jQuery(cssClass).animate({ marginLeft: "0px"}, 150, function () {
                if (!stopAnimFourn)
                    animateBtnFourn(cssClass);
            });
        }
    
        
        
    });
    
