// JavaScript Document


<!--
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('content').offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
				
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						
						footerElement.style.position = 'relative';
						footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
					}
					else {
						footerElement.style.position = 'static';
					}
				}
			}
		}
		window.onload = function() {
			setFooter();
		}
		window.onresize = function() {
			setFooter();
		}



$(function() {
		   
		   $('a[class*=zoom]').facebox() 
		   
		  /* 
		  $("#right ul li a").click(function(){
					
					
							$(this).parent("ul li").find("ul li").slideToggle("fast");	  
							if($(this).parent("ul li").find("ul li").css("display")=="block"){
								$(this).addClass("select");			  
							}else{
								$(this).addClass("");	
							}
										
											 
		  });
		   
		   */
		   
		   
		   
		   
		   $("#header input").click(function(){
				if($(this).attr("value")=="Recherche"){
						$(this).attr("value","");
				}								 
										 
		   });
		   
		   
	$(document).ready(function(){	
		
		if($("div.boxactua").length>0){
			$("div.boxactua").carousel({ 
				autoSlide: true, 
				autoSlideInterval: 3000,
				loop: true,
				direction: "vertical"
			});
		}
	});
  
		   
		   
		   
		   
});


function nbrcar(x,id){
	if(x.length>0){
		
		if(document.getElementById(id).style.display=="none"){
			$("#"+id).fadeIn("fast");
		}
		
			document.getElementById(id).style.display="block";
			document.getElementById(id).innerHTML=x.length;	
	}else{
		document.getElementById(id).style.display="none";
	}
}



window.onclick=function(){
		
	$("div.ok").fadeOut("slow");
	$("div.ko").fadeOut("slow");
}



function fctaide(id){
	
  $.facebox({ ajax: '/admin/ajax.aide.php?id='+id })
	 
	
}

 

