!function(a,b){var o,c=navigator.userAgent.toLowerCase(),d=location.href.toLowerCase(),e=location.hostname,f=b.referrer.toLowerCase(),g=f.split("/")[2],h=location.search,i=location.hash,j=".pconline.com.cn",k="g.pconline.com.cn",l="ipad.pconline.com.cn",m={},n={SB:c.indexOf("symbian")>-1,NK:c.indexOf("nokia")>-1,BB:c.indexOf("blackberry")>-1,WCE:c.indexOf("windows ce")>-1,WP:c.indexOf("windows phone")>-1,Mobile:c.indexOf("mobile")>-1,Android:c.indexOf("android")>-1,Iphone:c.indexOf("iphone")>-1,Ipod:c.indexOf("ipod")>-1,Ipad:c.indexOf("ipad")>-1,Mipad:c.indexOf("mi-pad")>-1,WX:c.indexOf("micromessenger")>-1};m.bIsWeixin=n.weixin?!0:!1,m.browserType=n.Ipad||n.Mipad?"ipad":n.SB||n.BB||n.WCE||n.WP||n.NK?"wap":n.Mobile||n.Android||n.Iphone||n.Ipod?"wap_3g":"main",a.PCGPARAM&&"object"==typeof a.PCGPARAM||(a.PCGPARAM=m),o=function(){},o.prototype={init:function(c,n,o){function u(a,c,d,e,f){b.cookie=a+"="+c+";expires="+new Date((new Date).getTime()+d).toGMTString()+";path="+e+";domain="+f}var r,s,t,v,w,p=m.browserType,q=c[p];return"function"==typeof n&&n(p,c),"jump2"==o&&"undefined"!=typeof c&&"undefined"!=typeof c.wap_3g&&"main"!=m.browserType?(a.deviceJumpUrl=c,b.addEventListener("DOMContentLoaded",function(){var a=b.createElement("iframe");a.src="/global_ssi/pconline/jump_layer/",a.style.display="none",a.id="JiframeDeviceJump",b.body.appendChild(a)},!1),!1):"main"==p||h.indexOf("type=checked")>-1||e.indexOf("cms.pc")>-1||"undefined"==typeof q||""==q?!1:-1!=d.indexOf(q)&&(r="http://"+k+"/w/",d!=r)?!1:(s=!1,t="referrerUrl",""==f?(s=!0,u(t,f,-1e3,"/",j)):((-1==g.indexOf(j)||-1!=g.indexOf("mrobot"))&&(s=!0,u(t,f,1e4,"/",j)),g!=e&&(f+d).split(k).length>=2&&(s=!0,u(t,f,1e4,"/",j)),g!=e&&(f+d).split(l).length>=2&&(s=!0,u(t,f,1e4,"/",j))),s?(h&&h.indexOf("fromApp")>-1&&(q+=-1!=q.indexOf("?")?"&fromApp":"?fromApp"),(i||h)&&(v=/[\?|#]ad=([^&|^#]*)/i.exec(h+i),v&&(w=v[1],q+=-1!=q.indexOf("?")?"#ad="+w:-1!=q.indexOf("#")?"?ad="+w:"#ad="+w)),location.href=q,void 0):!1)}},a.deviceJump=new o}(window,document);