/*publish date:2011-12-08 14:55:00*/
if(typeof LIST=="undefined"||!LIST){var LIST={}}LIST.checkAskSearch=function(){var a=ZB.$("hid_focus").value;var b=ZB.$("ask_title").value;if(a==0||b==""){window.location.href="http://wen.zol.com.cn/add_more.php";return false}else{return true}};LIST.showUserHeadpic=function(c,a){for(var b=0;b<8;b++){if(b==a){ZB.$("activeusertr"+c+b).style.display=""}else{ZB.$("activeusertr"+c+b).style.display="none"}}};LIST.showHeadpic=function(a){for(var b=0;b<10;b++){if(b==a){ZB.$("activeusertr"+b).style.display=""}else{ZB.$("activeusertr"+b).style.display="none"}}};LIST.showLeftMenu=function(){if(ZB.$("left_list").style.display=="none"){ZB.writeCookieDomain("left_manu_flag",1);ZB.$("center_btn").style.left="131px";ZB.$("right_detail").style.margin="0 0 0 142px";ZB.$("left_list").style.display="";ZB.$("hide_left_img").src="http://icon.zol-img.com.cn/group/09/dcbbs/images/arrow_left.jpg";ZB.$("hide_left_img").alt="关闭左侧"}else{ZB.writeCookieDomain("left_manu_flag",0);ZB.$("center_btn").style.left="0";ZB.$("right_detail").style.margin="0 0 0 6px";ZB.$("left_list").style.display="none";ZB.$("hide_left_img").src="http://icon.zol-img.com.cn/group/09/dcbbs/images/arrow_right.jpg";ZB.$("hide_left_img").alt="展开"}};LIST.showLeftSubcate=function(b,a){if(ZB.$(b+"_subcate").style.display=="none"){ZB.$(b+"_subcate").style.display="";ZB.$(b).className=a}else{ZB.$(b+"_subcate").style.display="none";ZB.$(b).className=""}};LIST.windowResize=function(){if(ZB.$("left_list").style.display=="none"){var b=998}else{var b=1135}if(document.body.offsetWidth<=b){var a=b}else{var a=document.body.offsetWidth-20}ZB.$("div_body").style.width=a+"px"};LIST.slideTol=function(){var b=maindiv_l.scrollTop;var c=frameheight_l*(curFrame_l-1);var a=b>c?-speed_l:speed_l;clearInterval(scrollItv_l);if(b!=c){scrollItv_l=setInterval(function(){maindiv_l.scrollTop+=a;if(Math.abs(maindiv_l.scrollTop-c)<speed_l){clearInterval(scrollItv_l);maindiv_l.scrollTop=c}},50)}};LIST.autoSlidel=function(){if(curFrame_l<num_l&&flag){curFrame_l++}else{curFrame_l--;flag=false;if(curFrame_l==1){flag=true}}LIST.slideTol()};LIST.passIn1=function(a){clearInterval(autoItv_l);curFrame_l=a;LIST.slideTol()};LIST.passOut1=function(a){curFrame_l=a;autoItv_l=setInterval("LIST.autoSlidel()",waitTime_l)};LIST.cancelChecked=function(a){var c=document.getElementsByName(a);for(var b=0;b<c.length;b++){if(c[b].checked==true){c[b].checked=false}}};LIST.showHiddenSubcate=function(a){if(ZB.$("cate"+a).style.display=="none"){ZB.$("cate"+a).style.display=""}else{ZB.$("cate"+a).style.display="none"}};LIST.checkAll=function(a){var c=document.getElementsByName("booklist");if(ZB.$(a).checked){ZB.$("checkall1").checked=true;ZB.$("checkall2").checked=true;for(var b=0;b<c.length;b++){c[b].checked=true}}else{ZB.$("checkall1").checked=false;ZB.$("checkall2").checked=false;for(var b=0;b<c.length;b++){c[b].checked=false}}};LIST.collectBoard=function(d,c,e,a,b){if(!d){alert("参数错误 ")}ZB.loadFile(ZB.js_base_url+"/inf/ajax.js?v="+ZB.version,function(){new ZB.ajax({url:ZB.base_url+"/tips/ajax_collect_bbs.php",method:"post",data:{boardid:d,manuid:c,lineid:e,productid:a,subsubid:b},success:function(g){var f=g.split("|");ZB.loadFile(ZB.js_base_url+"/inf/flutter.js?v="+ZB.version,function(){new ZB.flutter({width:200,content:f[1]})})}})})};LIST.showList=function(b,a){ZB.loadFile(ZB.js_base_url+"/inf/list.js?v="+ZB.version,function(){new ZB.list({id:b,listid:a})})};LIST.validateForm=function(b,e,d){var c=parseInt("0");var a=parseInt("1");if(b.booktype&&b.booktype.options[b.booktype.selectedIndex].value==0&&a){alert("请选择主题对应的类别。");b.booktype.focus();return false}else{if(b.title.value==""||b.content.value==""){alert("请完成标题或内容栏。");b.title.focus();return false}else{if(b.title.value.length>80){alert("您的标题超过 80 个字符的限制。");b.title.focus();return false}}}if(!c&&((e!=0&&b.content.value.length<e))){alert("内容长度必须大于"+e+"个字!");b.content.focus();return false}if(!fetchCheckbox("parseurloff")){}return true};LIST.showMoreManu=function(){if(ZB.$("moremanu").style.display=="none"){ZB.$("moremanu").style.display="";ZB.$("moreul").style.overflow="visible"}else{ZB.$("moremanu").style.display="none";ZB.$("moreul").style.overflow=""}};LIST.swidthLabel=function(a){if(ZB.$(a).style.display=="none"){ZB.$(a).style.display=""}else{ZB.$(a).style.display="none"}};LIST.swichOverLock=function(a,c){for(var b=1;b<=4;b++){ZB.$(a+"_body_"+b).style.display="none"}ZB.$(a+"_body_"+c).style.display=""};
