function trimSKU(a){if(a.charAt(2)!="0"){return a.substring(2)}else{return a.substring(3)}}function attachProductLink(d,a){amp=d.indexOf("&");if(amp>=0){d=d.charAt(0)=="M"?d.substring(1,amp):trimSKU(d.substring(0,amp))}else{d=d.charAt(0)=="M"?d.substring(1):trimSKU(d)}var c=new Array("currency","image","shortdescription","oldprice","price","priceperunit","product-price","product-currency");var b;for(i=0;i<c.length;i++){if(document.getElementById(c[i]+d)){document.getElementById(c[i]+d).onclick=function(){location.href=a};Element.addClassName(document.getElementById(c[i]+d),"available");if(c[i]=="image"){b=1;while(document.getElementById(c[i]+d+"-"+b)){document.getElementById(c[i]+d+"-"+b).onclick=function(){location.href=a};Element.addClassName(document.getElementById(c[i]+d+"-"+b),"available");b++}}}}}function linkAll(){var d=document.getElementsByClassName("productinfo");var a;var e;var c;for(var b=0;b<d.length;b++){c=d[b].getElementsByTagName("a");if(c.length>0){a=c[0].href;e=a.substring(a.indexOf("ProductSKU=")+11);attachProductLink(e,a)}}}function showStoererNewsletter(a){var c=document.getElementsByTagName("div");for(i=0;i<c.length;i++){if(c[i].id.substring(0,8)=="stoerer_"){c[i].style.display="none"}}if(document.getElementById("stoerer_"+a)){if(document.getElementById("stoerer_"+a).parentNode.parentNode){var b=document.getElementById("stoerer_"+a).parentNode;if((parseInt(b.parentNode.style.left)+parseInt(b.style.left)+341)>771){document.getElementById("stoerer_"+a).style.left=((parseInt(b.style.left)+341)-(771-170))+"px"}}document.getElementById("stoerer_"+a).innerHTML=document.getElementById("stoerer_filiale").innerHTML;document.getElementById("stoerer_"+a).style.display=""}}function showStoererFiliale(a){var c=document.getElementsByTagName("div");for(i=0;i<c.length;i++){if(c[i].id.substring(0,8)=="stoerer_"){c[i].style.display="none"}}if(document.getElementById("stoerer_"+a)){if(document.getElementById("stoerer_"+a).parentNode.parentNode){var b=document.getElementById("stoerer_"+a).parentNode;if((parseInt(b.parentNode.style.left)+parseInt(b.style.left)+341)>771){document.getElementById("stoerer_"+a).style.left=((parseInt(b.style.left)+341)-(771-170))+"px"}}document.getElementById("stoerer_"+a).innerHTML=document.getElementById("stoerer_filiale").innerHTML;document.getElementById("stoerer_"+a).style.display=""}}function clsLyr(a){if(a){if(a.parentNode){if(a.parentNode.parentNode){if(a.parentNode.parentNode.id){document.getElementById(a.parentNode.parentNode.id).style.display="none"}}}}};