iSpy={applyVariation:function(e){try{var b=document.createElement("div");b.id="GWOwrap";document.getElementById("mainCont").insertBefore(b,document.getElementById("mainContentCont"));var c=document.getElementById("variationsMarkup");var d=c.innerHTML;var a=c.childNodes;for(j=0;j<a.length;j++){c.removeChild(a[j])}document.getElementById("GWOwrap").innerHTML=d;d=undefined;switch(e){case 1:document.getElementById("mainContentCont").style.display="none";document.getElementById("mainCont").style.height="auto";document.getElementById("mainContentContVariations").style.display="block";document.getElementById("variation1").style.display="block";break;case 2:document.getElementById("mainContentCont").style.display="none";document.getElementById("mainCont").style.height="auto";document.getElementById("mainContentContVariations").style.display="block";document.getElementById("variation23").style.display="block";document.getElementById("variation2").style.display="block";break;case 3:document.getElementById("mainContentCont").style.display="none";document.getElementById("mainCont").style.height="auto";document.getElementById("mainContentContVariations").style.display="block";document.getElementById("variation23").style.display="block";document.getElementById("variation3").style.display="block";break;default:}}catch(err){}document.getElementById("mainCont").style.visibility="visible"},switchBestsellers:function(b){var c=b.srcElement||b.target;var a=targetShowBlock=targetShowBlock=undefined;if(c.id=="mBsTab"){a=document.getElementById("wBsTab");targetHideBlock=document.getElementById("wBestsellers");targetShowBlock=document.getElementById("mBestsellers")}else{a=document.getElementById("mBsTab");targetHideBlock=document.getElementById("mBestsellers");targetShowBlock=document.getElementById("wBestsellers")}c.className="active";a.className="inactive";targetHideBlock.className="inactive";targetShowBlock.className="active"}};
