if( typeof( _DetailController ) != 'undefined' ){
	var extended = _DetailController;
}else
	var extended = insertPanier;

var gestionTailles = Class.create( extended , {

	initialize:function($super){
		this.temps = null;
		this.caroussel = null; 
		this.position = new Array();
		$super();
		
		if( isSet( $('productdefilant') ) )
			new caroussel2();
		
		if( ( isSet( $('produitsAimes') ) || isSet( $('produitsAimesVides') ) ) )
			this.caroussel = new caroussel();
	},
	
	sizePopup:function() {
		var select_size_zone;
		var boutonsTaille = document.getElementsByClassName( 'boutonTaille' );
		for( var i = 0 ; i < boutonsTaille.length ; i++ ){
			var c = boutonsTaille[i].className;
			
			boutonsTaille[i].observe( 'mouseover' , this.openPopupTailles.bindAsEventListener( this , boutonsTaille[i] ) );
			boutonsTaille[i].observe( 'mouseout' , this.closeSizePopup.bind( this , boutonsTaille[i] , null ) );
		}
	},
	
	openPopupTailles:function( e , classn  , unique){
		this.position = new Array();
	
		var btn = e.element();

		var position =  btn.cumulativeOffset();
		
		var classnom = classn.className;
		
		if( isNull( unique ) ){
			var regm = new RegExp( "(test\\d+\)" );
			var classAutre = regm.exec(classnom)[0];
		}else{
			var classAutre = classn;
		}

		if( isSet( $(classAutre) ) ){
			var wDiv = $(classAutre).getWidth();
			var bDiv = btn.getWidth();
			
			this.position.push( position[0]-wDiv+bDiv );
			this.position.push( position[1]+btn.getHeight()+10 );
	
			$(classAutre).style.left = this.position[0]+'px';
			$(classAutre).style.top = this.position[1]+'px';
			
			if( typeof( srememberid ) != 'undefined' && srememberid != classAutre )
				$(srememberid).style.display = 'none';
			
			$(classAutre).style.display = 'block';
			srememberid = classAutre;
			
			if( !isNull( this.caroussel ) )
				this.caroussel.setRemembered( srememberid );
		}
		if( isNull( unique ) )
			clearTimeout( this.temps );
	},

	closeSizePopup:function( classn , unique ){
		if( isNull( unique ) ){
			var classnom = classn.className;
			var regm = new RegExp( "(test\\d+\)" );
			var classAutre =  regm.exec(classnom)[0];

			if( isSet( $(classAutre) ) ){
				$(classAutre).stopObserving();
				var that = this;
		
				$(classAutre).observe( 'mouseover' , function(){ clearTimeout( that.temps ); } );
				$(classAutre).observe( 'mouseout' , function(){ that.temps = setTimeout( function(){that.trueCloseSizePopup( classAutre ); } , '2000' ); } );
				
				this.temps = setTimeout( function(){ that.trueCloseSizePopup( classAutre ); } , '2000' );
			}
		}else{
			$(classn).hide();
		}
	},

	trueCloseSizePopup:function( classAutre ){
		$(classAutre).style.display = 'none';
		$(classAutre).stopObserving();
		clearTimeout( this.temps );
	},
	
	neededForGetTailles:function( tab , prTy ){
		this.sizePopup();
	    var sendJson = {};
	    sendJson.idProd = new Array( tab );
	    sendJson.prodType = new Array( prTy );
	    
	    if( isSet( this.param.Corner ) ){
	    	sendJson.idCorner=this.param.Corner;
		}
	    
	    
	    var jsonElements = { 
	    						'url':'/Ajax=taillesEtStocks',
	    						'myClass':this,
	    						'myMethod':'getTailles()',
	    						'parametres' : sendJson
	    					};
	    
	    ajaxReq = new _AjaxElements( jsonElements );
	    ajaxReq.getAjaxInformations();

	},

	getTailles:function(){
		var VP =  document.location.pathname.indexOf( 'FSMarque' );
		var displayed = new RegExp( ".+marquesPreferees.+" , 'gi' );
		var testDis = displayed.test( document.location.pathname );
		
		if( this.shopcode == 'v4' && !testDis && !isNull( this.clientid ) && typeof( tabIdMarques ) != 'undefined' ){
			this.getMarquesPref();
		}
		
		var pere = this.json.product;
		this.InitImages();
		var epuise = 0;
	
		for ( var i = 0 ;  i < pere.length ; i++ ){
			var hauteur = null;
			if( this.shopid == 43  && isSet( $('cadreProduitAssorti'+pere[i].unID ))) {
					var botttomImg  = 'cadreProduitAssorti'+pere[i].unID ;	
					var maxHeight = $(botttomImg).getHeight();
					var marginTop = maxHeight-( 85 + 7);
					if ( marginTop > 0)
						$("img"+pere[i].unID).style.margin = (marginTop+"px 0 0 5px");
			}
			
			var supportNiveau = null;
			if ( isSet( pere[i].niveau ) ){
				var supportNiveau = 'texte';
			}else if( isSet( pere[i].niveauImg ) ){
				var supportNiveau = 'image';
			}

			var divSku = $(pere[i].unID+'_ancre');
			if( isSet( divSku ) ){
				if( pere[i].discount > 0 && this.shopid == 3 && this.shopcode != 'v4' ){
					var elemntsFrame = {
							'htmlelmt' : 'span',
							'txtContent' : '-'+pere[i].discount+'%',
							'attributes' : { 'class' : 'classSpanDiscount' }
						   };
					divSku.createFrame( elemntsFrame );
				}
				
				if( VP != -1 ){
					if( isSet( $('new'+pere[i].unID ) ) )
						$('new'+pere[i].unID ).remove();
				}
				
				if( isSet( pere[i].uneImage ) ){
					var elemntsFrame = {
							'htmlelmt' : 'div',
							'attributes' : { 'class' : 'salesdiv' }
						   };
					var divWelcoming = divSku.createFrame( elemntsFrame );

					if( this.shopcode != 'v4' ){
						var img48 = {
								'htmlelmt' : 'img',
								'attributes' : { 'src' : this.urlimg+pere[i].uneImage[0] }
							   };
	
						divWelcoming.createFrame( img48 );
					}else{
						if( isSet( $('new'+pere[i].unID ) ) ){
							$('new'+pere[i].unID ).update( '<img src="'+this.urlimg+pere[i].uneImage[0]+'" />' );
						}else{
							var new48 = {
									'htmlelmt' : 'div',
									'txtContent' : '<img src="'+this.urlimg+pere[i].uneImage[0]+'" />',
									'attributes' : { 'id' : 'new'+pere[i].unID , 'class' : 'newColl' }
								   };
		
							divSku.createFrame( new48 );
						}
						var hauteur = 15; 
					}
					
					if( this.shopid == 3 && pere[i].discount > 0 ){
						divWelcoming.style.left = '35px';
					}
				}
				if( isSet( pere[i].soldes ) && pere[i].soldes != 'non'){
					
	            	var elemntsFrame = {
							'htmlelmt' : 'div',	
							'attributes' : { 'class' : 'salesdiv2' }
						   };
	            	var divWelcoming = divSku.createFrame( elemntsFrame );
	            	
	            	if( this.shopcode == 'v4' ){
	            		divWelcoming.writeAttribute( 'style' , 'top:'+(divSku.cumulativeOffset()[1])+'px;left:'+parseFloat( divSku.cumulativeOffset()[0]+divSku.getWidth()-42)+'px;' );
	            	}
	            	
	            	var imgSoldes = {
							'htmlelmt' : 'img',	
							'attributes' : { 'src' : this.urlimg+pere[i].soldes[0] }
						   };
	
					divWelcoming.createFrame( imgSoldes );
	            }
				
				if( this.shopcode == 'v4' && isSet( $('img'+pere[i].unID) ) && isSet( $('zoom'+pere[i].unID) ) ){
					$('zoom'+pere[i].unID).parentNode.style.left = parseFloat( divSku.cumulativeOffset()[0]+divSku.getWidth()-32)+'px';
					$('zoom'+pere[i].unID).parentNode.style.top = divSku.cumulativeOffset()[1]+(divSku.getHeight()-20)+'px';
					$('zoom'+pere[i].unID).parentNode.style.display = 'block';
					if( isSet( $('new'+pere[i].unID) ) ){
						if( isNull( hauteur ) )
							hauteur = 30;

						//$('new'+pere[i].unID).style.left = parseFloat( divSku.cumulativeOffset()[0]+divSku.getWidth()+1)+'px';
						$('new'+pere[i].unID).style.top = divSku.cumulativeOffset()[1]+(divSku.getHeight()-hauteur)+'px';
						$('new'+pere[i].unID).style.left = divSku.cumulativeOffset()[0]+'px';
						$('new'+pere[i].unID).style.display = 'block';
					}
				}

				if( pere[i].discount > 0 && this.shopid == 3 && this.shopcode == 'v4'  ){
					$('discount'+pere[i].unID).update( '(-'+pere[i].discount+'%)' );
				}
				
				if( isSet( pere[i].pwyw ) && pere[i].pwyw != 'non'){
					$('price'+tab[nbr]).style.fontSize = '14px';
	            }
				
			}

			if( parseFloat( pere[i].unPrix ) > 0 ){
				$('price'+pere[i].unID).update( pere[i].unPrix );
			}
			
			var txtNiveau = '';
			if( isSet( supportNiveau ) ){
				if( supportNiveau == 'texte' ){
					txtNiveau = isSet( pere[i].niveau ) ? pere[i].niveau : '';
				}else{
					var imgNiveau = {
							'htmlelmt' : 'img',	
							'attributes' : { 'class' : 'imgNiv' , 'src' : pere[i].niveauImg[0] }
						   };
					divSku.createFrame( imgNiveau );
				}
			}
			if( isSet( pere[i].unSku) ){
				if( isSet( $('ul'+pere[i].unID) ) ){
					for( var j = 0 ; j < pere[i].unSku.length ; j++ ){
						var t = pere[i].uneTaille[j].toString().split(" - ");
						
						if ( this.shopid == 3 || this.shopid == 42 ) {
							var spanStyle = 'padding:0 5px;border:1px solid #888;';
							var regm = new RegExp((/Article+/gi));
						}else {
							var spanStyle = 'padding:3px;border:#1px solid #4E1255;';
							var regm = new RegExp((/available+/gi));
						}
						
						var avail = 1;
 
						if ( regm.test( t[1] ) == true ) { 
							spanStyle += 'background:#FFF;color:#CCC;';
							avail = 0;
						}else{
							spanStyle += 'background:#fff;color:black;cursor:pointer;';						
						}
						var elemntsFrame = {
								'htmlelmt' : 'div',
								'txtContent' : t[0],
								'attributes' : { 'class' : 'classSpan' , 'style' : spanStyle }
							   };
						var span = $('ul'+pere[i].unID).createFrame( elemntsFrame );
						
						var txt = '';
						if( isSet( t[1] ) ){
							txt = t[1];
							var stock = {
									'htmlelmt' : 'span',
									'txtContent' : t[1], 
									'attributes' : { 'style' : 'display:none;' }
							};
							span.createFrame( stock );
						}
	
						if ( avail == 1 ) {
							span.observe( 'click' , this.selectValue.bind( this , pere[i] , pere[i].unSku[j] ) );
						}
						 
						span.observe( 'mouseover' , this.makeItBlack.bindAsEventListener( this, pere[i].unID , txt , avail  ) );
						span.observe( 'mouseout' , this.makeItWhite.bindAsEventListener( this, pere[i].unID , txtNiveau , avail ) );
					}
					
					var styleStockInfo = txtNiveau == '' ? 'display:none;' : 'display:block;';
					var stockInfo = {
								'htmlelmt' : 'div',
								'txtContent' : txtNiveau,
								'attributes' : { 'id' : 'Stockul'+pere[i].unID , 'class' : 'stock' , 'style' : styleStockInfo }
							};
					$('ul'+pere[i].unID).createFrame( stockInfo );
					
					if( pere[i].aBasLeSelect == 'oui'){
						$('express'+pere[i].unID).remove();
						$('alternative'+pere[i].unID).show();
						if( isSet( $('phrase'+pere[i].unID) ) ){
							$('alternative'+pere[i].unID).observe( 'mouseover' , this.openPopupTailles.bindAsEventListener( this , 'phrase'+pere[i].unID , true ) );
							$('alternative'+pere[i].unID).observe( 'mouseout' , this.closeSizePopup.bind( this , 'phrase'+pere[i].unID , true ) );
						}
					}
				}else{
					var select = $('test'+pere[i].unID);
					if( isSet( select ) ){
						for(var nbrT = 0 ; nbrT < pere[i].unSku.length ; nbrT++){
							
							var elemntsFrame = {
									'htmlelmt' : 'option',
									'txtContent' : pere[i].uneTaille[nbrT],
									'attributes' : { 'value' : pere[i].unSku[nbrT] }
							   	};
							select.createFrame( elemntsFrame );
						}
						
						var elemntsFrame = {
								'htmlelmt' : 'span',
								'txtContent' : txtNiveau,
								'attributes' : { 'class' : 'plusQue' }
						   	};
						
						$('plusQue'+pere[i].unID).createFrame( elemntsFrame );
						
					}
					
					if( isSet( $('phrase'+pere[i].unID) ) ){
						$('express'+pere[i].unID).observe( 'mouseover' , this.openPopupTailles.bindAsEventListener( this , 'phrase'+pere[i].unID , true ) );
						$('express'+pere[i].unID).observe( 'mouseout' , this.closeSizePopup.bind( this , 'phrase'+pere[i].unID , true ) );
					}
					
					var prov = ( isSet( $('produitsAimes') ) || isSet( $('produitsAimesVides') ) ) ? 'jaime' : 2;
					$('express'+pere[i].unID).observe( 'click' , this.mettreAuPanier.bind( this , 1 , pere[i].unID , prov ) );
				}
			}else{
				if( isSet( $('img'+pere[i].unID) ) ){
					$(pere[i].unID+'_ancre').update( $('img'+pere[i].unID) );
				}else
					$(pere[i].unID+'_ancre').update('');
					
			}
			
			if( isSet( pere[i].pwyw ) && pere[i].pwyw != 'non'){
				$('express'+pere[i].unID).style.display = 'none';
				$('alternative'+pere[i].unID).style.display = 'block';
			}
			
			if( isSet( pere[i].epuise ) ) {
				if( typeof( idRayonPourFiche ) != 'undefined' ){
          			var reserve = document.getElementsByClassName('product_overview');
          			if( $( pere[i].unID+'_ancre').parentNode.parentNode.parentNode.id == '' )
          				epuise++;
          			$( pere[i].unID+'_ancre').parentNode.parentNode.parentNode.remove();
          		}else{
          			if ( isSet( $('express'+pere[i].unID ) ) )
          				$('express'+pere[i].unID ).style.visibility = 'hidden';
          			
          			$('img'+pere[i].unID).setOpacity( 0.3 );
          			
          			if( isSet( $('brand'+pere[i].unID) ) )
          				$('brand'+pere[i].unID).setOpacity( 0.3 );

      				$('label'+pere[i].unID).setOpacity( 0.3 );
          			
          			if ( isSet( $('zoom'+pere[i].unID) ) ) {
          				$('zoom'+pere[i].unID).setOpacity( 0.3 );
          			}

          			if ( isSet( $('regular'+pere[i].unID ) ) ){
          				$('regular'+pere[i].unID).style.color = '#ccc';
          			}
          			
          			if ( isSet( $('price'+pere[i].unID) ) ){
          				$('price'+pere[i].unID ).style.color = '#ccc';
          			}
          			
          			if( isSet( $(pere[i].unID+'_ancre').parentNode.parentNode.getElementsByClassName('classSpanDiscount')[0] ) )
          				$(pere[i].unID+'_ancre').parentNode.parentNode.getElementsByClassName('classSpanDiscount')[0].style.color = '#ccc';

          		}
            }
			
			if( isSet( this.json.startDate ) ){
				if( isSet( $('phraseDureeOffre'+pere[i].unID) ) ){
					$('phraseDureeOffre'+pere[i].unID).update( 'Offre valable du '+this.json.startDate+' au '+this.json.endDate );
				}
				if( isSet( $('phraseDureeOffreUnique'+pere[i].unID) ) ){
					$('phraseDureeOffreUnique'+pere[i].unID).update( 'Offre valable du '+this.json.startDate+' au '+this.json.endDate );
				}
				if( isSet( $('phraseDureeOffre'+pere[i].unID) ) && !isSet( $('phraseDureeOffreUnique'+pere[i].unID) ) ){
					$('test'+pere[i].unID).insert( '<p class="phraseDureeOffre">Offre valable du '+this.json.startDate+' au '+this.json.endDate+'</p>' );
				}
			}
			if( isSet( $('image2'+pere[i].unID) ) ){
				var image2 = $('image2'+pere[i].unID);
				$('img'+pere[i].unID).observe( 'mouseover' , this.changeImage.bindAsEventListener( this , image2 ) );
				$('img'+pere[i].unID).observe( 'mouseout' , this.changeImage.bindAsEventListener( this , image2 ) );
			}
		}
		
		if( typeof( idRayonPourFiche ) != 'undefined' ){
  			var reserve = document.getElementsByClassName('product_overview');
  			for( var c = 0 , d = 0 ; c < reserve.length ; c++ ){
				if( reserve[c].id != '' ){
					reserve[c].style.display = 'block';
					d++;
				}
				if( d == epuise )
					break;
			}
		}
	},
	
	changeImage:function( e , img ){
		var image1 = e.element();
		var srcOrigine = image1.src;
		image1.src = img.src;
		img.src = srcOrigine;
	},
	
	selectValue:function( pere , sku ){
			
		var span = $('text'+pere.unID);
		$('test'+pere.unID).style.display = 'none';
		
		document.forms['addtocaddieform'+pere.unID].elements['skuproduct'].value = sku;
		
		if( ( isSet( $('produitsAimes') ) ) || isSet( $('produitsAimesVides') ) ){
			var from = 'jaime';
		}else
			var from = 1;
		
		this.mettreAuPanier( 1 , pere.unID , from );
		
		if( from != 'jaime' ){
			$('iamwaiting'+pere.unID).style.display = 'block';
			$('iamwaiting'+pere.unID).style.left = this.position[0]+'px';
			$('iamwaiting'+pere.unID).style.top = this.position[1]+'px';
			$('success'+pere.unID).style.left = this.position[0]+'px';
			$('success'+pere.unID).style.top = this.position[1]+'px';
		}
	},
	
	makeItBlack:function( e , id , txt , avail ){
		var zone = e.element();
		if ( avail > 0 ) {
			
			if(this.shopcode == 'v4'){
				zone.style.background = '#fff2e9';				
				zone.style.color = '#000';
				zone.style.textDecoration = 'underline';
			}
			else if (this.shopid == 3 || this.shopid == 42 ) {
				zone.style.background = 'black';				
				zone.style.color = 'white';
			}
			else {
				zone.style.background = '#D0AAC7';
				zone.style.color = '#4E1255';
				
				
			}
			
		}

		if( txt != '' ){
			$('Stockul'+id).update( txt );
			$('Stockul'+id).style.display = 'block';
		}
	},

	makeItWhite:function( e , id , txtNiveau , avail){
		var zone = e.element();
		if ( avail > 0 ) {
			
			zone.style.background = 'white';
			
			if(this.shopcode == 'v4'){
				zone.style.textDecoration = 'none';
			}
			if ( this.shopid == 3 || this.shopid == 42 )
				zone.style.color = 'black';
			else
				zone.style.color = '#4E1255';
		}
		$('Stockul'+id).style.display = 'none';
		if( txtNiveau != '' ){
			$('Stockul'+id).update( txtNiveau );
			$('Stockul'+id).style.display = 'block';
		}
	},
	
	InitImages:function() {
		var divNodes = document.getElementsByClassName('cadre2');
		var imgChild = null;
		var zoomChild = null;
		var brand = null;
		var newsrc = null;
		var spanNodes = null;
		var nodes = $A(divNodes);
		var i = 0;
		var quarantehuit = '';
		var pere = this.json.product;
		var shopcode =  this.shopcode;
		nodes.each( function( node ){
			if( isSet( pere[i].uneImage ) )
				quarantehuit = '<br />48h'; 
			imgChild = node.getElementsByTagName("img");
			if ( !isNull( imgChild[0] ) ) {
				spanNodes = node.getElementsByTagName("a");
				if( shopcode == 'v4' ){
					brandNode = node.getElementsByClassName('black');
				}
				zoomChild = node.getElementsByTagName("img")[1];
				
	 			var oldsrc = imgChild[0].src;
				var s125 = oldsrc.indexOf('125x125') != -1;
				var s221 = oldsrc.indexOf('221x221') != -1;

				if( s125 ){
					newsrc = oldsrc.replace(/125x125/,'400x400');
				}else if( s221 ){
					newsrc = oldsrc.replace(/221x221/,'350x350');
				}else
					newsrc = null;
				
				
				var brand = "";
				if( spanNodes[0].hasChildNodes() ) {

                    if (spanNodes[0].firstChild) {
                      if (spanNodes[0].firstChild.data != null)
                        brand = spanNodes[0].firstChild.data;
                      if (spanNodes[1].firstChild && spanNodes[1].firstChild.data != null)
                        brand = spanNodes[1].firstChild.data;
                    }
				}

				if(typeof( imageTrail ) != 'undefined' && !isNull( newsrc ) ){
					if( shopcode == 'v4' ){
						var contentDiv = '<img id="trailImg" src="'+newsrc+'" border="0" class="bigarticleimg"><!--<div class="brand">'+brand+' '+'<span class="black">'+brandNode[0].firstChild.data+quarantehuit+'</span>--></div>';
					}else
						var contentDiv = '<img id="trailImg" src="'+newsrc+'" border="0" class="bigarticleimg"><div class="brand">'+brand+'</div>';
					
					infos = {
							'offsetfrommouse' : [ 30 , -10 ],
							'currentimageheight' : 400,
							'moveLeft' : 410,
							'docwidth' : isSet( $('listing_produits') ) ? $('listing_produits').cumulativeOffset()[0] : isSet( $('product-view') ) ? $('product-view').cumulativeOffset()[0] : null,
							'nameDiv' : 'trailimagediv',
							'contentDiv' : contentDiv,
							'lanceur' : zoomChild
							};
					var mouseMsg = new imageTrail( infos );
				}
			}
			i++;
		});
	},
	
	getMarquesPref:function(){
		var jsonElements = {
			 			'url':'/Ajax~getBrandAimees',
			 			'myClass':this,
			 			'myMethod':'gestionMarquesPref()',
			 			'parametres' : 'clientid='+this.clientid
			 		};
				 
		ajaxReq = new _AjaxElements( jsonElements );
		ajaxReq.getAjaxInformations();	

	},
	
	gestionMarquesPref:function(){
		var pathName =  document.location.pathname;
		var regm = new RegExp( "(\\w+\/\\w+\-\\d+\-)(.+)" , 'gi' );
		var splited = regm.exec(pathName)[2].split('-');
		var pair = ( splited.length & 1 ) == '0' ? '-' : '--';
		var brands = '';
		var brandsIm = '';
		var brandsUrl = '';
		
		var color = new RegExp( ".+(Color-[a-z0-9]+[-$]?)" , 'gi' );
		var taille = new RegExp( ".+(taille-[a-z0-9\\s\+%]+[-$]?)" , 'gi' );
		var marque = new RegExp( ".+(marque-[a-z0-9\\s\+%]+[-$]?)" , 'gi' );
		var page = new RegExp( ".+(page-[a-z0-9\\s\+%]+[-$]?)" , 'gi' );
		
		color = color.exec( pathName );
		taille = taille.exec( pathName );
		marque = marque.exec( pathName );
		page = page.exec( pathName );
		
		if( !isNull( color ) ){
			pathName = pathName.replace( '-'+color[1].trim('-') , '' );
		}
		if( !isNull( taille) ){
			pathName = pathName.replace( '-'+taille[1].trim('-') , '' );
		}
		if( !isNull( marque ) ){
			pathName = pathName.replace( '-'+marque[1].trim('-') , '' );
		}
		if( !isNull( page ) ){
			pathName = pathName.replace( '-'+page[1].trim('-') , '' );
		}

		if( isSet( this.json.idBrand ) ){
			for( var i = 0 ; i < this.json.idBrand.length ; i++ ){
				if( tabIdMarques.in_array( this.json.idBrand[i] ) ){
					brands += '+'+this.json.idBrand[i];
					brandsIm += this.json.idBrand[i];
					brandsUrl += '<a href="'+pathName+pair+'Marque-'+this.json.idBrand[i]+'">'+this.json.labelBrand[i]+'</a>';
				}
			}
		}
		
		if( brands != '' ){
			var url = pathName+pair+'marquesPreferees-'+brands.trim('+');
			
			
			var elemntsFrame = {
					'htmlelmt' : 'div',
					'txtContent' : '<a href="'+url+'">Vos marques pr&eacute;f&eacute;r&eacute;es</a>',
					'attributes' : { 'id' : 'marque'+brandsIm, 'class' : 'sousMenuDer' }
			   	};
	
			var divMarque = $('marquePref').createFrame( elemntsFrame );
			
			var elemntsFrame = {
					'htmlelmt' : 'div',
					'txtContent' : brandsUrl,
					'attributes' : { 'id' : 'sousMenumarque'+brandsIm , 'class' : 'soussousmenu' , 'style' : 'display:none;' }
			   	};
	
			divMarque.createFrame( elemntsFrame );
			new menuDer();
		}
	}
	
});
