function astBlockUne(arDescriptionProduit,astSiteCenter){

					if (wQuery(".ast-block-une").length > 0){
					if (wQuery(".ast-photo-0").length > 0) {
						var NBPRODUCT = 3;
						var ASTDELAY = 5000;
						
						/* A POSITIONNER LES INDICES */
						var astBlockIndice = '<div class="ast-indice"><div class="ast-indice-not-selected">1</div><div class="ast-indice-not-selected">2</div><div class="ast-indice-not-selected">3</div></div>';
						wQuery(".ast-photo-0").append(astBlockIndice);
						var Indices = wQuery(".ast-indice").children();
						
						Indices.each(function(i) {
							//comportement général
							wQuery(this).addClass("ast-bgcolor-context");
							wQuery(this).mouseover(function() {wQuery(this).addClass("ast-bgcolor-context-bis");});
							wQuery(this).mouseout (function() {wQuery(this).toggleClass("ast-bgcolor-context-bis");});
							wQuery(this).click(function () {astBlockUneGoTo(i);wQuery(this).addClass("ast-bgcolor-context-selected");});
							}
						);
						
						/* ciblage des éléments du blockUne */
						var targetBlockUne0 = new Array();
						targetBlockUne0[0] = wQuery(".ast-photo-0 a");
						targetBlockUne0[1] = wQuery(".ast-photo-0 a img");
						targetBlockUne0[2] = wQuery("#astPhoto0LinkProdName"); //deprecated
						targetBlockUne0[3] = wQuery(".ast-cta p a.ast-link");
						targetBlockUne0[4] = wQuery(".ast-cta a.ast-link-img");
						
						var targetBlockUne1 = wQuery(".ast-block-une .ast-product a").first();
						var targetBlockUne2 = wQuery(".ast-block-une .ast-product a").last();

						
						var target2Remove = wQuery(".ast-product");
												
						/* INIT des track Event avant l'anim */
						var target2TrackEvent = new Array();
						target2TrackEvent[0] = targetBlockUne0[0];
						target2TrackEvent[1] = targetBlockUne0[2];
						target2TrackEvent[2] = targetBlockUne0[3];
						target2TrackEvent[3] = targetBlockUne0[4];
						for (i=0; i<target2TrackEvent.length;i++){
							// pos = 1 
							target2TrackEvent[i].unbind('click').bind('click', function() {astTrackEvent(arDescriptionProduit[0][4],"1");});
							//target2TrackEvent[i].attr({href: "#"});
						}
						/* /INIT des track Event avant l'anim */
						
						function astBlockUneGoTo(indice){
							astStopBlockUneTimer();
							CptPersistant = indice;
							astBlockUneChange(1);
							astLaunchBlockUneTimer();
						}
						function astLaunchBlockUneTimer(){
							wQuery(".ast-block-une").everyTime(ASTDELAY,"astBlockUneTimer",function(i) {
								astBlockUneChange(1);
							});
						}	
						function astStopBlockUneTimer(){
							wQuery(".ast-block-une").stopTime("astBlockUneTimer");
						}
						function astBlockUneChange(astDirection){
							/* On boucle sur les 3 produits*/
							if (CptPersistant >= NBPRODUCT) {CptPersistant = 0;}
							if (CptPersistant < 0) CptPersistant = NBPRODUCT-1;
							/*GESTION des CSS pour l'affichage des indices */
							Indices.removeClass("ast-bgcolor-context-bis ast-bgcolor-context-selected");
							Indices.slice(CptPersistant,astGetNextIndice(CptPersistant,NBPRODUCT)).addClass("ast-bgcolor-context-bis ast-bgcolor-context-selected");
							
							var Indice0 = CptPersistant;
							/* ****************************************************************************************/
							/* IMAGE PRINCIPALE ***********************************************************************/
							/* ****************************************************************************************/
							// Lien de l'image principale
							targetBlockUne0[0].attr({
								href: arDescriptionProduit[Indice0][3]
							});
							

							
							//Image principale
							// ***************************************************************************//
							var astClone = targetBlockUne0[1].clone().prependTo(targetBlockUne0[0]);
							astClone.wrap('<span style="position: absolute;z-index:50"></span>')
							// change selector to parent - i.e. newly created span
							astClone.parent()
							// prepend a new image inside the span
							.prepend('<img>')
							// change the selector to the newly created image
							.find(':first-child')
							// set the image to the target
							.attr('src', astSiteCenter + "images/300x250" + arDescriptionProduit[Indice0][2] + ".jpg");
							
							
							// position the original image
							var cloneOffset = '0';
							if (wQuery.browser.mozilla) {cloneOffset = '0px';}
							astClone.css({
								'position' : 'absolute', 
							  'left' : 0, 
							  'top' : cloneOffset
							});
							astClone.stop().animate({
								opacity: 0
								}, 500, function(){
										targetBlockUne0[1].attr({
											src: astSiteCenter + "images/300x250" + arDescriptionProduit[Indice0][2] + ".jpg",
											alt: arDescriptionProduit[Indice0][0] + " - " + arDescriptionProduit[Indice0][1],
											title: arDescriptionProduit[Indice0][0] + " - " + arDescriptionProduit[Indice0][1]
										});
										targetBlockUne0[0].unbind('click').bind('click', function() {astTrackEvent(arDescriptionProduit[Indice0][4],(Indice0 + 1));});
										//targetBlockUne0[0].attr({href: "#"});
										wQuery(this).parent().remove();
								});
							
							
							
							//Lien H1 + texte H1 de l'image principale
							
							targetBlockUne0[2].stop().fadeTo(200, 0, function(){
								wQuery(this).attr({href: arDescriptionProduit[Indice0][3]});
								wQuery(this).html(arDescriptionProduit[Indice0][0]);
								wQuery(this).unbind('click').bind('click', function() {astTrackEvent(arDescriptionProduit[Indice0][4],(Indice0 + 1));});
								//wQuery(this).attr({href: "#"});
								wQuery(this).fadeTo(200, 100);
							});
							
							//
							
							targetBlockUne0[3].stop().fadeTo(200, 0, function(){
								wQuery(this).attr({href: arDescriptionProduit[Indice0][3]});
								wQuery(this).html('<span class="ast-title"><strong>'+arDescriptionProduit[Indice0][0]+'</strong></span><br/>'+arDescriptionProduit[Indice0][1]);
								wQuery(this).unbind('click').bind('click', function() {astTrackEvent(arDescriptionProduit[Indice0][4],(Indice0 + 1));});
								//wQuery(this).attr({href: "#"});
								wQuery(this).fadeTo(200, 100);
							});
							
							// Lien cliquezici de l'image principale
							targetBlockUne0[4].stop().fadeTo(200, 0, function(){
								wQuery(this).attr({href: arDescriptionProduit[Indice0][3]});
								wQuery(this).unbind('click').bind('click', function() {astTrackEvent(arDescriptionProduit[Indice0][4],(Indice0 + 1));});
								//wQuery(this).attr({href: "#"});
								wQuery(this).fadeTo(200, 100);
							});

							/* ****************************************************************************************/
							/* LIEN 1 *********************************************************************************/
							/* ****************************************************************************************/
						
							var Indice1 = Indice0 + 1;
							if (Indice1 >= NBPRODUCT) Indice1 = 0;
								targetBlockUne1.stop().fadeTo(200, 0, function(){
											wQuery(this).attr({href: arDescriptionProduit[Indice1][3]});
											wQuery(this).html(arDescriptionProduit[Indice1][0]);
											wQuery(this).fadeTo(200, 100);
										});
										
							/* ****************************************************************************************/
							/* LIEN 2 *********************************************************************************/
							/* ****************************************************************************************/
							
							var Indice2 = Indice1 + 1;
							if (Indice2 >= NBPRODUCT) Indice2 = 0;
										targetBlockUne2.stop().fadeTo(200, 0, function(){
											wQuery(this).attr({href: arDescriptionProduit[Indice2][3]});
											wQuery(this).html(arDescriptionProduit[Indice2][0]);
											wQuery(this).fadeTo(200, 100);
										});
										
							/* ****************************************************************************************/
							if(astDirection == 1) CptPersistant++;
							else CptPersistant--;
						}
						function astGetNextIndice(currentIndice,maxIndice){
							var indice = currentIndice;
							if (currentIndice == maxIndice) indice = 0;
							else indice++;
							return indice;
						}
						function astGetPreviousIndice(currentIndice,maxIndice){
							var indice = currentIndice;
							if (currentIndice == 0) indice = maxIndice;
							else indice--;
							return indice;
						}
						

						function astRemoveElementBlockUne(obj){
							obj.hide();
						}						
						
						//on vire les éléments indésirables
						astRemoveElementBlockUne(target2Remove);
						//LANCEMENT DU BLOCKUNE
						var CptPersistant = 1;
						astLaunchBlockUneTimer();
						Indices.slice(0,1).addClass("ast-bgcolor-context-bis ast-bgcolor-context-selected");
					}
					
				}
}

function astTrackEvent(product, pos){
	if (pos == undefined) pos = "";
	else pos = " (" + pos + ")";
	//alert(astCobrandPageTracker._trackEvent('Promo', 'BlockUne', product) + " : " + product + pos);
	//astCobrandPageTracker._trackEvent('Promo', 'BlockUne', product + pos);

}
