/*Build at: 2010-03-04 14:00:11*/

/* 
 * 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(a){var d=[];var c=getUserIgNo();if(c==null||c==""){if(typeof(a)!="number"){if(typeof jQuery=="undefined"){d.push(document.getElementById("zsig_70_memberLoginField"))}else{d=jQuery(".zsig_70_memberLoginField").get()}}else{var e=document.getElementById("b"+a);var f=e.getElementsByTagName("iframe");if(f){var g="http://uid.zhongsou.net/zspassport/forwidget/CheckCookie.aspx?returl="+encodeURIComponent(g_host+"/b/checkcookiecallback.htm")+"&domain="+g_hname;f[0].src=g;f[0].id="checkmastercookies";f=null}e=null}}else{if(typeof jQuery=="undefined"){d.push(document.getElementById("zsig_70_memberHasLoginField_1"));d.push(document.getElementById("zsig_70_memberHasLoginField_2"))}else{d=jQuery(".zsig_70_memberHasLoginField").get()}}if(d.length==0){return}for(var b=0;b<d.length;b++){if(d[b]&&d[b].style){d[b].style.display="inline"}}}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(c,a){var b=new Image();b.src=c.src;if(b.width>0&&b.height>0){flag=true;if(b.width/b.height>=1){if(b.width>a){c.width=a;c.height=(b.height*a)/b.width}else{c.width=b.width;c.height=b.height}}else{if(b.height>a){c.height=a;c.width=(b.width*a)/b.height}else{c.width=b.width;c.height=b.height}}}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)}};
