/*Build at: 2010-07-28 20:07:38*/

/* 
 * 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://i.zhongsou.com/sr/ig.php?tp=2&w="+c+"&n=10&pn=3&tz=1";window.open(a)}function onSearch(c,b){if(c==""||c=="个人门户搜索…"){alert("请您输入关键词!");b.focus();return}var a="http://i.zhongsou.com/sr/ig.php?tp=2&w="+c+"&n=10&pn=3";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 setMemberLoginFieldSatus(m){var g=[];var E=getUserIgNo();var D=function(){var H=document.getElementById("bloginmsg");if(H){H.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)}}g.push(document.getElementById("login_middle_not"))};if(E==null||E==""){if(typeof(m)!="number"){D()}else{var q=document.getElementById("b"+m);var s=q.getElementsByTagName("iframe");if(s&&s[0]){var v="http://uid.zhongsou.net/zspassport/forwidget/CheckCookie.aspx?returl="+encodeURIComponent(g_host+"/b/checkcookiecallback.htm")+"&domain="+g_hname;s[0].src=v;s[0].id="checkmastercookies";s=null}q=null}}else{var j=document.getElementById("b2bloginfo");if(j){var w=j.getAttribute("igid");if(w==E){g.push(j);var F=j.getAttribute("owner");var p=j.getAttribute("rolename");var B="http://www.zhongsou.net/space/index.php?igId="+encodeURIComponent(F);var r="http://uid.zhongsou.net/usercenter/pro_info.aspx?igno="+w;var d="http://uid."+g_hname+"/b2b/ApplyJoin.aspx?club="+encodeURIComponent(g_keyword);var a="http://uid.zhongsou.net/b2b/ChargeMember.aspx?club="+encodeURIComponent(F);var G="http://"+g_location.hostname+"/space/admin.php?op=unmemcenter";var c="http://www.zhongsou.net/space/admin.php?op=msglist&t=0&igId="+F+"&m=1";var A="http://www.zhongsou.net/space/admin.php?op=unmsglist";var u="http://uid.zhongsou.net/b2b/MemberList.aspx?club="+encodeURIComponent(F);var n="http://www.zhongsou.net/np/b2b/league/subonline.jsp?t=2";var e="http://"+g_location.hostname+"/space/admin.php?op=MemIndex&kname="+encodeURIComponent(g_keyword)+"&type="+encodeURIComponent(p);var h=document.getElementById("nrgl");if(h){h.setAttribute("target","_blank");h.setAttribute("href",B)}var b=document.getElementById("glzx");if(b){b.setAttribute("target","_blank");b.setAttribute("href",r)}var k=document.getElementById("sqjr");if(k){k.setAttribute("target","_blank");k.setAttribute("href",d)}var l=document.getElementById("b2bmember");if(l){l.setAttribute("target","_blank");l.setAttribute("href",a)}var C=document.getElementById("lmhyzx");if(C){C.setAttribute("target","_blank");C.setAttribute("href",G)}var t=document.getElementById("b2bmessage");if(t){t.setAttribute("target","_blank");t.setAttribute("href",c)}var y=document.getElementById("b2bunmessage");if(y){y.setAttribute("target","_blank");y.setAttribute("href",A)}var f=document.getElementById("hygl");if(f){f.setAttribute("target","_blank");f.setAttribute("href",u)}var z=document.getElementById("b2bgq");if(z){z.setAttribute("target","_blank");z.setAttribute("href",n)}var o=document.getElementById("hyzx");if(o){o.setAttribute("target","_blank");o.setAttribute("href",e)}}else{D()}}else{D()}}if(g.length==0){return}for(var x=0;x<g.length;x++){if(g[x]&&g[x].style){g[x].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){if(typeof d!="undefined"&&typeof a!="undefined"){var c="";if(typeof g_keyword!="undefined"&&!!g_keyword){c=g_keyword}else{if(typeof g_kw!="undefined"&&!!g_kw){c=g_kw}}var b="http://"+g_location.hostname+"/np/b2b/";if(a){b=b+"cate_select.jsp?w="+c+"&action=sale"}else{b=b+"member_cate_select.jsp?kw="+c+"&action=membersale"}d.setAttribute("target","_blank");d.href=b}return true}function publishBuyInfo(d,a){if(typeof d!="undefined"&&typeof a!="undefined"){var c="";if(typeof g_keyword!="undefined"&&!!g_keyword){c=g_keyword}else{if(typeof g_kw!="undefined"&&!!g_kw){c=g_kw}}var b="http://"+g_location.hostname+"/np/b2b/";if(a){b=b+"cate_select.jsp?w="+c+"&action=buy"}else{b=b+"member_cate_select.jsp?kw="+c+"&action=memberbuy"}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();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(f,a,c){var e=new Image();e.src=f.src;if(!c){if(e.width>0&&e.height>0){flag=true;if(e.width/e.height>=1){if(e.width>a){f.width=a;f.height=(e.height*a)/e.width}else{f.width=e.width;f.height=e.height}}else{if(e.height>a){f.height=a;f.width=(e.width*a)/e.height}else{f.width=e.width;f.height=e.height}}}}else{var b=e.width;var d=e.height;if(b/d>=a/c){if(b>a){d=parseInt(a*d/b);b=a}}else{if(d>c){b=parseInt(c*b/d);d=c}}f.width=b;f.height=d}var e=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)}};
