/*----------------------------------------------------------------------------//
// Javascript pour le site client  -------------------------------------------//
//----------------------------------------------------------------------------//
// Client : -
// Note   : -
// Date   : -
//----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
// Inclusion dynamique des fichiers externes javascripts
/*----------------------------------------------------------------------------*/
function importJavascript(src)
{
	document.write("<script type=\"text/javascript\" src=\"" + src + "\"></scr" + "ipt>");
}
function importCss(href, media)
{
	document.write('<link rel="stylesheet" type="text/css" media="' + media + '" href="' + href + '" />');
}

/*----------------------------------------------------------------------------*/
// Importations de fichiers
/*----------------------------------------------------------------------------*/
// importJavascript("../includes/js/plugins/jquery.plugin.js");
// importCss("../includes/js/plugins/jquery.plugin.css", "screen");

/*----------------------------------------------------------------------------*/
// Declarations jQuery
/*----------------------------------------------------------------------------*/
$(document).ready(function(){
						   
	//jquery ici

	// Plan du site
	if($("ul#PlanSite")) {		
	
		$("ul#PlanSite li:first").css("border-top","0px");
		$("ul#PlanSite ul li.PlanSiteSousItem:first-child").each(function() {
			var sm_height = $(this).height();
			
			if($(this).next().height() > sm_height)
				sm_height = $(this).next().height();
			else
				$(this).next().height(sm_height);
			
			if($(this).next().next().height() > sm_height)
				sm_height = $(this).next().next().height();
			else
				$(this).next().next().height(sm_height);
		});
		
		$("ul#SiteMap li.SiteMapSousItem:nth-child(3n+1)").css("clear","both");
		
	}

});