function stempel()
{
  if(DescStyleFitTip4 == 'newborn_special')
  {
  	document.write('<div style="position:absolute;top:10;left:400;z-index:50;"><img src="../../PicDestStyleSymbol/'+strLng+'/stamp_newborn_special_spv.gif"></div>');
  }
}
function getDetailTable()
{
  var strOut = '';
	blnNoCrossSell = blnNoCrossStyle;

	//Rechter Bildbereich mit doppelbilder zoom und macro
	if((Welt == "women" || Welt=='kids' || Top3=='home') && Category != Texte['strandtuch'] && SubAction3 != Texte['bettwaesche'])
	{
		var strOut = '<td width="301" style="border-top:1px solid #E6E6E6;border-left:1px solid #E6E6E6;border-right:1px solid #E6E6E6;">\
										<table width="301" cellpadding="0" cellspacing="0" border="0" >\
	    	            	<tr>';
		    	            if(Welt=='kids')
		    	            {
	  	    	            strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.2View_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\''+((PicSrcFit!='') ? 'ruecken_passform' : 'vorne')+'\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
	    	    	        }
	    	    	        else if(Division==Texte['schmuckuhren'])
	    	    	        {
  	    	    	        strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.Flash_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\'material_zoom_in\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
    	    	    	    }
    	    	    	    else if(Division==Texte['krawatten'] || (Division==Texte['accessories'] && Category==Texte['diverses']))
    	    	    	    {
    	    	    	    	strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.Flash_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\'demo\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
	        	  	      }
	        	  	      else if(SubAction3==Texte['kissen'] || Category==Texte['handschuhe'] || Category == Texte['duft'])
	        	  	      {
  	        	  	      strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.Zoom_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\'xxl\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
	        	        	}
	        	        	else
	        	        	{
  	        	        	if(StyleNumber.indexOf('EBOX') < 0)
  	        	        		strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.2View_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\''+((PicSrcFit!='') ? 'ruecken_passform' : 'xxl')+'\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
    	        	     	} 
	    	     					strOut+= this.getDetailImage();
		    	   					strOut+='</tr>\
			    	           	<tr>\
	  		    	            <td colspan="2" align="left" style="border-top:1px solid #E6E6E6;border-bottom:1px solid #E6E6E6;">' + this.getButtonList() + '</td>\
	    		    	        </tr>\
	        	    	   	  <tr>\
	          	    	   	  <td colspan="2" align="left"><a href="#"  id="MacroLink"><img src="../../Img/transparent.gif" width="301" height="192" id="PicSrcFit"></a></td>\
	            	    		</tr>\
	              				</table>\
	              			</td>';
	}
	else if((Welt == "men") && Category != Texte['strandtuch'] && (Welt == "men" && Division != Texte['schmuck']) && SubAction3 != Texte['bettwaesche'])
	{
		var strOut = '<td width="301" style="border-top:1px solid #E6E6E6;border-left:1px solid #E6E6E6;border-right:1px solid #E6E6E6;">\
									<table width="301" cellpadding="0" cellspacing="0" border="0" >\
	    	            	<tr>';
		    	            if(Welt=='kids')
		    	            {
	  	    	            strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.2View_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\''+((PicSrcFit!='') ? 'ruecken_passform' : 'vorne')+'\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
	    	    	        }
	    	    	        else if(Division==Texte['schmuckuhren'])
	    	    	        {
  	    	    	        strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.Flash_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\'material_zoom_in\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
    	    	    	    }
    	    	    	    else if(Division==Texte['krawatten'] || (Division==Texte['accessories'] && Category==Texte['diverses']))
    	    	    	    {
      	    	    	    strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.Flash_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\'material_zoom_in\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
	        	  	      }
	        	  	      else if(SubAction3==Texte['kissen'] || Category==Texte['handschuhe'] || Category == Texte['duft'])
	        	  	      {
  	        	  	      strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.Zoom_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\'xxl\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
	        	        	}
	        	        	else
	        	        	{
  	        	        	strOut+='<td align="right"><a href="#" onmouseup="wtClickPixel(\'.popup.2View_img.click\',\'click\');" onClick="PicDestStyleZoomClick(\''+((PicSrcFit!='') ? 'ruecken_passform' : 'xxl')+'\')" id="BackViewLink"><img src="../../Img/transparent.gif" name="PicSrcBackView" width="150" height="160" vspace="0" hspace="0"></a></td>';
    	        	     	} 
	    	     					strOut+= this.getDetailImage();
		    	   					strOut+='</tr>\
			    	           	<tr>\
	  		    	            <td colspan="2" align="left" style="border-top:1px solid #E6E6E6;border-bottom:1px solid #E6E6E6;">' + this.getButtonList() + '</td>\
	    		    	        </tr>\
	        	    	   	  <tr>\
	          	    	   	  <td colspan="2" align="left"><a href="#"  id="MacroLink"><img src="../../Img/transparent.gif" width="301" height="192" id="PicSrcFit"></a></td>\
	            	    		</tr>\
	              				</table>\
	              			</td>';
	}
	else
	{
		var strOut = '<td width="301" valign="bottom">\
										<table width="301" cellpadding="0" cellspacing="0" border="0" >\
  	  	            	<tr>\
  			                <td align="right" style="border:0px solid #E6E6E6;">' + this.getButtonList() + '</td>\
	    			          </tr>\
        	     			</table>\
             			</td>';
	}

  blnNoCrossSell = blnNoCrossStyle ? blnNoCrossStyle : blnNoCrossSell;
 	return strOut; 
}
  
function getButtonList()
{
	var NoPassformSet=false;
  var strOut ='<table border="0" cellspacing="0" cellpadding="0" vspace="0" hspace="0" width="'+(((Welt != "men" && Category != Texte['struempfe']) && Category != Texte['strandtuch'] && (Welt != "men" && Division != Texte['schmuck']) && SubAction3 != Texte['bettwaesche']) ? '300' : '')+'" height="23">\
			 		        <tr>';

	if(PicDestStyleZoom!='' && Category == Texte['sonnenbrille2'])
  {
         strOut += '<td align="left" valign="middle"  height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.Front.click\',\'click\');" onClick="PicDestStyleZoomClick(\'vorne\')"><img src="../../Img/Product/'+strLng+'/product_view_sunglasses_front.gif" vspace="0" hspace="0" border="0" name="Zoom"></a></td>';
  }
  else if(PicDestStyleZoom!='')
  {
  			  strOut += '<td align="left" valign="middle" width="75" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.Front.click\',\'click\');" onClick="PicDestStyleZoomClick(\'vorne\')"><img src="../../Img/Product/'+strLng+'/view_bigger.gif" vspace="0" hspace="0" border="0" name="Zoom"></a></td>';
	}

  if(PicSrcFit!='' && (Category == Texte['krawatten'] || Division == Texte['schmuckuhren'] || Category ==Texte['schaltuch'] || Division == Texte['uhren'] || Category == Texte['guertel'] || Category == Texte['diverses'] || Division == Texte['taschen'] || Category == Texte['caps'] || Category == Texte['headbands'] || Category == Texte['muetzecaps'] || Category == Texte['taschen'] || Category == Texte['capsschals']))
  {
  				strOut += '<td align="left" valign="middle"  height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'demo\')"><img src="../../Img/Product/'+strLng+'/view_demo.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
	}
  else if(PicSrcFit!='' && Category == Texte['portemonnaies'])
  {
  				strOut += '<td align="left" valign="middle"  height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'demo_portemonnaies\')"><img src="../../Img/Product/'+strLng+'/view_inside.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
	}
  else if(PicSrcFit!='' && Division == Texte['hemden'])
  {
          strOut += '<td align="left" valign="middle"  height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'ruecken_passform\')"><img src="../../Img/Product/'+strLng+'/view_back.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
  }
  else if(PicSrcFit!='' && Division == Texte['schuhe'] || Category == Texte['geschenkboxen'] || StyleNumber.indexOf('EBOX') >= 0)
  {
          strOut += '<td align="left" valign="middle" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'ansicht\')"><img src="../../Img/Product/'+strLng+'/product_view_2view.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
  }
  else if(PicSrcFit!='' && Category == Texte['sonnenbrille2'])
  {
          strOut += '<td align="left" valign="middle" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'diagonal_passform\')"><img src="../../Img/Product/'+strLng+'/product_view_sunglasses_diagonal.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
  }
  else if((PicSrcFit!='') && ((Category == Texte['pensamore']) || (OldCategory == Texte['pensamore'])))	//Regenschirme usw.
  {
          strOut += '<td align="left" valign="middle" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'ruecken_passform\')"><img src="../../Img/Product/'+strLng+'/view_demo.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
  }
  else if((PicSrcFit!='') && (SubAction3.indexOf(Texte['neuseelwolle']) == -1))
  {
          strOut += '<td align="left" valign="middle" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.2View.click\',\'click\');" onClick="PicDestStyleZoomClick(\'ruecken_passform\')"><img src="../../Img/Product/'+strLng+'/view_back.gif" vspace="0" hspace="0" border="0" name="Passform"></a></td>';
  }
  else {
  	NoPassformSet=true;
  }

  if(PicDestStyleDsl!='' && Division == Texte['bodywear'])
  {
  				strOut += '<td align="left" width="75" valign="middle" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.Zoom.click\',\'click\');" onClick="PicDestStyleZoomClick(\'kombi_bodywear\')"><img src="../../Img/Product/'+strLng+'/view_combo.gif" hspace="0" border="0" name="Dsl"></a></td>';  
  }
  else if(PicDestStyleDsl!='' && Category == Texte['anzugsakkos'] || Category == Texte['suiting'])
  {
          strOut += '<td align="left" valign="middle" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.Zoom.click\',\'click\');" onClick="PicDestStyleZoomClick(\'kombi_suiting\')"><img src="../../Img/Product/'+strLng+'/view_combo.gif" hspace="0" border="0" name="Dsl"></a></td>';  
  }
  else if(PicDestStyleDsl!='' && ((Division == Texte['jeans'] || Division == Texte['hosen']) || (Action == Texte['hosen'] || Action == Texte['jeans'])))
  {
          strOut += '<td align="left" valign="middle" width="75" height="23" id="SiteView"></td>';  
    ImageSA = new Image();
		ImageSA.src = "http://pics.esprit.de/Shop/PicDestStyleZoomSide/"+PicDestStyleDsl;
		ImageSA.onload = function()
		{
			document.getElementById('SiteView').innerHTML = "<a href='#' onmouseup=\"wtClickPixel(\'.popup.SeitenAnsicht.click\',\'click\')\" onClick=\"PicDestStyleZoomClick(\'seite\')\"><img src='../../Img/Product/"+strLng+"/view_side.gif' hspace='0' border='0' name='Seite'></a>";
		}
		ImageSA.onerror = function()
		{
			document.getElementById('SiteView').innerHTML = "<a href='#' onmouseup=\"wtClickPixel(\'.popup.Zoom.click\',\'click\')\" onClick=\"PicDestStyleZoomClick(\'xxl\')\"><img src='../../Img/Product/"+strLng+"/view_super.gif' hspace='0' border='0' name='Passform'></a></td>";	
		}
  }
  else if(PicDestStyleDsl!='' && Category == Texte['sonnenbrille2'])
  {
          strOut += '<td align="left" valign="middle"  height="23"><a href="#" onmouseup=\"wtClickPixel(\'.popup.Zoom.click\',\'click\')\" onClick="PicDestStyleZoomClick(\'etui\')"><img src="../../Img/Product/'+strLng+'/product_view_sunglasses_etui.gif" hspace="0" border="0" name="Etui"></a></td>';  
  }
  else if(DescStyleFitTip4 == 'zweite_ansicht' )
  {
          strOut += '<td align="left" valign="middle"  height="23" id="FrontView2"></td>';  
    ImageSA = new Image();
		ImageSA.src = "http://pics.esprit.de/Shop/PicDestStyleZoom2/"+PicDestStyleDsl;
		ImageSA.onload = function()
		{
			document.getElementById('FrontView2').innerHTML = "<a href='#' onmouseup=\"wtClickPixel(\'.popup.2View.click\',\'click\')\" onClick=\"PicDestStyleZoomClick(\'vorne\')\"><img src='../../Img/Product/"+strLng+"/product_view_vorne2.gif' hspace='0' border='0' name='Seite'></a>";
		}
		ImageSA.onerror = function()
		{
			document.getElementById('FrontView2').innerHTML = "<a href='#' onmouseup=\"wtClickPixel(\'.popup.2View.click\',\'click\')\" onClick=\"PicDestStyleZoomClick(\'xxl\')\"><img src='../../Img/Product/"+strLng+"/view_super.gif' hspace='0' border='0' name='Zweite Ansicht'></a></td>";	
		}
  }
  else
  {
          strOut += '<td align="left" valign="middle" width="75" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.Zoom.click\',\'click\');" onClick="PicDestStyleZoomClick(\'xxl\')"><img src="../../Img/Product/'+strLng+'/view_super.gif" hspace="0" border="0" name="Passform"></a></td>';
	}
	
	if(PicSrcFlashZoom!='')
	{
          strOut += '<td align="left" valign="middle" width="74" height="23"><a href="#" onmouseup="wtClickPixel(\'.popup.Flash.click\',\'click\');" onClick="PicDestStyleZoomClick(\'material_zoom_in\')"><img src="../../Img/Product/'+strLng+'/view_detail.gif" vspace="0" hspace="0" border="0" name="FlashZoom"></a></td>';
	}
	else
	{
          strOut += '<td align="left" valign="middle" height="23">&nbsp;</td>';
  }
  //wenn kein Passform gesetzt
	if (NoPassformSet==true) {
		strOut += '<td align="left" valign="middle" width="75" height="23"><img src="../../Img/transparent.gif" hspace="0" border="0"></td>';
	}
	//wenn kein Passform gesetzt ENDE
   return strOut += '\
   								 </tr>\
			        	 </table>';
}
  
function getDetailImage()
{
	arrImageData = getCrossJSElement(ColorNumber, 2, false, 0);
	strImageName = '';	
	
	if(strImageName == '')
	{
		strImageName = StyleNumber+'_'+ColorNumber+'.jpg';
	}
	if(typeof strImageName != 'string' || strImageName == '')
	{
		strImageName = 'PicSrcBackView';
		strWinZoomParameter = 'ruecken_passform';
	}
	if(PicSrcFit=='')
	{
		strWinZoomParameter = 'vorne';
	}
	if((Flash360Grad == '-1')) { 
  	return '<td id="SecondPic" width="50%" height="113px"><a href="#" id="FlatLink" onmouseup="wtClickPixel(\'.popup.Front_img.click\',\'click\');" style="display:none;" onClick="PicDestStyleZoomClick(\'vorne\')"><img src="../../Img/transparent.gif" vspace="0" width="150" height="160" hspace="0" border="3" name="PicSrcDetail"></a><div id="360GradView" onMouseUp="PicDestStyleZoomClick(\'360_grad\');" style="display:none;width:86px;height:113px;cursor:pointer;margin-left:35px;"><img src="http://pics.esprit.de/Shop/PicDestStyleThumbMiddle/'+ StyleNumber + '_' + GetColorName(0,"1") + '.gif" /><img style="margin-top:-5px;margin-left:10px;" src="../../Img/Product/at/360_view_btn.gif" /></div></td>';
  }else if(Welt=='kids')
  {
		return '<td id="SecondPic"><a href="#" id="FlatLink" onmouseup="wtClickPixel(\'.popup.Front_img.click\',\'click\');"  onClick="PicDestStyleZoomClick(\'vorne\')"><img src="../../Img/transparent.gif" vspace="0" width="150" height="160" hspace="0" border="3" name="PicSrcDetail"></a></td>';
  } else
  {
  	if(Category==Texte['geschenkboxen'] || StyleNumber.indexOf('EBOX') >= 0)
  	{
    	return '<td id="SecondPic"><a href="#" id="FlatLink" onmouseup="wtClickPixel(\'.popup.SeitenAnsicht_img.click\',\'click\');"  onClick="PicDestStyleZoomClick(\'demo_geschenkboxen\')"><img src="../../Img/transparent.gif" vspace="0" width="300" height="160" hspace="0" border="3" name="PicSrcDetail"></a></td>';
    }
    else if(Category==Texte['portemonnaies'] || Category==Texte['muetzecaps'] || Division==Texte['jackemantel']) {
    	return '<td id="SecondPic"><a href="#" id="FlatLink" onmouseup="wtClickPixel(\'.popup.SeitenAnsicht_img.click\',\'click\');"  onClick="PicDestStyleZoomClick(\'material_zoom_in\')"><img src="../../Img/transparent.gif" vspace="0" width="150" height="160" hspace="0" border="3" name="PicSrcDetail"></a></td>';    	
    } else
    {
    	return '<td id="SecondPic"><a href="#" id="FlatLink" onmouseup="wtClickPixel(\'.popup.'+((Division == Texte['jeans'] || Division == Texte['hosen']) ? 'SeitenAnsicht_img' : 'material_zoom_in_img')+'.click\',\'click\');"  onClick="PicDestStyleZoomClick(\'seite\')"><img src="../../Img/transparent.gif" vspace="0" width="150" height="160" hspace="0" border="3" name="PicSrcDetail"></a></td>';
    }
  }
}

