/*

!!!!!!!!!!!Wichtige Hinweise!!!!!!!!!!!!

Diese Datei ist in alle Länder gleich.

Bitte zukünftig alle Texte und länderspezifische Angaben (z.B. /de/) zur Functions_Config.js auslagern!

*/
var RolliererConf = {
	rolliererAktive: false,
	alternativeIndiezes: new Array(/*0,*/ 1, 2, 3),
	rolliererSpeed: 2,
	rolliererStartDurchlaufMax:2,
	playBT: '_on',
	pauseBT: '_off'
}
var arrAlternativeansichten = new Array();
function setAlternativeAnsichten() 
{	
	if($('noColorInfoLayer')) {
		if($('product_bild').src.indexOf('PicProductNoColor') == -1) {
			$('noColorInfoLayer').remove();
		}
	}
	arrAlternativeansichten = new Array();
	arrAnsicht = new Array();
if(DivisionID != 71 && DivisionID != 72 && DivisionID != 76 && DivisionID != 77) {	
	var arrPos = arrAnsicht.length;	
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListCSOutfit_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListCSOutfit/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(116, 174);				
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductCSOutfit/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicCSOutfitXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageOutfitChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']			= false || (blnOutFitStyle ==  'wahr');
		arrAnsicht[arrPos]['scrollonclick']		= false;	
} else {
	var arrPos = arrAnsicht.length;	
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListCSOutfit_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListCSOutfit2/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductCSOutfit/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicCSOutfitXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageOutfitChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']			= false || (blnOutFitStyle ==  'wahr');
		arrAnsicht[arrPos]['scrollonclick']		= false;		
}
		
//Movie
if(VideoFlag == -1 && blnOutFitStyle ==  'wahr') {
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbVideo_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']				= Texte['pfad']+'/Shop/Img/Product/'+strLng+'/StandartV2/Fashion-Movie_button.gif';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductFrontView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicSideViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productMovie';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;
		arrAnsicht[arrPos]['background']			= picServerBase + 'PicThumbListFront/' + StyleNumber + '_' + aktiveColorNo + '.jpg';				
}

if(StyleNumber == 'V68354' || StyleNumber == 'V68356' || StyleNumber == 'V68352' || StyleNumber == 'V68350') {
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
	arrAnsicht[arrPos]['id']							= 'PicSportSpecial_'+ arrPos;
	arrAnsicht[arrPos]['thumbImg']				= '../../Img/Product/'+strLng+'/StandartV2/special_protect_thumb.gif';
	arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);			
	arrAnsicht[arrPos]['thumbTopImg']	= null;
	arrAnsicht[arrPos]['thumbTopImgSize']	= new Array(76,63); // Nur für PNG
	arrAnsicht[arrPos]['thumbTopImgMargin']	= '0px 0px 0px 0px';
	arrAnsicht[arrPos]['img'] 					= '../../Img/Product/'+strLng+'/StandartV2/special_protect_product.gif';
	arrAnsicht[arrPos]['imgXXL'] 			= '../../Img/Product/'+strLng+'/StandartV2/special_protect_product.gif';
	arrAnsicht[arrPos]['imgXXLFallback'] = false;
	arrAnsicht[arrPos]['event'] 				= 'productImageNoColor';
	arrAnsicht[arrPos]['alternative']		= null;
	arrAnsicht[arrPos]['displayOn']			= true;	
	arrAnsicht[arrPos]['scrollonclick']		= false;	
		
}				
	
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListFrontView_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListFront/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);			
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductFrontView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicDestStyleDsl/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']			= true;	
		arrAnsicht[arrPos]['scrollonclick']		= false;		

if(VideoFlag == -1 && blnOutFitStyle ==  'falsch') {
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbVideo_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']				= Texte['pfad']+'/Shop/Img/Product/'+strLng+'/StandartV2/Fashion-Movie_button.gif';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductFrontView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicSideViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productMovie';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;
		arrAnsicht[arrPos]['background']			= picServerBase + 'PicThumbListFront/' + StyleNumber + '_' + aktiveColorNo + '.jpg';				
}		
		
	arrPos = arrAnsicht.length;	
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListBackView_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListBackView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);				
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductBackView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicBackViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';	
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		if(CheckStyle['sonnenbrillen'] && menuWelt != 'women' && DownTop1 != 'women') arrAnsicht[arrPos]['displayOn']		= false;
		arrAnsicht[arrPos]['scrollonclick']		= true;	

	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListSideView_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListSideView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductSideView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicSideViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;		
	
if(Flash360Grad == -1) {
	/* 360 Grad Check */
	gen360GradImgObject();	
	if(check360GradColor(aktiveColorNo)) {
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbFlash360_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListFront/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76,114);
		arrAnsicht[arrPos]['thumbTopImgSize']	= new Array(76,63); // Nur für PNG
		arrAnsicht[arrPos]['thumbTopImg']	= Texte['pfad']+'/Shop/Img/Product/'+strLng+'/360_view_btn.gif';
		arrAnsicht[arrPos]['thumbTopImgMargin']	= '0px 0px 0px 0px';
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductSideView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicSideViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'product360';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;
	}
}	

	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListFlatSchwarz_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListNoColor/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['background']		= null;
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76,114);
		arrAnsicht[arrPos]['thumbTopImgSize']	= new Array(76,63); // Nur für PNG
		arrAnsicht[arrPos]['thumbTopImg']	= Texte['pfad']+'/Shop/Img/Product/'+strLng+'/StandartV2/noColorDetail.png';
		arrAnsicht[arrPos]['thumbTopImgMargin']	= '30px 0px 45px 0px';
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductNoColor/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicNoColorXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageNoColor';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']			= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;	
		
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListFlat_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListFlat/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductFlatView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicFlatViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;					
		
	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListFlatBackView_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListFlatBackView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductFlatBackView/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicFlatBackViewXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = false;
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;	

	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListHaptik_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListHaptik/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductHaptik/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicHaptikXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';	;
		arrAnsicht[arrPos]['imgXXLFallback'] = picServerBase + 'PicProductHaptik/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['event'] 				= 'productImageChange'; //'productImageChangeHaptik';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;	

	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListAlternative_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListAlternative/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductAlternativ/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicAlternativXXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = picServerBase + 'PicProductAlternativ/' + StyleNumber + '_' + aktiveColorNo + '.jpg';	
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;	

	arrPos = arrAnsicht.length;
	arrAnsicht[arrPos] = new Object();
		arrAnsicht[arrPos]['id']						= 'PicThumbListAlternative1_'+ arrPos;
		arrAnsicht[arrPos]['thumbImg']		= picServerBase + 'PicThumbListAlternative1/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['thumbImgSize']	= new Array(76, 114);
		arrAnsicht[arrPos]['thumbTopImg']	= null;
		arrAnsicht[arrPos]['img'] 					= picServerBase + 'PicProductAlternative1/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXL'] 			= picServerBase + 'PicAlternative1XXL/' + StyleNumber + '_' + aktiveColorNo + '.jpg';
		arrAnsicht[arrPos]['imgXXLFallback'] = picServerBase + 'PicProductAlternative1/' + StyleNumber + '_' + aktiveColorNo + '.jpg';		
		arrAnsicht[arrPos]['event'] 				= 'productImageChange';
		arrAnsicht[arrPos]['alternative']		= null;
		arrAnsicht[arrPos]['displayOn']		= true;
		arrAnsicht[arrPos]['scrollonclick']		= true;
		
		arrAlternativeansichten = arrAnsicht;
}

/* Alternativelisten Events */
function outFitOpen()
{
	paramArray = document.location.search.replace('?', '').split('&');
	var targetLocation = 'HtmlProduct_Outfit.html?stylenumber=' + StyleNumber + '&destTPL=' + ProductTemplate+'&id=' + ID + '&color=' + aktiveColorNo+'&refpage='+getParameter('refpage', paramArray);
	window.location.href = targetLocation;	
}

var openXXLPicture = false;
var openXXLpixelEventClick = false;
function openXXLDetail()
{
		SlideStop();
		openXXLpixelEventClick = arrAlternativeansichten[aktiveAlternatvie]['id'].replace('_'+aktiveAlternatvie, '');
		openXXLPicture = arrAlternativeansichten[aktiveAlternatvie]['imgXXL'];
		var zoomklicked_groesser = window.open('../WinDslV3.html','zoomklicked_groesser','width=840,height=708,screenX=20,screenY=20,scrollbars=no');
		if (navigator.appName == 'Microsoft Internet Explorer') {
	  	zoomklicked_groesser.moveTo(40,40);
		}
		wtClickPixel('.popup.Front_img.click.'+StyleNumber);
}

function productMovie(alternativeID) {
	
	if($('noColorInfoLayer')) {
		$('noColorInfoLayer').remove();
	}
	if(CheckStyle['iframe'] == true) {
		parent.document.getElementById('closeLayer').style.display = 'none';
	}
	var MovieBack = new Element('div', {'id': 'MovieBack', 'style': 'position: absolute; left: 200px; top: 10px; width: 370px; height: 490px; background-color: white; display: none; z-index: 10001'});
	$('ProductView').appendChild(MovieBack);
	
	var MovieSpan = new Element('div', {'id': 'MovieDiv', 'style': 'position: absolute; left: 9px; top: 35px; width: 360px; height: 450px;'});
	$('MovieBack').appendChild(MovieSpan);
	
	var MovieCloseDiv = new Element('div', {'id': 'MovieClose', 'style': 'position: absolute; right: 10px; top: 10px; cursor: pointer'});
	$('MovieBack').appendChild(MovieCloseDiv).observe('click', function() { productMovieRemove(); });;
	
	var MovieClose = new Element('img', {'src': '../../Img/Product/'+strLng+'/ansichtenlayer/schliessen.gif'});
	$('MovieClose').appendChild(MovieClose);
	var frameSize = getContentSize();
	var MovieSchatten = new Element('div', {'id': 'flashLayerMovie', 'style':'z-index:10000'}).setOpacity(0.30);
	$('ProductView').appendChild(MovieSchatten);
	$('flashLayerMovie').style.width = frameSize[0]+'px';
	$('flashLayerMovie').style.height = frameSize[1]+'px';
	var strVideoSource = "http://pics.esprit.de/Shop/PicSrcFlashVideo/" + StyleNumber +".flv";					
	var so = new SWFObject("http://www.esprit.de/Aktionen/fashion_movie/FashionMovie350x400.swf", "fashion", "352", "443", "8", "#CCCCCC"); //#CCCCCC
	so.addVariable("videoSource", strVideoSource);
	so.addVariable("strLang", MovieLng);
	so.addParam("wmode", "transparent"); // Eingebaut wegen DOI
	so.write("MovieDiv");
	$('MovieBack').style.display = 'block';
	
	wtClickPixel('.popup.Fashion-Movie.'+StyleNumber);	
}

function product360(alternativeID) {
	
	if($('noColorInfoLayer')) {
		$('noColorInfoLayer').remove();
	}
	if(CheckStyle['iframe'] == true) {
		parent.document.getElementById('closeLayer').style.display = 'none';
	}	
	//Layer
	if(!$('Flash360Div')) {
		var Flash360Span = new Element('div', {'id': 'Flash360Div', 'style': 'position: absolute; left: 9px; top: 10px; width: 600px; height: 500px; z-index: 10001;'});
		$('ProductView').appendChild(Flash360Span);
	} else {
		$('Flash360Div').show();
	}
	//Schatten
	if(!$('Flash360Schatten')) {
		var frameSize = getContentSize();
		var MovieSchatten = new Element('div', {'id': 'Flash360Schatten', 'style':'z-index:10000; background-color:#666666; padding: 5px; width: 794px; height: 680px; left: 0px; top: 0px; position:absolute;'}).setOpacity(0.30);
		MovieSchatten.observe('click', productFlash360Remove);
		$('ProductView').appendChild(MovieSchatten);
		$('Flash360Schatten').style.width = frameSize[0]+'px';
		$('Flash360Schatten').style.height = frameSize[1]+'px';		
	} else {
		$('Flash360Schatten').show();
	}
	//Flash
	var so = new SWFObject("http://pics.esprit.de/Shop/ProductViewer360as4.swf?ts="+ (new Date()).getTime(), "Product Viewer", "600", "500", "9", "#ffffff");
	so.addParam("quality", "high"); // Parameter anhängen
	so.addParam("scale", "noscale");
	so.addParam("allowScriptAccess", "always");
	so.addVariable("timestamp", (new Date()).getTime());
	so.addVariable("imgPath",'http://pics.esprit.de/Shop/PicSrcFlash360/'+StyleNumber + "_" + aktiveColorNo);
	so.addVariable("sprache",Grad360Lng);
	so.write("Flash360Div");
	//Pixel
	wtClickPixel('.popup.360grad.'+StyleNumber);
}

function productFlash360Remove() {
	$('Flash360Schatten').hide();
	$('Flash360Div').hide();
	if(CheckStyle['iframe'] == true) {
		parent.document.getElementById('closeLayer').style.display = 'block';
	}		
}

function productMovieRemove() {
	$('MovieBack').remove();
	$('flashLayerMovie').remove();
	if(CheckStyle['iframe'] == true) {
		parent.document.getElementById('closeLayer').style.display = 'block';
	}	
}

function productImageChangeWidthXXL(alternativeID) {
	aktiveAlternatvie = alternativeID;
	pixelEventClick = arrAlternativeansichten[alternativeID]['id'].replace('_'+alternativeID, '')	 ;
	pixelStr2 =  strLng + '.cat.ansicht.' + pixelEventClick + '.click';
	pixelStr3 =  '.ansicht.' + pixelEventClick + '.click';
	wtClickPixel(pixelStr3);
	$('product_bild').src = arrAlternativeansichten[alternativeID]['img'] ;
	changeImageColor(arrAlternativeansichten[alternativeID]['id']);
	openXXL(alternativeID);
}

function productImageChange(alternativeID) {
	
	if($('noColorInfoLayer')) {
		$('noColorInfoLayer').remove();
	}
		
	aktiveAlternatvie = alternativeID;
	pixelEventClick = arrAlternativeansichten[alternativeID]['id'].replace('_'+alternativeID, '')	 ;
	pixelStr2 =  strLng + '.cat.ansicht.' + pixelEventClick + '.click';	
	pixelStr3 =  '.ansicht.' + pixelEventClick + '.click';
	wtClickPixel(pixelStr3);
	$('product_bild').src = arrAlternativeansichten[alternativeID]['img'];
	if($('product_bild_fade')) { $('product_bild_fade').src = arrAlternativeansichten[alternativeID]['img']; }
	changeImageColor(arrAlternativeansichten[alternativeID]['id']);
	$('vergroessern').style.display = 'block';
}

function productImageOutfitChange(alternativeID)
{
	aktiveAlternatvie = alternativeID;
	pixelEventClick = arrAlternativeansichten[alternativeID]['id'].replace('_'+alternativeID, '')	 ;
	pixelStr2 =  strLng + '.cat.ansicht.' + pixelEventClick + '.click';
	pixelStr3 =  '.ansicht.' + pixelEventClick + '.click';
	wtClickPixel(pixelStr3);
	$('product_bild').src = arrAlternativeansichten[alternativeID]['img'];
	$('product_bild').onerror = function() { 
		$(this.id).src = $(this.id).src.replace('/PicProductCSOutfit/', '/PicProductFrontView/');
	}
	changeImageColor(arrAlternativeansichten[alternativeID]['id']);
	$('vergroessern').style.display = 'block';
}

function productImageChangeHaptik(alternativeID) {
	aktiveAlternatvie = alternativeID;
	pixelEventClick = arrAlternativeansichten[alternativeID]['id'].replace('_'+alternativeID, '')	 ;
	pixelStr2 =  strLng + '.cat.haptik.' + pixelEventClick + '.click';
	pixelStr3 =  '.haptik.' + pixelEventClick + '.click';
	wtClickPixel(pixelStr3);	
	$('product_bild').src = arrAlternativeansichten[alternativeID]['img'] ;
	changeImageColor(arrAlternativeansichten[alternativeID]['id']);
	$('vergroessern').style.display = 'block';
	detailImageClicked();
}

function productImageNoColor(alternativeID) {
	NoColorMeldung();
	aktiveAlternatvie = alternativeID;
	pixelEventClick = arrAlternativeansichten[alternativeID]['id'].replace('_'+alternativeID, '')	 ;
	pixelStr2 =  strLng + '.cat.ansicht.' + pixelEventClick + '.click';	
	pixelStr3 =  '.ansicht.' + pixelEventClick + '.click';
	$('product_bild').src = arrAlternativeansichten[alternativeID]['img'];
	changeImageColor(arrAlternativeansichten[alternativeID]['id']);
	$('vergroessern').style.display = 'none';	
	wtClickPixel(pixelStr3);
}

function NoColorMeldung() {
	if($('noColorInfoLayer')) {
		$('noColorInfoLayer').show();
	} else {
		var noColorLayer = new Element('div', { 'id':'noColorInfoLayer' });
		noColorLayer.setStyle('position: absolute; top: 300px; left: 200px; background-color: white; cursor: pointer; z-index: 2');
		noColorLayer.setOpacity(0.7);
		noColorLayer.observe('click', function() {
			var currentId = this.id;
			this.remove();
			/*Wenn Layer nicht ausgeblendet werden kann (FF 2)*/
			if($(currentId)) { $(currentId).hide(); }
			if($('noColorInfoLayer')) {
				$(noColorInfoLayer).show();
			} else {
				var noColorLayer = new Element('div', { 'id':'noColorInfoLayer' });
				noColorLayer.setStyle('position: absolute; top: 300px; left: 160px; background-color: white; cursor: pointer; z-index: 2');	
				noColorLayer.setOpacity(0.7);
				var noColorImg = new Element('img', { 'src':'../../Img/Product/'+strLng+'/noColorLayer.gif' });
				noColorLayer.appendChild(noColorImg);
				$('ProductView').appendChild(noColorLayer);
				noColorLayer.onclick = function() {
					var currentId =  this.id;
					this.remove();
					if($(currentId)) { 
						$(currentId).hide();
					}
					NoColorMeldung();
				}
			}
		});
		var noColorImg = new Element('img', { 'src':'../../Img/Product/'+strLng+'/noColorInfoLayer.gif' });
		noColorLayer.appendChild(noColorImg);
		$('ProductView').appendChild(noColorLayer);
	}	
}

function passformDisplay()
{
	var passformDisplay = DescStyleFitTip3>'';
	if($('passformBT') && passformDisplay) {
		$('passformBT').style.display = 'inline';
	} else if($('passformBT')) {
		$('passformBT').style.display = 'none';
	}	
}