/*jrj mask*/
if(typeof JRJ=="undefined"||!JRJ){var JRJ={}}if(typeof JRJ.ui=="undefined"||!JRJ.ui){JRJ.ui={}}(function(a){JRJ.ui.Mask=function(){this.maskOpacity=0.1;this.maskColor="#000";this.mask=null};JRJ.ui.Mask.prototype={show:function(c){var b={maskOpacity:this.maskOpacity,maskColor:this.maskColor};a.extend(b,c);this.mask=a('<div class="jrj-dialog-mask"></div>');this.mask.appendTo("BODY");this.mask.css({position:"absolute",zIndex:9000,top:"0px",left:"0px",width:a(window).width(),height:a(document).height(),background:b.maskColor,opacity:b.maskOpacity});if(navigator.appVersion.indexOf("MSIE 6.0")!=-1){this.mask.bgiframe()}this.winResizeHandler=function(d){var e=d.data.obj;e._resize()};a(window).bind("resize",{obj:this},this.winResizeHandler)},close:function(){this.mask.remove();a(window).unbind("resize",this.winResizeHandler)},_resize:function(){this.mask.css({width:a(window).width(),height:a(document).height()})}}})(jQuery);
/*jrj logindialog*/
(function(b){var a=".jrj-ld{ position:fixed;_position:absolute;width:518px; z-index:9500; border:1px solid #C5C5C5; background:#FFF; font: 12px tahoma, Helvetica, arial, sans-serif; }.jrj-ld * { padding:0; margin:0 }.jrj-ld a { color:#039; text-decoration:none; }.jrj-ld a:hover { color:#c00; text-decoration:underline; }.jrj-ld-bar, .jrj-ld-close, .jrj-ld-alert .alert-icon, .jrj-ld-othor .logo-icon, .jrj-ld-clear { background:url(http://i0.jrjimg.cn/common/login-combg.png) no-repeat; }.jrj-ld-bar { position:relative; height:33px; color:#333; background-position:0 0; background-repeat:repeat-x; -moz-user-select:none; }.jrj-ld-bar span { padding:0 10px; font-size:14px; line-height:33px; font-weight:bold }.jrj-ld-close { position:absolute; top:11px; right:10px; width:10px; height:11px; line-height:0; text-indent:-9999px; background-position:0 -97px; font-size:0; }.jrj-ld-close:hover { background-position:0 -108px; }.jrj-ld-body { width:518px; padding:10px 0; overflow:hidden }.jrj-ld-left { float:left; width:329px; border-right:1px solid #c5c5c5; }.jrj-ld-right { float:right; width:158px; }.jrj-ld-line { position:relative; padding:0 0 20px 82px;_padding:0 0 16px 82px; clear:both; overflow:hidden; color:#333;  }.jrj-ld-clear{position:absolute;right:35px; _right:115px; top:7px; width:16px; height:16px; background-position:-25px -163px; overflow:hidden;}.jrj-ld-clear:hover{background-position:-67px -163px;}.jrj-ld-left .ml10 { margin-left:10px; }.jrj-ld-alert { padding:4px 0 4px 84px; color:#f00; height:18px; overflow:hidden}.jrj-ld-alert span{line-height:20px;}.jrj-ld-alert .alert-icon{float:left;width:12px;height:12px;margin:5px 4px 1px 0;font-size:0;line-height:0;background-position:0 -165px; vertical-align:middle}.jrj-ld-line label{ float:left; display:inline-block; width:52px; padding-left:30px; margin-left:-82px; line-height:30px; font-size:14px; vertical-align:middle; }.jrj-ld-text { width:209px; border:1px solid #c5c5c5; color:#999; padding:6px 0 6px 6px; *padding:7px 0 5px 6px;font-size:14px; height:16px;  line-height:16px;}.jrj-ld-text-focus {background:#fffddd; color:#000; border-top:1px solid #999}.jrj-ld-text-error {background:#fee; color:#000; border-top:1px solid #999}.jrj-ld-auto{padding:0 0 20px 82px; clear:both; color:#333; position:relative; z-index:9}.jrj-ld-auto input{vertical-align:middle;}.jrj-ld-btn, .jrj-ld-btn span { background:#ededed url(http://i0.jrjimg.cn/common/login-combg.gif) no-repeat; }.jrj-ld-btn { display:inline-block; height:25px; line-height:26px; color:#333; padding-left:23px; background-position:-10px -124px; text-decoration:none; }.jrj-ld-btn span { padding-right:23px; display:inline-block; cursor:pointer; background-position:100% -124px; font-size:14px; color:#000 }.jrj-ld-line .jrj-ld-btn:hover { background-position:-10px -97px; color:#000000; text-decoration:none; }.jrj-ld-line .jrj-ld-btn:hover span { background-position:100% -97px; }.jrj-ld-line .jrj-ld-btn:visited { color:#333; }.jrj-ld-reg{padding-top:22px;}.jrj-ld-reg span { padding:0 0 3px 0; font-weight:bold; margin:0; line-height:22px; display:inline-block }.jrj-ld-reg a { display:inline-block; width:120px; height:30px; text-align:center; line-height:30px; color:#fff; font-size:14px; font-weight:bold; background:#4f84c9 url(http://i0.jrjimg.cn/common/login-combg.gif) no-repeat 0 -35px; text-decoration:none; }.jrj-ld-reg a:hover { text-decoration:none; background-position:0 -65px; color:#fff; }.jrj-ld-othor { padding-top:83px; }.jrj-ld-othor a { display:inline-block; margin:4px 0; line-height:20px; color:#155d98; text-decoration:none;}.jrj-ld-othor .logo-icon{float:left;width:16px;height:16px;margin:2px 5px 0 0;font-size:0;line-height:0;}.jrj-ld-othor a:hover { color:#c00; text-decoration:underline; }.jrj-ld-othor a.sina .logo-icon { background-position:0 -193px; }.jrj-ld-othor a.renren .logo-icon { background-position:-0 -225px; }.jrj-ld-othor a.qq .logo-icon { background-position:-0 -257px; }.auto-exp{display:none;position:absolute; top:19px;*top:22px; left:84px; _left:5px;  background:#cdcccc; z-index:9999; width:248px; height:24px;}.auto-exp span{position:absolute; display:block; padding:3px 4px 3px 10px; line-height:17px; left:-2px; top:-3px; color:#ef3333; background:#fefbdf; border:1px solid #f4c780; width:232px; height:17px; overflow:hidden; zoom:1}";JRJ.ui.LoginDialog=function(e,j,h,g,l,c,d,k,i,f){this.spid=e;this.locationHref=j;this.isVerifyCode=h;this.returnUrl=g;this.registerUrl="http://i.jrj.com.cn/register.faces?ReturnURL=";this.registerReturnUrl=l;this.isAddTicket=true;if(typeof(c)!="undefined"&&!c){this.isAddTicket=false}this.formTarget="_self";if(typeof(d)!="undefined"){this.formTarget=d}this.callback=null;if(typeof(k)!="undefined"){this.callback=k}this.sinaReturnUrl=null;if(typeof(i)!="undefined"){this.sinaReturnUrl=i}this.qqReturnUrl=null;if(typeof(f)!="undefined"){this.qqReturnUrl=f}this.mask=null;this.nameNullAlert="\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a";this.pwdNullAlert="\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a"};JRJ.ui.LoginDialog.prototype={_init:function(){b(".jrj-ld").remove();this._addStyle("jrj-ld-style",a);this.mask=new JRJ.ui.Mask();var c=['<div class="jrj-ld">','<div class="jrj-ld-bar"><span>\u7528\u6237\u767b\u5f55</span><a class="jrj-ld-close" href="javascript:;" title="\u5173\u95ed" target="_self"></a></div>','<div class="jrj-ld-body">','    <div class="jrj-ld-left">','        <form action="http://sso.jrj.com.cn/sso/ssologin" method="post" target="_self">','            <input value="'+this.isVerifyCode+'" name="isVerifyCode" type="hidden" />','            <input value="'+this.spid+'" name="SPID" type="hidden" />','            <input value="'+this.locationHref+'" name="locationHref" type="hidden" />','            <input value="'+this.returnUrl+'" name="ReturnURL" type="hidden" />','<input type="hidden" value="'+this.isAddTicket+'" name="isAddTicket"/>','            <div class="jrj-ld-alert">','<i class="alert-icon"></i><span></span>',"            </div>",'            <div class="jrj-ld-line">',"                <label>\u7528\u6237\u540d:</label>",'                <input class="jrj-ld-text" name="LoginID" type="text"/>','                <a class="jrj-ld-clear" title="\u6e05\u9664\u7528\u6237\u540d" href="javascript:void(0)" tabindex="20" target="_self"></a> ',"            </div>",'            <div class="jrj-ld-line">',"                <label>\u5bc6\u3000\u7801:</label>",'                <input class="jrj-ld-text" name="Passwd" type="password" />',"            </div>",'            <div class="jrj-ld-auto">','                <input id="ld-auto-login" name="isPersist" type="checkbox" value="1"/> <label for="ld-auto-login">\u4e0b\u6b21\u81ea\u52a8\u767b\u5f55</label>','<p class="auto-exp"><span>\u4e3a\u4e86\u5e10\u53f7\u5b89\u5168\uff0c\u8bf7\u52ff\u5728\u516c\u7528\u7535\u8111\u4e0a\u52fe\u9009\u6b64\u9879</span></p>',"            </div>",'            <div class="jrj-ld-line"> <a class="jrj-ld-btn" href="javascript:;" target="_self"><span>\u767b \u5f55</span></a><a class="ml10" target="_blank" href="http://i.jrj.com.cn/retrievePWD.faces">\u5fd8\u8bb0\u5bc6\u7801</a> </div>',"        </form>","    </div>",'    <div class="jrj-ld-right">','        <div class="jrj-ld-reg"><span>\u8fd8\u6ca1\u6709\u91d1\u878d\u754c\u5e10\u53f7\uff1f</span><a target="_top" href="'+this.registerUrl+this.registerReturnUrl+'">5\u79d2\u6ce8\u518c</a></div>','        <div class="jrj-ld-othor"> <a href="http://sso.jrj.com.cn/sina/sinalogin'+(this.sinaReturnUrl?"?continueUrl="+this.sinaReturnUrl:"")+'" class="sina"><i class="logo-icon"></i>\u7528\u65b0\u6d6a\u5fae\u535a\u5e10\u53f7\u767b\u5f55</a>','        <a href="http://sso.jrj.com.cn/tencent/t/login.action'+(this.qqReturnUrl?"?continueUrl="+this.qqReturnUrl:"")+'" class="qq"><i class="logo-icon"></i>\u7528\u817e\u8baf\u5fae\u535a\u5e10\u53f7\u767b\u5f55</a> ',"        </div>","    </div>","</div>","</div>"].join("");this.dialogDiv=b(c);this.dialogDiv.appendTo(b("body"));this.form=this.dialogDiv.find("form");this.nameInput=this.form.find("input[name=LoginID]");this.pwdInput=this.form.find("input[name=Passwd]");this.loginBtn=this.dialogDiv.find(".jrj-ld-btn");this.closeBtn=this.dialogDiv.find(".jrj-ld-close");this.clearBtn=this.dialogDiv.find(".jrj-ld-clear");this.alertDiv=this.dialogDiv.find(".jrj-ld-alert");this.autoCheckbox=this.dialogDiv.find("#ld-auto-login");this.autoExp=this.dialogDiv.find(".auto-exp");this.alertDiv.css("visibility","hidden");this._bindEvent()},_bindEvent:function(){var c=this;c.nameInput.bind("input",function(d){c._toggleClear()});c.nameInput.bind("propertychange",function(d){c._toggleClear()});c.nameInput.bind("focus",function(d){b(this).addClass("jrj-ld-text-focus");c._toggleClear()});c.nameInput.bind("blur",function(d){b(this).removeClass("jrj-ld-text-focus");c._toggleClear();c._hideAllPrompt()});c.pwdInput.bind("keyup",function(d){if(d.keyCode==13){c._submit()}});c.pwdInput.bind("focus",function(d){b(this).addClass("jrj-ld-text-focus")});c.pwdInput.bind("blur",function(d){b(this).removeClass("jrj-ld-text-focus");c._hideAllPrompt()});c.loginBtn.bind("click",function(d){c._submit();return false});c.closeBtn.bind("click",function(d){c.close();return false});c.clearBtn.bind("click",function(d){c.nameInput.val("");c.clearBtn.hide();c._checkForm()});c.autoCheckbox.bind("mouseenter",function(){c.autoExp.show()});c.autoCheckbox.bind("mouseleave",function(){c.autoExp.fadeOut("fast")});c.autoCheckbox.bind("click",function(){c.autoExp.hide()});b(window).bind("resize",function(d){c._setPosition()});b(window).bind("scroll",function(d){c._setPosition()})},show:function(){this._init();this._setPosition();this.mask.show();this.dialogDiv.show();JRJ.ui.LoginDialog.focusInstance=this;this.nameInput.focus()},close:function(){this.dialogDiv.remove();this.mask.close();JRJ.ui.LoginDialog.focusInstance=null},_toggleClear:function(){var c=this;if(c.nameInput.val()!==""){c.clearBtn.show()}else{c.clearBtn.hide()}},_checkForm:function(){var c=this,d=c.nameInput.val();c._hideAllPrompt();if(d==""){c._showPrompt(c.nameNullAlert,c.nameInput);return false}var e=c.pwdInput.val();if(e==""){c._showPrompt(c.pwdNullAlert,c.pwdInput);return false}return true},_submit:function(){if(!this._checkForm()){return false}if(this.callback){var c=this.nameInput.val();var e=this.pwdInput.val();var f=this.autoCheckbox[0].checked;var d="http://sso.jrj.com.cn/sso/json/userSession.jsp?LoginID="+c+"&Passwd="+_hex_md5_(e.toLowerCase())+"&p=JRJ_USER_INFO&spid="+this.spid+(f?"&isPersist=1":"");b.getScript(d,function(){var g=JRJ.ui.LoginDialog.focusInstance;if(!g){return}if(!JRJ_USER_INFO){return}else{switch(JRJ_USER_INFO.state){case"0":g.close();if(b.isFunction(g.callback)){g.callback(JRJ_USER_INFO)}break;case"1":g._showPrompt("\u60a8\u7684\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef");break;case"-1":g._showPrompt("\u60a8\u7684\u7528\u6237\u540d\u6216\u5bc6\u7801\u5b58\u5728\u975e\u6cd5\u53c2\u6570");break;case"5":g._showPrompt("\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5");break}}})}else{this.dialogDiv.hide();this.mask.close();this.form.submit();this.dialogDiv.remove()}return true},_showPrompt:function(d,c){this.alertDiv.find("span").html(d);this.alertDiv.css("visibility","");if(c){c.focus();c.addClass("jrj-ld-text-error")}},_hidePrompt:function(c){this.alertDiv.css("visibility","hidden");if(c){c.removeClass("jrj-ld-text-error")}},_hideAllPrompt:function(){var c=this;c._hidePrompt(c.nameInput);c._hidePrompt(c.pwdInput)},_setPosition:function(){var d=((b(window).height()/2)-(this.dialogDiv.outerHeight()/2))-50;var c=((b(window).width()/2)-(this.dialogDiv.outerWidth()/2));if(d<0){d=0}if(c<0){c=0}if(b.browser.msie&&parseInt(b.browser.version)<=6){d=d+b(window).scrollTop()}this.dialogDiv.css({top:d+"px",left:c+"px"})},_addStyle:function(h,d,g){var f=b("#"+h)[0];if(f){return}var g=g||document;var e=g.createElement("style");e.id=h;e.type="text/css";var c=g.getElementsByTagName("head")[0];c.appendChild(e);if(e.styleSheet){e.styleSheet.cssText=d}else{e.appendChild(g.createTextNode(d))}}};JRJ.ui.LoginDialog.focusInstance=null;window.JRJLoginDialog=JRJ.ui.LoginDialog})(jQuery);(function(){var k=0;var t="";var d=8;function j(x){return l(g(m(x),x.length*d))}function h(x){return q(g(m(x),x.length*d))}function i(x){return u(g(m(x),x.length*d))}function r(x,y){return l(n(x,y))}function f(x,y){return q(n(x,y))}function v(x,y){return u(n(x,y))}function w(){return j("abc")=="900150983cd24fb0d6963f7d28e17f72"}function g(I,D){I[D>>5]|=128<<((D)%32);I[(((D+64)>>>9)<<4)+14]=D;var H=1732584193;var G=-271733879;var F=-1732584194;var E=271733878;for(var A=0;A<I.length;A+=16){var C=H;var B=G;var z=F;var y=E;H=b(H,G,F,E,I[A+0],7,-680876936);E=b(E,H,G,F,I[A+1],12,-389564586);F=b(F,E,H,G,I[A+2],17,606105819);G=b(G,F,E,H,I[A+3],22,-1044525330);H=b(H,G,F,E,I[A+4],7,-176418897);E=b(E,H,G,F,I[A+5],12,1200080426);F=b(F,E,H,G,I[A+6],17,-1473231341);G=b(G,F,E,H,I[A+7],22,-45705983);H=b(H,G,F,E,I[A+8],7,1770035416);E=b(E,H,G,F,I[A+9],12,-1958414417);F=b(F,E,H,G,I[A+10],17,-42063);G=b(G,F,E,H,I[A+11],22,-1990404162);H=b(H,G,F,E,I[A+12],7,1804603682);E=b(E,H,G,F,I[A+13],12,-40341101);F=b(F,E,H,G,I[A+14],17,-1502002290);G=b(G,F,E,H,I[A+15],22,1236535329);H=e(H,G,F,E,I[A+1],5,-165796510);E=e(E,H,G,F,I[A+6],9,-1069501632);F=e(F,E,H,G,I[A+11],14,643717713);G=e(G,F,E,H,I[A+0],20,-373897302);H=e(H,G,F,E,I[A+5],5,-701558691);E=e(E,H,G,F,I[A+10],9,38016083);F=e(F,E,H,G,I[A+15],14,-660478335);G=e(G,F,E,H,I[A+4],20,-405537848);H=e(H,G,F,E,I[A+9],5,568446438);E=e(E,H,G,F,I[A+14],9,-1019803690);F=e(F,E,H,G,I[A+3],14,-187363961);G=e(G,F,E,H,I[A+8],20,1163531501);H=e(H,G,F,E,I[A+13],5,-1444681467);E=e(E,H,G,F,I[A+2],9,-51403784);F=e(F,E,H,G,I[A+7],14,1735328473);G=e(G,F,E,H,I[A+12],20,-1926607734);H=p(H,G,F,E,I[A+5],4,-378558);E=p(E,H,G,F,I[A+8],11,-2022574463);F=p(F,E,H,G,I[A+11],16,1839030562);G=p(G,F,E,H,I[A+14],23,-35309556);H=p(H,G,F,E,I[A+1],4,-1530992060);E=p(E,H,G,F,I[A+4],11,1272893353);F=p(F,E,H,G,I[A+7],16,-155497632);G=p(G,F,E,H,I[A+10],23,-1094730640);H=p(H,G,F,E,I[A+13],4,681279174);E=p(E,H,G,F,I[A+0],11,-358537222);F=p(F,E,H,G,I[A+3],16,-722521979);G=p(G,F,E,H,I[A+6],23,76029189);H=p(H,G,F,E,I[A+9],4,-640364487);E=p(E,H,G,F,I[A+12],11,-421815835);F=p(F,E,H,G,I[A+15],16,530742520);G=p(G,F,E,H,I[A+2],23,-995338651);H=a(H,G,F,E,I[A+0],6,-198630844);E=a(E,H,G,F,I[A+7],10,1126891415);F=a(F,E,H,G,I[A+14],15,-1416354905);G=a(G,F,E,H,I[A+5],21,-57434055);H=a(H,G,F,E,I[A+12],6,1700485571);E=a(E,H,G,F,I[A+3],10,-1894986606);F=a(F,E,H,G,I[A+10],15,-1051523);G=a(G,F,E,H,I[A+1],21,-2054922799);H=a(H,G,F,E,I[A+8],6,1873313359);E=a(E,H,G,F,I[A+15],10,-30611744);F=a(F,E,H,G,I[A+6],15,-1560198380);G=a(G,F,E,H,I[A+13],21,1309151649);H=a(H,G,F,E,I[A+4],6,-145523070);E=a(E,H,G,F,I[A+11],10,-1120210379);F=a(F,E,H,G,I[A+2],15,718787259);G=a(G,F,E,H,I[A+9],21,-343485551);H=o(H,C);G=o(G,B);F=o(F,z);E=o(E,y)}return Array(H,G,F,E)}function c(D,A,z,y,C,B){return o(s(o(o(A,D),o(y,B)),C),z)}function b(A,z,E,D,y,C,B){return c((z&E)|((~z)&D),A,z,y,C,B)}function e(A,z,E,D,y,C,B){return c((z&D)|(E&(~D)),A,z,y,C,B)}function p(A,z,E,D,y,C,B){return c(z^E^D,A,z,y,C,B)}function a(A,z,E,D,y,C,B){return c(E^(z|(~D)),A,z,y,C,B)}function n(z,C){var B=m(z);if(B.length>16){B=g(B,z.length*d)}var x=Array(16),A=Array(16);for(var y=0;y<16;y++){x[y]=B[y]^909522486;A[y]=B[y]^1549556828}var D=g(x.concat(m(C)),512+C.length*d);return g(A.concat(D),512+128)}function o(z,C){var B=(z&65535)+(C&65535);var A=(z>>16)+(C>>16)+(B>>16);return(A<<16)|(B&65535)}function s(x,y){return(x<<y)|(x>>>(32-y))}function m(A){var z=Array();var x=(1<<d)-1;for(var y=0;y<A.length*d;y+=d){z[y>>5]|=(A.charCodeAt(y/d)&x)<<(y%32)}return z}function u(z){var A="";var x=(1<<d)-1;for(var y=0;y<z.length*32;y+=d){A+=String.fromCharCode((z[y>>5]>>>(y%32))&x)}return A}function l(z){var y=k?"0123456789ABCDEF":"0123456789abcdef";var A="";for(var x=0;x<z.length*4;x++){A+=y.charAt((z[x>>2]>>((x%4)*8+4))&15)+y.charAt((z[x>>2]>>((x%4)*8))&15)}return A}function q(A){var z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var C="";for(var y=0;y<A.length*4;y+=3){var B=(((A[y>>2]>>8*(y%4))&255)<<16)|(((A[y+1>>2]>>8*((y+1)%4))&255)<<8)|((A[y+2>>2]>>8*((y+2)%4))&255);for(var x=0;x<4;x++){if(y*8+x*6>A.length*32){C+=t}else{C+=z.charAt((B>>6*(3-x))&63)}}}return C}window._hex_md5_=j})();

