var a;function showBlock(b,c){for(var d=document.getElementsByTagName("li"),e=0;e<d.length;e++)if(d[e].id==b)d[e].style.display="block";else if(d[e].id==c)d[e].style.display="none"}var currentBlock,currentBlockId;function goToCategory(b){var c=document.getElementById("form_category");c.categoryId.value=b;c.submit()}var menuTimerShow,idReceived;function askShowMenu(b){idReceived=b;abortMenuDisappearing();menuTimerShow=setTimeout("showMenu()",250)} function showMenu(){var b="div_category"+idReceived,c=dojo.byId(b);document.getElementById(b).style.display="block";if(c!=currentBlock){var d=document.getElementById(currentBlockId);if(d)d.style.display="none";currentBlockId=b;currentBlock=c}b=dojo.byId("subCategoryForm");b.categoryId.value=idReceived;b={url:"DisplaySubCategories.do",useCache:false,preventCache:true,cacheContent:false,handler:fillMenu,formNode:b};dojo.io.bind(b)} function fillMenu(b,c,d){if(b!="error"){currentBlock.innerHTML=c;document.getElementById(currentBlockId).style.display="block"}}function hideMenu(){try{document.getElementById(currentBlockId).style.display="none"}catch(b){}}var menuTimer;function requestMenuDisappearing(){menuTimer=setTimeout("hideMenu()",500);menuTimerShow&&clearTimeout(menuTimerShow)}function abortMenuDisappearing(){menuTimer&&clearTimeout(menuTimer)} var currentTooltipId="",tooltipTimer;function abortTooltipDisappearing(){tooltipTimer&&clearTimeout(tooltipTimer)}function showTooltip(b){abortTooltipDisappearing();var c=document.getElementById(b);c.style.display="block";if(b!=currentTooltipId){if(c=document.getElementById(currentTooltipId))c.style.display="none";currentTooltipId=b}}function hideTooltip(){document.getElementById(currentTooltipId).style.display="none"} function requestTooltipDisappearing(){tooltipTimer=setTimeout("hideTooltip()",1000)}function updateCart(){var b={url:"_cart.jsp",useCache:false,preventCache:true,cacheContent:false,handler:fillCart};dojo.io.bind(b)}function fillCart(b,c,d){if(b=="error")alert(c);else dojo.byId("div_cart").innerHTML=c}function showCartSummary(){abortCartSummaryDisappearing();document.getElementById("div_cartSummaryTooltip").style.display="block"} function hideCartSummary(){document.getElementById("div_cartSummaryTooltip").style.display="none"}var cartSummaryTimer;function requestCartSummaryDisappearing(){cartSummaryTimer=setTimeout("hideCartSummary()",1000)}function abortCartSummaryDisappearing(){cartSummaryTimer&&clearTimeout(cartSummaryTimer)}function goToProduct(b){var c=document.getElementById("form_headerProduct");c.productId.value=b;c.submit()}var cartDialog,initCartDialogOk=false; function initCartDialog(){cartDialog=dojo.widget.byId("div_addToCart");document.getElementById("div_addToCart").style.display="none";initCartDialogOk=true}function addToCart(b){if(initCartDialogOk){document.getElementById("form_headerProduct").productId.value=b;b={url:"AddCartProduct.do",useCache:false,preventCache:true,cacheContent:false,handler:fillPopup,formNode:dojo.byId("form_headerProduct")};dojo.io.bind(b)}} function addPackToCart(b){if(initCartDialogOk){document.getElementById("form_headerProduct").productId.value=b;b={url:"AddCartPack.do",useCache:false,preventCache:true,cacheContent:false,handler:fillPopup,formNode:dojo.byId("form_headerProduct")};dojo.io.bind(b)}} function addToCartFromWishList(b,c){if(initCartDialogOk){document.getElementById("form_headerProduct").productId.value=b;document.getElementById("form_headerProduct").wishlistId.value=c;b={url:"AddCartProductWishlist.do",useCache:false,preventCache:true,cacheContent:false,handler:fillPopup,formNode:dojo.byId("form_headerProduct")};dojo.io.bind(b)}} function fillPopup(b,c,d){if(b=="error")alert("fillContent : "+c);else{document.getElementById("div_addToCart").style.display="block";dojo.byId("div_addToCart").innerHTML=c;b=document.getElementById("a_dialogCartContinue");cartDialog.setCloseControl(b);updateCart();cartDialog.show()}}dojo.addOnLoad(initCartDialog);String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function BackToTheHtml(b){this.node=b==null?document:b}BackToTheHtml.prototype.node=null; BackToTheHtml.prototype.execute=function(){this.activateObject()};BackToTheHtml.prototype.activateObject=function(){for(var b=this.node.getElementsByTagName("object"),c,d=0;d<b.length;d++)if(b[d].getAttributeNode("BackToTheHtml")==null&&(c=this.getActivationObject(b[d]))!=null)c.execute()}; BackToTheHtml.prototype.getActivationObject=function(b){var c=b.classid.toUpperCase().substr(6),d=b.type.toLowerCase();switch(true){case c=="D27CDB6E-AE6D-11CF-96B8-444553540000"||d=="application/x-shockwave-flash":return new ActivateObjectFlash(b);default:return null}};BackToTheHtml.uniqueID=function(b){b=b==null?"uniqueId":b;for(var c=0;document.getElementById(b+c++););return b+(c-1)}; BackToTheHtml.isParentOf=function(b,c){for(var d=false,e=0;e<b.childNodes.length;e++)if(b.childNodes[e]==c)return true;else d=arguments.callee(b.childNodes[e],c);return d};function ActivateObject(b){this.domObject=b}a=ActivateObject.prototype;a.domObject=null;a.classid=null;a.aHtmlAttribute=["accessKey","align","alt","archive","border","code","codeBase","codeType","declare","dir","height","hideFocus","hspace","lang","language","name","standby","tabIndex","title","useMap","vspace","width"]; a.aObjectProperty=null;a.execute=function(){this.xndObjectId=BackToTheHtml.uniqueID();this.setTextHtml();this.writeObject();this.xndObject=document.getElementById(this.xndObjectId);this.setSpecialProperties();this.removeOriginalObject()}; a.setTextHtml=function(){var b="";b+="<object BackToTheHtml \n";b+=' type="'+this.mimeType+'" \n';for(var c=0;c<this.aHtmlAttribute.length;c++){var d=this.aHtmlAttribute[c];if(typeof this.domObject[d]!="undefined"&&this.domObject[d].toString()!="")b+="\t"+d+'="'+this.domObject[d].toString()+'" \n'}b+='id="'+this.xndObjectId+'" \n';b+=">";for(c=0;c<this.aObjectProperty.length;c++){d=this.aObjectProperty[c];if(typeof this.domObject[d]!="undefined"&&this.domObject[d].toString()!="")b+='\t<param name="'+ d+'" value="'+this.domObject[d].toString()+'"></param>\n'}b+="</object>";this.textHtml=b};a.writeObject=function(){this.domObject.insertAdjacentHTML("afterEnd",this.textHtml)}; a.setSpecialProperties=function(){if(typeof this.domObject.className!="undefined"&&this.domObject.className.toString()!="")this.xndObject.className=this.domObject.className;if(typeof this.domObject.style.cssText!="undefined"&&this.domObject.style.cssText.toString()!="")this.xndObject.style.cssText=this.domObject.style.cssText;if(typeof this.domObject.SWRemote!="undefined"&&this.domObject.SWRemote.toString()!="")this.xndObject.SWRemote=this.domObject.SWRemote;if(typeof this.domObject.FlashVars!="undefined"&& this.domObject.FlashVars.toString()!="")this.xndObject.FlashVars=this.domObject.FlashVars;if(typeof this.domObject.codebase=="undefined"||this.domObject.codebase.toString()=="")this.xndObject.codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0";if(typeof this.domObject.id!="undefined"&&this.domObject.id.toString()!="")this.xndObject.id=this.domObject.id};a.removeOriginalObject=function(){this.domObject.parentNode.removeChild(this.domObject)}; function ActivateObjectFlash(b){ActivateObject.call(this,b)}ActivateObjectFlash.prototype=new ActivateObject;ActivateObjectFlash.prototype.aObjectProperty=["FrameNum","Playing","Quality","Quality2","Scalemode","Scale","AlignMode","SAlign","BackgroundColor","BGColor","Loop","Movie","WMode","Base","DeviceFont","EmbedMovie","SWRemote","FlashVars","AllowScriptAccess"];ActivateObjectFlash.prototype.classid="D27CDB6E-AE6D-11CF-96B8-444553540000";ActivateObjectFlash.prototype.mimeType="application/x-shockwave-flash"; if(typeof ActiveXObject!="undefined"&&typeof Function.call!="undefined"){var styleId=BackToTheHtml.uniqueID();document.write('<style id="'+styleId+'" ></style>');for(var domStyle=document.getElementById(styleId),isHead=false,aHead=document.getElementsByTagName("head"),i=0;i<aHead.length;i++)if(BackToTheHtml.isParentOf(aHead[i],domStyle))isHead=true;if(isHead){document.write('<style type="text/css">OBJECT{visibility:hidden;}</style>');document.onreadystatechange=function(){if(document.readyState== "complete"){(new BackToTheHtml).execute();document.styleSheets[document.styleSheets.length-1].addRule("OBJECT","visibility:visible;")}}}else(new BackToTheHtml).execute();domStyle.parentNode.removeChild(domStyle)}var dojoDialog,initDialogOk=false;function initDialog(){dojoDialog=dojo.widget.byId("div_dojoDialog");document.getElementById("div_dojoDialog").style.display="none";initDialogOk=true}dojo.addOnLoad(initDialog); function documentRequested(b){if(initDialogOk){b={url:"DocumentDialog.do?documentName="+b,useCache:false,preventCache:true,cacheContent:false,handler:fillDialog};dojo.io.bind(b);dojoDialog.show()}}function warningRequested(b){if(initDialogOk){b={url:"WarningDialog.do?warnId="+b,useCache:false,preventCache:true,cacheContent:false,handler:fillDialog};dojo.io.bind(b);dojoDialog.show()}} function fillDialog(b,c,d){if(b=="error")alert("fillDialog : "+c);else{document.getElementById("div_dojoDialog").style.display="block";dojo.byId("div_dojoDialog").innerHTML=c;b=document.getElementById("a_dojoDialogContinue");dojoDialog.setCloseControl(b)}};