usingNamespace("Biz.Product")["MappingPrice"]={gotoProductDetail:function(url){if (window.opener && !window.opener.closed){window.opener.location.href = url;}else{window.open(url,"","","");};window.close();}};usingNamespace("Biz.Product")["DetailPage"]={selectedTab : {l:"0",r:"0"},changeTab : function(id, whichSide) {whichSide = whichSide.toLowerCase();var lId = Biz.Product.DetailPage.selectedTab[whichSide];if (id != lId) {var ot = $("pc" + whichSide + "aTabMenu" + id);var oc = $("pc" + whichSide + "aTabContent" + id);Biz.Product.DetailPage.changeTabBase(ot, oc, true);var ot = $("pc" + whichSide + "aTabMenu" + lId);var oc = $("pc" + whichSide + "aTabContent" + lId);Biz.Product.DetailPage.changeTabBase(ot, oc);Biz.Product.DetailPage.selectedTab[whichSide] = id;};},changeTabBase : function(ot, oc, isShow) {if (!(ot && oc)){return;};var len = ot.src.length;if (isShow) {ot.src = ot.src.substring(0,len-7) + "on.gif";Web.UI.Control.setAttribute(oc,{"style.display":"block"});} else {ot.src = ot.src.substring(0,len-6) + "off.gif";Web.UI.Control.setAttribute(oc,{"style.display":"none"});};},displayMore:function(showO,hideO){if($(hideO)){Web.UI.Control.setAttribute($(hideO),{"style.display":"none"});};if($(showO)){Web.UI.Control.setAttribute($(showO),{"style.display":"block"});};}};usingNamespace("Biz.Product")["Cart"]={itemList:"",preItemList:"",optionItemList:"",EWTList:"",add:function(vItem,vDEPA,vOrderType,closeWindow){if(closeWindow==1){var cartUrl=Web.UI.ResourceManager.Url.shopper("Shopping/AddToCart.asp?Submit=ADD&ItemList=" + vItem);if (window.opener && !window.opener.closed){window.opener.location.href = cartUrl;}else{Web.UI.Control.openWindow(cartUrl);};window.close();}else{if(vOrderType==1){if(!String.isNullOrEmpty(Biz.Product.Cart.itemList)){Biz.Product.Cart.itemList = vItem + "," + Biz.Product.Cart.itemList;}else{Biz.Product.Cart.itemList = vItem;};var EWTPlan = $("pclaDropdownListExtendedWarranty");if(EWTPlan){if(EWTPlan.value!="0" && vItem != ""){Biz.Product.Cart.EWTList = EWTPlan.value + "_" + vItem;};};}else{if (!String.isNullOrEmpty(Biz.Product.Cart.preItemList)){Biz.Product.Cart.preItemList = vItem + "," + Biz.Product.Cart.preItemList;}else{Biz.Product.Cart.preItemList = vItem;};};if (!String.isNullOrEmpty(Biz.Product.Cart.optionItemList)){if(!String.isNullOrEmpty(Biz.Product.Cart.itemList)){ItemList += "," + Biz.Product.Cart.optionItemList;}else{ItemList += Biz.Product.Cart.optionItemList;};};var elems = Web.UI.Form.getElements("bcaFromProductDetail");for (var i=0; i<elems.length; i++) {if (elems[i].type == "radio" || elems[i].type == "checkbox") {elems[i].checked = false;};};$("ItemList").value=Biz.Product.Cart.itemList;$("PreItemList").value=Biz.Product.Cart.preItemList;$("OptionItemList").value=Biz.Product.Cart.optionItemList;$("EWTList").value=Biz.Product.Cart.EWTList;$("bcaFromProductDetail").action += "?submit=ADD";Web.UI.Form.submit("bcaFromProductDetail");}},checkedValue:null,addMoreItem:function(vObject,vButton,vFunction){if (vButton == "CheckBox"){var v1,v2;v1 = vObject.value;v2 = v.indexOf(v1);if(vObject.checked){if(v2 == -1){if(!String.isNullOrEmpty(Biz.Product.Cart.itemList)){Biz.Product.Cart.itemList += ",";};Biz.Product.Cart.itemList += vObject.value;};}else{if (v2==0){if (v.indexOf(",")>0)Biz.Product.Cart.itemList = Biz.Product.Cart.itemList.replace(v1+",","");else{Biz.Product.Cart.itemList = Biz.Product.Cart.itemList.replace(v1,"");};}else{Biz.Product.Cart.itemList = Biz.Product.Cart.itemList.replace("," + v1,"");};}}else{if(vObject.value == Biz.Product.Cart.checkedValue){vObject.checked = false;Biz.Product.Cart.checkedValue = null;}else{Biz.Product.Cart.checkedValue = vObject.value;};if (vObject.value=="0"){Biz.Product.Cart.optionItemList = "";}else{Biz.Product.Cart.optionItemList = vObject.value;};} ;}};usingNamespace("Biz.Product")["ReviewPage"]={changeTabBase:function(style1,style2,style3){var linkElement = new Array("SummaryViewAll","SummaryView2W","SummaryView6M");var allElement  = new Array("EGG5AllRate","EGG5AllVote","EGG4AllRate","EGG4AllVote","EGG3AllRate","EGG3AllVote","EGG2AllRate","EGG2AllVote","EGG1AllRate","EGG1AllVote");var l2WElement  = new Array("EGG52WRate","EGG52WVote","EGG42WRate","EGG42WVote","EGG32WRate","EGG32WVote","EGG22WRate","EGG22WVote","EGG12WRate","EGG12WVote");var l6MElement  = new Array("EGG56MRate","EGG56MVote","EGG46MRate","EGG46MVote","EGG36MRate","EGG36MVote","EGG26MRate","EGG26MVote","EGG16MRate","EGG16MVote");Web.UI.Control.setAttribute($(linkElement[0]),{"style.display":style1});Web.UI.Control.setAttribute($(linkElement[1]),{"style.display":style2});Web.UI.Control.setAttribute($(linkElement[2]),{"style.display":style3});for(i = 0; i < allElement.length; i++){Web.UI.Control.setAttribute($(allElement[i]),{"style.display":style1});Web.UI.Control.setAttribute($(l2WElement[i]),{"style.display":style2});Web.UI.Control.setAttribute($(l6MElement[i]),{"style.display":style3});};},changeTab:function(type){if(type == "ALL"){Biz.Product.ReviewPage.changeTabBase('','none','none');}else if(type == "W2"){Biz.Product.ReviewPage.changeTabBase('none','','none');}else if(type == "M6"){Biz.Product.ReviewPage.changeTabBase('none','none','');};document.TopPaginationForm.SummaryType.value = type;if(eval("document.BottomPaginationForm") != null){document.BottomPaginationForm.SummaryType.value = type;};}};usingNamespace("Biz.Product")["Combo"]={submit:function(){Web.UI.Form.submit("frmCombo");},sort:function(f,p){Biz.Product.Combo.pagination(f,p);},changePageSize:function(f,p){Biz.Product.Combo.pagination(f,p);},pagination:function(f,p){if($(f)){if(!Number.isNumeric(p)){p=1;};Web.UI.Form.setValue(f,"Page",p);Web.UI.Form.submit(f);};}};var AddToCart=Biz.Product.Cart.add;