$(document).ready(function()
{
	slide("#sliding-navigation", 25, 15, 150, .8);
});

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);
		});
	});
}


<!--
function affiche_banniere(eltId) {
menu = new Array('dar_azawad','bivouacs','bien_etre','aventure','decouverte');
	intNb = new Number(menu.length);
	for (i=0; i<intNb; i++) {
		if ( menu[i] == eltId ) {
			document.getElementById(menu[i]).style.display = 'block';
		} else {
			document.getElementById(menu[i]).style.display = 'none';
		}
	}	
}
-->

function devise_cookie(de)
{
xmlHttp=GetXmlHttpObject();
var url="http://www.darazawad.com/devise_cookie.php";
url=url+"?devise="+de;
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange = function attente() {
if(xmlHttp.readyState == 4)     {
//document.location.href=document.getElementById("vd").value;
}}
xmlHttp.send(null);
return;
} 
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}






