Cufon.replace('h1');Cufon.replace('h2');Cufon.replace('h3');Cufon.replace('h4');Cufon.replace('h5');// Cufon.replace('p');Cufon.replace('#nav_site li');	$(document).ready(function() {	// news scroller	$('#accueil #news').cycle();		// animation nuages	$('body').append('<div id="nuages">');	swfobject.embedSWF("swf/nuages.swf", "nuages", "2000", "711", "6.0.0", "", null, {wmode: 'transparent'});	// swfobject.embedSWF("swf/header.swf", "header", "950", "139", "6.0.0", "", null, {wmode: 'transparent'});		// lightboxes	$("a.lightbox").fancybox();		// Slideshow cycle img	$('#contentbottomright').cycle({			fx: 'shuffle',			shuffle: { 				top:  -90, 				left:  295			},			random:  1 	});	$('#slideshowsite').cycle({ 	fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...	});			// pagination texte		$('#fonctnmt').cycle({     fx:     'fade',     timeout: 0,     next:   '#next1',     prev:   '#prev1' 	});		$('#panne').cycle({     fx:     'fade',     timeout: 0,     next:   '#next2',     prev:   '#prev2' 	});		// Galerie photos	$('#photos_album').after('<p id="caption" class="aligne_centre">').cycle({		fx:       'fadeZoom',		timeout:   4000,		after:     function() {				$('#caption').html(this.alt);		}	});		// Réalisations	$('#big').cycle({		fx:       'fadeZoom',		timeout:   0,		pager:  '#thumbs',     pagerAnchorBuilder: function(idx, slide) {         // return selector string for existing anchor         return '#thumbs a:eq(' + idx + ')';     },		after:     function() {				$('#caption').html($(this).children('img').attr('alt'));		}	});		// Menu déroulant	$("ul.sf-menu").superfish();		// Youtube Player	$('.youtube_video').each(function() {		var width, height;		var this_id = $(this).attr('id');		if($(this).hasClass('small')) {			width = 298;			height = 223;		} else {			width = 582;			height = 470;		}		swfobject.embedSWF('http://www.youtube.com/v/'+this_id+'&hl=fr&fs=1&rel=0&color1=0x99E846&color2=0x66D523', this_id, width, height, '7.0.0', '', {}, {allowFullScreen: 'true', allowscriptaccess: 'always'});	});			// GMAP	if (GBrowserIsCompatible()) {		var map = new GMap2(document.getElementById("map_canvas"));		var latlng = new GLatLng(48.870537,7.447679);		map.addControl(new GSmallMapControl());		map.addControl(new GMapTypeControl());		map.setCenter(latlng, 13);		// map.addOverlay(new GMarker(latlng));		map.openInfoWindowHtml(map.getCenter(),                       "<strong>Hanau Energies</strong><br />Ferme du Furstweg<br />67340 WEINBOURG");	}	});function slide(navigation_id, pad_out, pad_in, time, multiplier){	// creates the target paths	var list_elements = navigation_id + " li.sliding-element";	var link_elements = list_elements + " a";		// initiates the timer used for the sliding animation	var timer = 0;		// creates the slide animation for all list elements 	$(list_elements).each(function(i)	{		// margin left = - ([width of element] + [total vertical padding of element])		$(this).css("margin-left","-180px");		// updates timer		timer = (timer*multiplier + time);		$(this).animate({ marginLeft: "0" }, timer);		$(this).animate({ marginLeft: "15px" }, timer);		$(this).animate({ marginLeft: "0" }, timer);	});	// creates the hover-slide effect for all link elements 			$(link_elements).each(function(i)	{		$(this).hover(		function()		{			$(this).animate({ paddingLeft: pad_out }, 150);		},				function()		{			$(this).animate({ paddingLeft: pad_in }, 150);		});	});}