$(document).ready(function(){

$.fn.damierProg=function() {
    $(this).find('dl:even dd:nth-child(odd),dl:odd dd:nth-child(even)').css("background-color","#ffebca");
    $(this).find('dl:even dd:nth-child(even),dl:odd dd:nth-child(odd)').css("background-color","#fed289");
}
$("#contenuTableProg").Programmation();
$("#contenuTableProg").damierProg();

            $('#infos').slides({
				preloadImage: '/assets/templates/images/loading.gif',
				slideSpeed: 500,
				generatePagination:false
			});
//			$('#actualite').slides({
//				preloadImage: '/assets/templates/main/images/loading.gif',
//				slideSpeed: 500,
//				generatePagination:false
//			});
$("#ContenText span.desc a, a.openneWind").live("click",function () {
window.open(this.href);
return false;
})
$('.scroll-pane').jScrollPane();
$("a.zoombox").zoombox({gallery:false});
if ($("#home").length >0) {
$("#contentAll").children().hide();
$("#contentAll").hide();
$("#contentAll").css("background-position","-100000px 0");
var _url = "assets/template/images/fd_site.jpg";
_im =$("<img>");
_im.hide();

_im.bind("load",function(){
    $(this).fadeIn(3000,function () {
    $("#contentAll").css("background-position","0 0");
    _im.remove();
    $("#contentAll").children().fadeIn(1000);
    document.ListHome=new slideHome('slides_containerHome');

        });
    });
$("#contentAll").show();
$('body #contentAll').append(_im);
_im.attr('src',_url);

//$("#contentAll").fadeIn(4000,function(){
//$("#contentAll").children().fadeIn(1000);
//document.ListHome=new slideHome('slides_containerHome');
//});



}


});
