
/*
// Création de la fonction de popup apellée par défaut
function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	  }
*/

/*
 * Initialisation du menu déroulant
 */
ddsmoothmenu.init({
	mainmenuid: "menu-principal",
	orientation: "h",
	classname: "ddsmoothmenu", //class added to menus outer DIV
	customtheme: ["white", "#FCC7C7"],		
	contentsource: "markup"
});

$.tools.dateinput.localize("fr",  {
	   months:        'janvier,f&eacute;vrier,mars,avril,mai,juin,juillet,ao&ucirc;t,' +
	                   	'septembre,octobre,novembre,d&eacute;cembre',
	   shortMonths:   'jan,f&eacute;v,mar,avr,mai,jun,jul,ao&ucirc;,sep,oct,nov,d&eacute;c',
	   days:          'dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi',
	   shortDays:     'dim,lun,mar,mer,jeu,ven,sam'
	});


$(document).ready(function() {

	//$("#bandeau-top").jixedbar();

	
	$(".date-input").dateinput(
			{
				lang: 'fr', 
				selectors: true, 
				format: 'dd/mm/yyyy'	// the format displayed for the user
			}		
	);	
	
	/*
	 * Paramétrage des menus
	 */	
	$(".ddsmoothmenu > ul > li > a").css("width","121px");
	$(".ddsmoothmenu > ul > li > a").css("background-color","transparent");	
	$(".ddsmoothmenu > ul > li > a").css("padding-left","0");
	$(".ddsmoothmenu > ul > li > a").css("padding-right","0");
	$(".ddsmoothmenu > ul > li > a").css("padding-top","4px");
	$(".ddsmoothmenu > ul > li > a").css("padding-bottom","5px");
	$(".ddsmoothmenu > ul > li > a").css("margin","0");
	$(".ddsmoothmenu > ul > li > a").css("text-align","center");
	$(".ddsmoothmenu > ul > li > a").css("border","none");
	$(".ddsmoothmenu > ul > li > a").css("color","black");
	$(".ddsmoothmenu > ul > li > a").css("font-size","13px");
	$(".ddsmoothmenu > ul > li > ul > li > a").css("color","black"); // Couleur du texte dans le menu	
	$(".ddsmoothmenu > ul > li > ul").css("margin-top","-7px");
	
	$(".downarrowclass").css("visibility","hidden");

	/*
	 * Paramétrage des sous-menu
	 */
	$(".ddsmoothmenu > ul > li > ul").css("border","1px solid red"); // Couleur du texte dans le menu
	$(".ddsmoothmenu > ul > li > ul > li > a").css("border","0"); // Couleur du texte dans le menu
	var listeCouleur=new Array("#CD001C","#ea5713","#F47800","#ffa431","#ffc728","#fde130");
	for (i = 0; i < 6; i++)
	{
		$(".ddsmoothmenu > ul > li > ul:eq("+i+")").css("border","1px solid "+listeCouleur[i]);
		$(".ddsmoothmenu > ul > li > a:eq("+i+")").attr("couleur-fond",listeCouleur[i]);
		$(".ddsmoothmenu > ul > li > a").hover(function () {
			$(".ddsmoothmenu > ul > li > a").css({'background-color' : 'transparent'});
		    $(this).css({'background-color' : $(this).attr("couleur-fond")});
		  }, function () {
			//$(this).css({'background-color' : 'transparent'});
		  });	
		$(".ddsmoothmenu > ul > li > ul:eq("+i+") > li >a").attr("couleur-fond",listeCouleur[i]);
		$(".ddsmoothmenu > ul > li > ul:eq("+i+") > li >a").hover(function () {
		    $(this).css({'background-color' : $(this).attr("couleur-fond")});
		  }, function () {
			$(this).css({'background-color' : 'white'});
		  });			
	}
	$(".ddsmoothmenu").hover(function () {},function () {
		$(".ddsmoothmenu > ul > li > a").css({'background-color' : 'transparent'});
	});
	
	$(".btn-supprimer").bind("click",function(){
		if (confirm("Est-es vous sûr de vouloir supprimer cet enregistrement ?")==0)
		  return(false);
		
	});	
	
	$(".bandeau-top-inscription").bind("click", function (){
		document.location='inscription.php?action=1';
	});
	/*
	$("#bandeau-top").jixedbar(
		{
		    showOnTop:true,
		    roundedCorners:false
		}		
	);
	*/
	
/*
	$("#iframecata").fancybox({
		'width'				: 550,
		'height'			: 350,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe'
		});
	$("#iframecata2").fancybox({
		'width'				: 550,
		'height'			: 350,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe'
		});
*/	

	
});
