//Le temps du debug à virer apres avoir modifier le PI1
/*function start_e_caroussel(time,boucle,width_img,height_img) {

}
						       */
//-----------------






function initSlideShow(carousel) {
	jQuery('.suite img').bind('click', function() {
		carousel.next();
    return false;
	});
 
	jQuery('.retour img').bind('click', function() {
		carousel.prev();
		return false; 
	});

	jQuery('.suite span').bind('click', function() {
		carousel.next();
    return false;
	});
 
	jQuery('.retour span').bind('click', function() {
		carousel.prev();
		return false; 
	});	
	
};

function initDetail(carousel, item, i, state, evt){
	if(state=='init'){
		thumbItem = jQuery('#e_caroussel li:last img').attr('src');
		textItem = jQuery('#e_caroussel li:last .e_caroussel_text').html();
		jQuery('.bigimage_ecaroussel img').attr('src',thumbItem);
		jQuery('.bigtexte_ecaroussel').html(textItem);
	}
}

function getDetail(carousel, item, i, state, evt){
	for(Cnt0=0;Cnt0<item.childNodes.length;Cnt0++){
		if( (item.childNodes[Cnt0].tagName=='DIV') && (item.childNodes[Cnt0].className=='e_caroussel_img_small')){
			obt0=item.childNodes[Cnt0];
			for(Cnt1=0;Cnt1<obt0.childNodes.length;Cnt1++){
				if(obt0.childNodes[Cnt1].tagName=='A'){
					obt1=obt0.childNodes[Cnt1];
					for(Cnt2=0;Cnt2<obt1.childNodes.length;Cnt2++){
						if(obt1.childNodes[Cnt2].tagName=='IMG'){
							obt2=obt1.childNodes[Cnt2];
							this.thumbItem = obt2.src
						}
					}
				}
			}
		}
		if( (item.childNodes[Cnt0].tagName=='DIV') && (item.childNodes[Cnt0].className=='e_caroussel_text')){
			obt=item.childNodes[Cnt0];
			this.textItem = obt.innerHTML;
		}
	}
	
}

function setDetail(carousel, item, i, state, evt){
	jQuery('.bigimage_ecaroussel img').attr('src',this.thumbItem);
	jQuery('.bigtexte_ecaroussel').html(this.textItem);
	
}	
