/*Build at: 2011-08-08 16:50:21*/

/* 
 * Copyright (c) 2009
 * Beijing Zhongsou Online Software Limited
 * 
 * All rights reserved.
 *  
 */
 
var omarq=[];var osrec=[];var g_jsload=0;function ModAddToPage(b,d,a,c){if(g_iswork==1){return}addToPage1(b,d,a,c)}function uniRefresh(a){if(g_iswork==1){return}blockRefresh(a)}function uniContent(b,a){if(g_iswork==1){return}createContent(b,a)}function unidelBlock(a){if(g_iswork==1){return}delBlock(a)}function modRefresh(a){if(g_jsload==1){blockRefresh(a,2)}else{setTimeout(function(b){return function(){modRefresh(b)}}(a),5000)}}function Marquee(){if(g_jsload==1){new Marquee1(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8])}else{var a=new Object;a.p0=arguments[0];a.p1=arguments[1];a.p2=arguments[2];a.p3=arguments[3];a.p4=arguments[4];a.p5=arguments[5];a.p6=arguments[6];a.p7=arguments[7];a.p8=arguments[8];omarq.push(a);a=null}}function ScrollRect(){if(g_jsload==1){new ScrollRect1(arguments[0])}else{osrec.push(arguments[0])}}function onPSearch(c,b){if(c==""||c=="个人门户搜索…"){alert("请您输入关键词!");b.focus();return}var a="http://mh.zhongsou.net/sr/inet.php?w="+encodeURIComponent(c)+"&y=15&k=net&netid=&tp=2&tz=1";window.open(a)}function onSearch(c,b){if(c==""||c=="个人门户搜索…"){alert("请您输入关键词!");b.focus();return}var a="http://mh.zhongsou.net/sr/inet.php?w="+encodeURIComponent(c)+"&y=15&k=net&netid=&tp=2";window.open(a)}function getElementsByTagAndClassName(a,b){return $(a+"."+b).get()}function getUserNickName(){if(getUserIgNo()==""){return"游客"}var a=getUserIgNo("nn_web");if(a==""){a=getUserIgNo()}if(a==""){a="游客"}return a}function getUserIgNo(c){var d=document.cookie;var b=c||"un_web";var e=d.indexOf(b+"=");if(e<0){return""}else{e+=b.length+1}var a=d.indexOf(";",e);if(a<0){a=d.length}return decodeURIComponent(d.substring(e,a))}function rewriteCookie(a){if(a&&a[0]){var b="http://www.zhongsou.net/b/checkcookie.htm?rand="+Math.random()+"&returl="+encodeURIComponent(g_host+"/b/checkcookiecallback.htm")+"&domain="+encodeURI(g_hname);a[0].src=b;a[0].id="checkmastercookies";a=null}}function setMemberLoginFieldSatus(n,z){var H=[];var o=getUserIgNo();var G=function(){var O=document.getElementById("bloginmsg");if(O){O.innerHTML="您好：欢迎您访问中国"+g_keyword+"门户！"}var i=document.getElementById("bllogin");if(i){i.onclick=function(){this.href="http://uid."+g_hname+"/igportal/mlogin.aspx?page="+encodeURIComponent(g_location.href)+"&club="+encodeURIComponent(g_keyword)}}H.push(document.getElementById("login_middle_not"))};if(o==null||o==""||jQuery.cookie("manager")==1){if(typeof(n)!="number"){G()}else{var f=document.getElementById("b"+n);var b=f.getElementsByTagName("iframe");rewriteCookie(b);f=null}}else{if(o.toLowerCase()!=g_owner.toLowerCase()&&z==1){var B=document.getElementById("c"+n);if(B){B.innerHTML='<DIV class=block_loading><IMG hspace=8 src="http://i0.zhongso.com/img/block_loading.gif">正在加载数据，请稍候……</DIV>';B=null;return}}var c=document.getElementById("b2bloginfo");if(c){var d=c.getAttribute("igid");if(d.toLowerCase()==o.toLowerCase()){H.push(c);var h=c.getAttribute("owner");var r=c.getAttribute("rolename");h=encodeURIComponent(h);if(d.toLowerCase()==g_owner.toLowerCase()){var J="/space/index.php?igId="+h;var L="http://uid."+g_hname+"/b2b/ChargeMember.aspx?club="+h;var p="/space/admin.php?op=msglist&t=0&igId="+h+"&m=1";var t="http://uid."+g_hname+"/b2b/MemberList.aspx?club="+h}else{var J="http://www.zhongsou.net/space/index.php?igId="+h;var L="http://uid.zhongsou.net/b2b/ChargeMember.aspx?club="+h;var p="http://www.zhongsou.net/space/admin.php?op=msglist&t=0&igId="+h+"&m=1";var t="http://uid.zhongsou.net/b2b/MemberList.aspx?club="+h}var u="http://uid."+g_hname+"/usercenter/pro_info.aspx?igno="+d;var j="http://uid.zhongsou.net/usercenter/pro_info.aspx?igno="+d;if(h){u+="&club="+encodeURI(h);j+="&club="+encodeURI(h)}var a="http://uid."+g_hname+"/b2b/ApplyJoin.aspx?club="+encodeURIComponent(g_keyword);var D="http://www.zhongsou.net/space/admin.php?op=unmemcenter";var e="http://www.zhongsou.net/space/admin.php?op=unmsglist";var k="http://www.zhongsou.net/np/b2b/league/subonline.jsp?t=2";var l="http://"+g_location.hostname+"/space/admin.php?op=MemIndex&kname="+encodeURIComponent(g_keyword)+"&type="+encodeURIComponent(r);var I="/space/admin.php?op=MemMsgList&f=0&type=0&s=1&w=&kname="+encodeURIComponent(g_keyword);var F="/np/b2b/member/subonline.jsp?w="+encodeURIComponent(g_keyword);var m=document.getElementById("nrgl");if(m){m.setAttribute("target","_blank");m.setAttribute("href",J)}var C=document.getElementById("glzx");if(C){C.setAttribute("target","_blank");C.setAttribute("href",u)}var s=document.getElementById("other_glzx");if(s){s.setAttribute("target","_blank");s.setAttribute("href",j)}var q=document.getElementById("sqjr");if(q){q.setAttribute("target","_blank");q.setAttribute("href",a)}var E=document.getElementById("b2bmember");if(E){E.setAttribute("target","_blank");E.setAttribute("href",L)}var v=document.getElementById("lmhyzx");if(v){v.setAttribute("target","_blank");v.setAttribute("href",D)}var w=document.getElementById("b2bmessage");if(w){w.setAttribute("target","_blank");w.setAttribute("href",p)}var A=document.getElementById("b2bunmessage");if(A){A.setAttribute("target","_blank");A.setAttribute("href",e)}var N=document.getElementById("b2bhymessage");if(N){N.setAttribute("target","_blank");N.setAttribute("href",I)}var M=document.getElementById("hygl");if(M){M.setAttribute("target","_blank");M.setAttribute("href",t)}var x=document.getElementById("b2bgq");if(x){x.setAttribute("target","_blank");x.setAttribute("href",k)}var g=document.getElementById("b2bhygq");if(g){g.setAttribute("target","_blank");g.setAttribute("href",F)}var y=document.getElementById("hyzx");if(y){y.setAttribute("target","_blank");y.setAttribute("href",l)}}else{G()}}else{G()}}if(H.length==0){return}for(var K=0;K<H.length;K++){if(H[K]&&H[K].style){H[K].style.display=""}}}function setCommentUserSatus(b){var g=document.getElementById(b+"_comment_user_status");if(g==null){return}var d=getUserNickName();if(d==null){d=""}if(d==""){var f="";var a="";if(g_host.indexOf("shangdu")>0){f="/default.html";a=f}else{if(g_keyword!=""){f="http://uid."+g_hname+"/igportal/login.aspx?page="+g_host+"/"+g_keyword+"/channel/"+g_curPageNum;a="http://uid."+g_hname+"/igportal/reg.aspx?page="+g_host+"/"+g_keyword+"/channel/"+g_curPageNum}else{f="http://uid."+g_hname+"/igportal/login.aspx?page="+g_host+"/"+g_rowner+"/channel/"+g_curPageNum;a="http://uid."+g_hname+"/igportal/reg.aspx?page="+g_host+"/"+g_rowner+"/channel/"+g_curPageNum}}var c="";c+='<a href="'+f+'">登录</a><span class="margin1">/</span><a href="'+a+'">注册</a>';document.getElementById(b+"_comment_user_status").innerHTML=c}else{document.getElementById(b+"_comment_user_status").innerHTML=d}}function openPublishProvideAndBuyPage(c,b){var d=encodeURIComponent(getUserIgNo());var a=g_host+"/np/php?igId="+d+"&op=all&random="+new Date().getTime();var e={loadstatus:true,RDoc:null,rurl:a};mycom.LoadRSS(e,function(f){return function(){if(f.loadstatus==false||f.RDoc==null){f.RDoc=null;f=null}else{var g=f.RDoc.getElementsByTagName("enter");if(g!=null&&g.length>0){g=g[0];var h=g.firstChild.nodeValue;if(h=="0"){h="e_"+d}a=b;a+="&type=1";a+="&igId="+encodeURIComponent(h);a+="&c="+encodeURIComponent(g_keyword);c.setAttribute("target","_blank");c.href=a;return true}}f.RDoc=null;f=null}}(e).zsbind(this),0);e=null;return true}function publishProvideInfo(d,a,e){if(typeof d!="undefined"&&typeof a!="undefined"){var c=encodeURIComponent(g_keyword);var b="/np/b2b/";if(a&&g_ketype==1){b=b+"cate_select.jsp?w="+c+"&action=sale"}else{if(e){b=b+"member/goodsadd.jsp?w="+c}else{b="http://www.zhongsou.net"+b+"league/saleAdd.jsp"}}d.setAttribute("target","_blank");d.href=b}return true}function publishBuyInfo(d,a,e){if(typeof d!="undefined"&&typeof a!="undefined"){var c=encodeURIComponent(g_keyword);var b="/np/b2b/";if(a&&g_ketype==1){b=b+"cate_select.jsp?w="+c+"&action=buy"}else{if(e){b=b+"member/buyadd.jsp?w="+c}else{b="http://www.zhongsou.net"+b+"league/buyAdd.jsp"}}d.setAttribute("target","_blank");d.href=b}return true}function openManageCenter(a){a.setAttribute("target","_blank");a.href="http://uid."+g_hname+"/usercenter/pro_info.aspx?igno="+getUserIgNo()+"&club="+encodeURIComponent(g_keyword);return true}function openApplyVipPage(){window.open("http://uid."+g_hname+"/MemberRegister/VipMemberReg.aspx?club="+encodeURIComponent(g_keyword)+"&igid="+encodeURIComponent(getUserIgNo()));return}function openRegPage(){window.open("http://uid."+g_hname+"/CustomReg/PreCustomReg.aspx?club="+encodeURIComponent(g_keyword))}function logout(){Cookies.DelCookie("un_web","/",g_hname);alert("为了完全退出会员登录状态，请您在退出后再关闭通过此会员浏览过的所有窗口！");g_location.href="http://uid."+g_hname+"/zspassport/forwidget/widgetlogout.aspx?returl="+encodeURIComponent(g_location.href)}function getProduct81Pos(b){var a=[0,0];while(b&&b.tagName!="BODY"){a[0]+=b.offsetLeft;a[1]+=b.offsetTop;b=b.offsetParent}return a}function product81_display(d,c,b){var a=document.getElementById("prod_item_layout_"+d);if(a!=null&&a!="undefined"){a.style.display="";a.style.left=c+"px";a.style.top=b+"px";a.style.zIndex=10000}}function product81_display_none(a){var b=document.getElementById("prod_item_layout_"+a);if(b!=null&&b!="undefined"){b.style.display="none"}}function hiddenProduct81(b,g,h,f,k){var m=document.getElementById("prod_item_layout_"+h);var c=getProduct81Pos(g);var l=b.pageX||(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var j=b.pageY||(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var d=4;try{var a;if(f==2){a=((l-c[0])>=g.offsetWidth-d)||((j-c[1])>=g.offsetHeight-d)||l<=c[0]+d||j<=c[1]+d}else{if(k==0){a=((j-c[1])>=g.offsetHeight-d)||l<=c[0]+d||j<=c[1]+d}else{if(k==1){a=((l-c[0])>=g.offsetWidth-d)||l<=c[0]+d||j<=c[1]+d}}}if(a){product81_display_none(h)}}catch(i){alert(i)}}function displayProduct81Menu(b,g,j,i,c){var m=b.pageX||(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var l=b.pageY||(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var f=g.getAttribute("childs");if(f<=0){return}var a=getProduct81Pos(g);var h=4;var d=GetClassStyle(".blo","borderLeftWidth");if(d==null||d==""){d=0}else{d=parseInt(d)}try{if(m>a[0]-h&&m<(a[0]+g.offsetWidth+h)&&l>a[1]-h&&l<(a[1]+g.offsetHeight+h)){if(i==1){product81_display(j,a[0]+d,a[1]+g.offsetHeight)}else{if(i==2){product81_display(j,a[0],a[1])}}}}catch(k){alert(k)}}function productWindowView81(a,b){document.getElementById("product_window_view_"+a).innerHTML=document.getElementById("product_window_view_"+b).innerHTML;return false}function pro_lisall81(e,c,b){if(g_iswork==1){return}var d=e.src;if(d=="http://i0.zhongso.com/space/imgs/less.gif"){document.getElementById(c).style.display="none";e.src="http://i0.zhongso.com/space/imgs/add.gif"}else{if(d=="http://i0.zhongso.com/space/imgs/add.gif"){document.getElementById(c).style.display="";e.src="http://i0.zhongso.com/space/imgs/less.gif"}else{if(d=="http://i0.zhongso.com/space/imgs/less1.gif"){document.getElementById(c).style.display="none";e.src="http://i0.zhongso.com/space/imgs/less1_1.jpg"}else{if(d=="http://i0.zhongso.com/space/imgs/less1_1.jpg"){document.getElementById(c).style.display="";e.src="http://i0.zhongso.com/space/imgs/less1.gif"}}}}var a=document.getElementById("b"+b);ResizeContentHeight(a)}function pro_lisallmouseover(a){var b=document.getElementById(a).className;b=b.replace("list_hover","");document.getElementById(a).className=b+" list_hover"}function pro_lisallmouseout(a){var b=document.getElementById(a).className;b=b.replace("list_hover","");document.getElementById(a).className=b}function myDrawImage(h,i,g,f){var b=new Image();b.src=h.src;var e=0;var a=0;if(!g){if(b.width>0&&b.height>0){flag=true;if(b.width/b.height>=1){if(b.width>i){h.width=i;e=i;h.height=(b.height*i)/b.width;a=(b.height*i)/b.width}else{h.width=b.width;e=b.width;h.height=b.height;a=b.height}}else{if(b.height>i){h.height=i;a=i;h.width=(b.width*i)/b.height;e=(b.width*i)/b.height}else{h.width=b.width;e=b.width;h.height=b.height;a=b.height}}}}else{var c=b.width;var d=b.height;if(c/d>=i/g){if(c>i){d=parseInt(i*d/c);c=i}}else{if(d>g){c=parseInt(g*c/d);d=g}}h.width=c;h.height=d;e=c;a=d}if(f){g=g?g:i;if(a>0){h.style.marginTop=(g-a)/2+"px"}if(e>0){h.style.marginLeft=(i-e)/2+"px"}}var b=null}var g_unw_nav_obj=null;function unw_getMenuPos(b){var a=[0,0];while(b&&b.tagName!="BODY"){a[0]+=b.offsetLeft;a[1]+=b.offsetTop;b=b.offsetParent}return a}function unw_nav_display(h,f,d,a){var b=document.getElementById("nav_second_menu_"+h);if(b!=null&&b!="undefined"){if(a!="112007"){b.style.left=f+"px";b.style.top=d+"px"}else{var g=document.getElementById("mainnav"+h);if(g){if(!$("#nav_second_menu_"+h,g).get(0)){g.appendChild(b)}}}b.style.display="";try{b.focus()}catch(c){}}}function unw_nav_display_none(a){var b=document.getElementById("nav_second_menu_"+a);if(b!=null&&b!="undefined"){b.style.display="none"}}function unw_hiddenSubMenu(b,g,h,f,l){if(l=="112005"){return}var m=document.getElementById("nav_second_menu_"+h);var c=unw_getMenuPos(g);var k=b.pageX||(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var j=b.pageY||(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var d=4;try{var a;if(f==2){a=((k-c[0])>=g.offsetWidth-d)||((j-c[1])>=g.offsetHeight-d)||k<=c[0]+d||j<=c[1]+d}else{if(l=="112006"){a=((j-c[1])>=g.offsetHeight-d)||k<=c[0]+d||j<=c[1]+d}else{if(l=="112003"||l=="112004"||l=="112007"){a=((k-c[0])>=g.offsetWidth-d)||k<=c[0]+d||j<=c[1]+d}else{a=((k-c[0])>=g.offsetWidth-d)||((j-c[1])>=g.offsetHeight-d)||k<=c[0]+d||j<=c[1]+d}}}if(a){unw_nav_display_none(h)}}catch(i){alert(i)}}function unw_displaySubMenu(b,h,i,g,m){var d=h;if(g==2){if(h.style.display=="none"){h.style.display=""}}var l=b.pageX||(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var k=b.pageY||(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var c=unw_getMenuPos(h);var a=unw_getMenuPos(d);var f=4;try{if(l>a[0]-f&&l<(a[0]+d.offsetWidth+f)&&k>a[1]-f&&k<(a[1]+d.offsetHeight+f)){if(g==1){if(m=="112006"){unw_nav_display(i,c[0]+h.offsetWidth,c[1],m)}else{if(m=="112003"||m=="112004"||m=="112007"){unw_nav_display(i,c[0],c[1]+h.offsetHeight,m)}}}else{if(g==2){unw_nav_display(i,c[0],c[1],m)}}}}catch(j){alert(j)}};

