function resizeSlideContent () {
		
	// Taille du bloc de texte
	/////////////////////////////////////////////////////////////////////////////////////////////////////
	spacerMiddle = 55;
	bloctopVertMarginPadding = getVerticalMarginPadding('.blocTop');
	bloctopHoriMarginPadding = getHorizontalMarginPadding('.blocTop');
	
	blocTexteHeight = slideHeight-$('.blocTop').height()-bloctopVertMarginPadding-20;
	blocImgWidth = blocImgHeight = blocTexteHeight-$('.picto').height()-10;
	blocTexteWidth = slideWidth-bloctopHoriMarginPadding-blocImgWidth-spacerMiddle;
	
	$('.blocTexte, .degradeTexteTop, .degradeTexte').width(blocTexteWidth+'px');
	$('.blocTexte, .scroll-pane').height(blocTexteHeight+'px');
	$('.blocImage, .images, .images img, .images object').width(blocImgWidth+'px');
	$('.blocImage, .images, .images img, .images object').height(blocImgHeight+'px');
	
	fleXenv.updateScrollBars(true,true);
	
}

function loaderSlideAnim() {
	$(".sliderLoad").fadeOut('slow');
}

function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<div class="fancybox-title">' + title + '</div>';
}

function initSlide (html, slide) {

	$("#panel-"+slide).append(html);

	resizeSlideContent();

	$("a.fancybox").fancybox();
	
	$("a.slideshow_fancybox").fancybox({
									   'cyclic' : true,
									   'titlePosition' : 'over',
									   'titleFormat'   : formatTitle
									   
									   });			
	
	$("a.formulaire_fancybox").fancybox({
										'width' : slideWidth*0.4,
										'height' : mainHeight*0.7,
										'padding': 0
										});

	$("a.page_fancybox").fancybox({
										'width' : slideWidth*0.9,
										'height' : mainHeight*1,
										'padding': 0
										});

	fleXenv.initByClass("scroll-pane");

	var tabContainers = $('div.tabs > div');
	tabContainers.hide();
	$('.first_tab_content').show();
	
	$('div.tabs ul.tabNavigation a').click(function () {
		var cur_cat = $(this).attr('href').split("-").pop();
		$(".tab-"+cur_cat).hide();
		tabContainers.filter(this.hash).show();
		$(".tab_link-"+cur_cat).removeClass('selected');
		$(this).addClass('selected');
		return false;
	});
	$('.first_tab_link').addClass('selected');
	

	$('.slideshow').cycle({ 
		fx: 'fade',
		pause: 1
	});

	var timerSlide = setTimeout('loaderSlideAnim()', 500);
	
}
