
ddsmoothmenu.init({
		mainmenuid: "menu-principal",
		orientation: "h",
		classname: "ddsmoothmenu", //class added to menus outer DIV
		customtheme: ["#1E1896", "#131059"],		
		contentsource: "markup"
});

$(document).ready(function()
{
	$(".ddsmoothmenu").css("background-color","transparent");
	$(".ddsmoothmenu > ul > li").css("position","absolute");
	$(".ddsmoothmenu > ul > li > a").css("background-color","transparent");
	$(".ddsmoothmenu > ul > li > a").css("border","none");
	$(".ddsmoothmenu > ul > li > a").css("font-size","13px");
	$(".ddsmoothmenu > ul > li > ul").css("margin-top","6px");	
	/*
	$(".ddsmoothmenu > ul > li > ul:eq(0)>li > a").css("background-color","#2088C7");
	$(".ddsmoothmenu > ul > li > ul:eq(1)>li > a").css("background-color","#00B5FE");
	$(".ddsmoothmenu > ul > li > ul:eq(2)>li > a").css("background-color","#7EB5EE");
	$(".ddsmoothmenu > ul > li > ul:eq(3)>li > a").css("background-color","#055EAE");
	$(".ddsmoothmenu > ul > li > ul:eq(4)>li > a").css("background-color","#3561E4");
	*/
	
	/*
	 * Modification de l'affichage des news
	 */
	$(".news-magnetoscope-top > ul > li,.news-magnetoscope-bottom > ul > li").css("display","inline");
	$(".news-magnetoscope-top > ul > li,.news-magnetoscope-bottom > ul > li").css("background-image","none");
	$(".news-magnetoscope-top > ul > li,.news-magnetoscope-bottom > ul > li").css("padding-left","0");
	$(".news-magnetoscope-top > ul > li,.news-magnetoscope-bottom > ul > li").css("padding-right","30px");
	
	$(".news-titre").css("background-color","#EDEDED");
	$(".news-titre").css("padding","5px");
	$(".news-titre").css("padding-left","14px");
	$(".news-titre").css("color","#2D2D2D");
	$(".news-titre").css("font-size","14px");
	$(".news-titre").css("text-decoration","none");
	
	$(".popup").bind("click",function(){
		window.open($(this).attr("href"),'popup','toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=670, height=670, left=50, top=20'); 
		return(false);
	});
	
	if ($(".ac-zone").length!=0)
	{
		marge=9;
		padding=14;
		hauteur=0;
		if (parseInt($(".ac-bleu").height())+padding > (parseInt($(".ac-cyan").height()) +parseInt($(".ac-violet").height())+marge))
		{			
			hauteur=parseInt($(".ac-bleu").height());	
		}
		else
		{
			hauteur=parseInt($(".ac-cyan").height()) +parseInt($(".ac-violet").height())+marge;
		}
		$(".ac-bleu").height((hauteur+padding)+"px");
		$(".ac-violet").height(hauteur-(parseInt($(".ac-cyan").height())+marge));
		$(".ac-goudron").height(hauteur-(parseInt($(".ac-cyan").height())+marge));
		$(".ac-chantier").height(parseInt($(".ac-contact").height()));
	}
	
});
