function loadProductRecommendationsPanel(){var a="homeTeaserRecommendations";dojo.xhrPost({form:"productRecommendationsForm",handleAs:"text",headers:{"x-requested-with":"XMLHttpRequest"},load:function(c,b){dojo.byId(a).innerHTML=c;return c;},error:function(c,b){dojo.byId("errorPlace").innerHTML="An error occurred when deleting items from noteslist: "+c;
return c;}});}function loadProductNodeslistPanel(){var a="homeTeaserNoteslistItems";dojo.xhrPost({form:"noteslistItemsForm",handleAs:"text",headers:{"x-requested-with":"XMLHttpRequest"},load:function(c,b){dojo.byId(a).innerHTML=c;return c;},error:function(c,b){dojo.byId("errorPlace").innerHTML="An error occurred when deleting items from noteslist: "+c;
return c;}});}function goToProductDetailPage(d,c,a){var b=this;if(c===undefined||c===null){c=b.getAttribute("productId");}document.forms["formGoToProductDetail"].productID.value=c;if(a===undefined||a===null){a=b.getAttribute("variantId");}if(parseInt(a)>0){document.forms["formGoToProductDetail"].variantID.value=a;
}else{document.forms["formGoToProductDetail"].variantID.value="";}document.forms["formGoToProductDetail"].submit();}function scrollToRight(h,p,d,n,m){var g=document.getElementsByName(m);var k=g.length;var j=k;for(var f=0;f<g.length;f++){var e=g[f];var l=e.getAttribute("id");var b=parseInt(l.split("_")[1]);
if(!$(e).hasClass("invisible")){if(j>b){j=b;}}}var a=j+parseInt(d);var o=document.getElementById(n+j);var c=document.getElementById(n+a);$(o).addClass("invisible");$(c).removeClass("invisible");var h=document.getElementById(h);$(h).removeClass("invisible");if(a===g.length-1){var p=document.getElementById(p);
$(p).addClass("invisible");}}function scrollToLeft(h,p,d,o,n){var g=document.getElementsByName(n);var k=g.length;var m=0;for(var f=0;f<g.length;f++){var e=g[f];var l=e.getAttribute("id");var b=parseInt(l.split("_")[1]);if(!$(e).hasClass("invisible")){if(m<b){m=b;}}}var a=m-parseInt(d);var j=document.getElementById(o+m);
var c=document.getElementById(o+a);$(j).addClass("invisible");$(c).removeClass("invisible");var p=document.getElementById(p);$(p).removeClass("invisible");if(a===0){var h=document.getElementById(h);$(h).addClass("invisible");}}