// JavaScript Document

<!-- Ch'olie bouton -->
	$(document).ready(function() {
		$('.vcard, .ensavoirplus, .headerHome,.headerGroupe, .headerContenus, .headerMonetisation, .headerContact, .headerTelecom, .headerClients, .headerRecrutement, .nouscontacter').append('<span class="hover"></span>').each(function () {
	  		var $span = $('> span.hover', this).css('opacity', 0);
	  		$(this).hover(function () {
	    		$span.stop().fadeTo(500, 1);
	 		}, function () {
	   	$span.stop().fadeTo(500, 0);
	  		});
		});
	});
<!-- Fin Ch'olie bouton -->

<!-- Modal Box -->
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox({
        loading_image : 'pics/modal/loading.gif',
        close_image   : 'pics/modal/closelabel.gif'
      }) 
    })
<!-- Fin Modal Box -->

<!-- Smooth scroll -->
$(function(){

    $('a[href*=#]').click(function() {
    
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                    
                return false;
                
            }
            
        }
        
    });
    
});
<!-- Smooth scroll -->


