var deviceJump=function(){var a=function(){},b=navigator.userAgent.toLowerCase(),c=window.location.href,d=c.toLocaleLowerCase().split("/")[2],e=document.referrer,f=e.toLocaleLowerCase().split("/")[2],g=window.location.search,h=!1,i="main",j="ipad"==b.match(/ipad/i),k="iphone"==b.match(/iphone/i),l="android"==b.match(/android/i),m=" mobile"==b.match(/ mobile/i),p=("windows mobile"==b.match(/windows mobile/i),"windows phone"==b.match(/windows phone/i),"symbian"==b.match(/symbian/i)),q="nokia"==b.match(/nokia/i),r="windows ce"==b.match(/windows ce/i),s="rv:1.2.3.4"==b.match(/rv:1.2.3.4/i),v=("windows nt"==b.match(/windows nt/i),"trident"==b.match(/trident/i),"blackberry"==b.match(/blackberry/i));return a.prototype={init:function(a,b){if(i=j?"ipad":m||k||l||s?"wap_3g":q||p||v||r?"wap":"main","undefined"!=typeof b){var n=b;n(i,a)}if("main"==i)return!1;if("?type=checked"==g)return!1;if(0==d.indexOf("cms.pc"))return!1;if(void 0==a[i]||""==a[i]||"http"!=a[i].toLowerCase().match(/http/i))return!1;if(-1!=c.toLowerCase().indexOf(a[i]))return!1;if(""==e?h=!0:((".pchouse.com.cn"!=f.match(/.pchouse.com.cn/i)||-1!=f.indexOf("mrobot"))&&(h=!0),f!=d&&2==(e+c).split("m.pchouse.com.cn").length&&(h=!0),f!=d&&2==(e+c).split("ipad.pchouse.com.cn").length&&(h=!0)),!h)return!1;if(g&&"ad="==g.match(/ad=/i)){var o=g.split("ad=")[1].split("&")[0];a[i]+=-1!=a[i].indexOf("?")?""==a[i].split("?")[1]?"ad="+o:"&ad="+o:"?ad="+o}window.location.href=a[i]}},new a}();
erweima
erweima