function CategoryList(){}CategoryList.SearchInfo={searchtype:null,advcategory:null,advvendorid:null,advsellpricemin:null,advsellpricemax:null,advonstock:null};CategoryList.SubDisplay=function(a){$("subUl"+a).style.display="";};JsSupport.importPageBean("ProductPPBean");CategoryList.SearchProduct=function(c,d,b){var a=window.location.toString();if(a.indexOf("index.jsp")!=-1){window.location="../index/framePage.jsp?location=../../../../productSearchServelet?category="+c;}else{window.parent.location="../index/framePage.jsp?location=../../../../productSearchServelet?category="+c;}};CategoryList.SetVendor=function(a,b){CategoryList.SearchInfo.searchtype="adv";CategoryList.SearchInfo.advvendorid=a;if(b!=null&&b!="null"){CategoryList.SearchInfo.advcategory=b;}ProductPPBean.setSearchCondetion(CategoryList.SearchInfo,null,"1",function(){var c=window.location.toString();if(c.indexOf("index.jsp")!=-1){window.location="product/showProduct.jsp?tt="+new Date().getTime();}else{window.location="../product/showProduct.jsp?tt="+new Date().getTime();}});};CategoryList.setStock=function(b){CategoryList.SearchInfo.searchtype="adv";if(b!=null&&b!="null"){CategoryList.SearchInfo.advcategory=b;}var a=document.getElementById("onstock");if(a.checked){CategoryList.SearchInfo.advonstock="1";}else{CategoryList.SearchInfo.advonstock="0";}ProductPPBean.setSearchCondetion(CategoryList.SearchInfo,null,"1",function(){var c=window.location.toString();if(c.indexOf("index.jsp")!=-1){window.location="product/showProduct.jsp?tt="+new Date().getTime();}else{window.location="../product/showProduct.jsp?tt="+new Date().getTime();}});};CategoryList.SetPrice=function(a,b,d,c){CategoryList.SearchInfo.searchtype="adv";CategoryList.SearchInfo.advsellpricemin=a;if(b!=null&&b!="null"){CategoryList.SearchInfo.advsellpricemax=b;}if(d!=null&&d!="null"){CategoryList.SearchInfo.advcategory=d;}ProductPPBean.setSearchCondetion(CategoryList.SearchInfo,null,c,function(){var e=window.location.toString();if(e.indexOf("index.jsp")!=-1){window.location="product/showProduct.jsp?tt="+new Date().getTime();}else{window.location="../product/showProduct.jsp?tt="+new Date().getTime();}});};CategoryList.MoreCategory=function(b){var a=window.location.toString();if(a.indexOf("index.jsp")!=-1){window.location="product/browerSubCategories.jsp?tt="+new Date().getTime();}else{window.location="../product/browerSubCategories.jsp?tt="+new Date().getTime();}};CategoryList.moreVendor=function(){var a=window.location.toString();if(a.indexOf("index.jsp")!=-1){window.location="product/browerSubCategories.jsp";}else{window.location="../product/browseVendors.jsp";}};CategoryList.FrameSearchProduct=function(a,b){CategoryList.SearchInfo.searchtype="adv";CategoryList.SearchInfo.advcategory=a;ProductPPBean.setSearchCondetion(CategoryList.SearchInfo,b,function(){window.location=window.location="framePage.jsp?location=../../../../productSearchServelet?category="+a;});};var childObjs;var num=1;var isExc;function initData(d){num=1;childObjs=[];var e=d.parentNode;var f=e.childNodes;var c=[];for(var b=0,a=f.length;b<a;b++){if(f[b].nodeName=="UL"){c=f[b].childNodes;break;}}for(var b=0,a=c.length;b<a;b++){if(c[b].nodeName=="LI"){childObjs.push(c[b]);}}for(var b=1,a=childObjs.length;b<a-1;b++){if(b<num+15&&b>=num){childObjs[b].style.display="";}else{childObjs[b].style.display="none";}}if(childObjs.length<=17){childObjs[0].style.display="none";childObjs[childObjs.length-1].style.display="none";}}function menuListMoveStop(){isExc=false;}function menuListMoveUp(e){isExc=true;childObjs=[];var c=e.parentNode;var d=c.childNodes;for(var b=0,a=d.length;b<a;b++){if(d[b].nodeName=="LI"){childObjs.push(d[b]);}}initStartNum();if(childObjs.length==2||num>childObjs.length-16){return;}itemListUp();return;}function menuListMoveDown(e){isExc=true;childObjs=[];var c=e.parentNode;var d=c.childNodes;for(var b=0,a=d.length;b<a;b++){if(d[b].nodeName=="LI"){childObjs.push(d[b]);}}initStartNum();if(childObjs.length==2||num==1){return;}itemListDown();return;}function itemListUp(){for(var b=1,a=childObjs.length;b<a-1;b++){if(b<num+15&&b>=num){childObjs[b].style.display="";}else{childObjs[b].style.display="none";}}num++;if(isExc){if(num<=childObjs.length-16){setTimeout(itemListUp,100);}else{num--;return;}}else{num--;return;}}function itemListDown(){for(var b=childObjs.length-1,a=b-1;a>=1;a--){if(a>=num&&a<num+15){childObjs[a].style.display="";}else{childObjs[a].style.display="none";}}num--;if(isExc){if(num>=1){setTimeout(itemListDown,100);}else{num++;return;}}else{num++;return;}}function initsubdate(d){var e=d.parentNode;var g=e.childNodes;var f;for(var c=0,b=g.length;c<b;c++){if(g[c].nodeName=="UL"){f=g[c].childNodes;break;}}var a=[];for(var c=0,b=f.length;c<b;c++){if(f[c].nodeName=="LI"){a.push(f[c]);}}for(var c=1,b=a.length;c<b-1;c++){if(c<16&&c>=1){a[c].style.display="";}else{a[c].style.display="none";}}if(a.length<=17){a[0].style.display="none";a[a.length-1].style.display="none";}}function initStartNum(){if(childObjs.length>2){for(var b=1,a=childObjs.length;b<a-1;b++){if(childObjs[b].style.display==""){num=b;break;}}}}
