var ieUserData={init:function(){this.defaultExps=365;this.input=C("input");this.input.type="hidden";this.input.id="ieuserdata";this.input.addBehavior("#default#userData");document.body.appendChild(this.input);return this},set:function(A,B,D){this.input.load(A);var E=new Date();D=D||this.defaultExps;E.setDate(E.getDate()+D);this.input.load(A);this.input.expires=E.toUTCString();this.input.setAttribute("code",B);this.input.save(A)},get:function(A,B){this.input.load(A);return this.input.getAttribute("code")},is:function(B,D){var A=this.get(B);return(A!=null&&A!="")?true:false},remove:function(A){this.set(A,false,-this.defaultExps)}};var mozlliaStorage={init:function(){this.domain=getHost();return this},set:function(A,B){window.globalStorage[this.domain].setItem(A,B)},get:function(A,B){return window.globalStorage[this.domain].getItem(A)},is:function(B){var A=this.get(B);return(A!=null&&A!="")?true:false},remove:function(A){window.globalStorage[this.domain].removeItem(A)}};var flashStorage=(function(){function F(){var I=document.createElement("div");I.style.position="absolute";var H='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1" height="1" id="GlobalSharedObject"><param name="movie" value="swf/SwfObject.swf?+'+new Date().getTime()+'" /><param name="quality" value="low" /><param name="flashvars" value="dbName=hao123&callbackName=FlashCallBack" /><param name="wmode" value="transparent" /><param name="swliveconnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="swf/SwfObject.swf?'+new Date().getTime()+'" flashvars="dbName=hao123&callbackName=FlashCallBack" quality="low" swLiveConnect="true" width="1" height="1" allowScriptAccess="always" wmode="transparent" name="GlobalSharedObject" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';(document.body||document.documentElement).appendChild(I);I.innerHTML=H}function D(){return Browser.isIE?window.GlobalSharedObject:document.GlobalSharedObject}function G(H,I){var J=D();J.set(H,I)}function B(H){var I=D();return I.get(H)}function E(I){var H=B(I);return(H!=undefined&&H!="")?true:false}function A(H){G(H,"")}return{init:F,set:G,get:B,is:E,remove:A}})();var userCookie={init:function(D,E,A){var B=new Date();B.setTime(B.getTime()+(86400*1000*365));this.domain=D||getHost();this.path=E||"/";this.expdate=A||B;return this},set:function(B,E,D){var A=this.expdate,D=D||this.domain;document.cookie=B+"="+E+";expires="+A.toGMTString()+";path="+this.path+";domain="+D},get:function(E){var B=document.cookie.split(";"),E=E+"=";for(var D=0,A=B.length;D<A;D++){if(B[D].indexOf(E)!="-1"){return B[D].replace(E,"")}}return null},is:function(B){var A=this.get(B);return(A!=null&&A!="")?true:false},remove:function(A,B){var B=B||this.domain;if(this.is(A)){document.cookie=A+"="+((this.path)?"; path="+this.path:"")+((this.domain)?"; domain="+B:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}};if(!window.UserData){var UserData=null;if(Browser.isIE){UserData=ieUserData.init()}else{if(Browser.isFF){UserData=mozlliaStorage.init()}else{if(Browser.isFlash){flashStorage.init();UserData=flashStorage}else{if(Browser.isCookie){UserData=userCookie.init()}else{alert("对不起，您的浏览器不支持数据存储，请开启Cookie或安装flash6.0以上版本！")}}}}}(function transferUserData(){function A(F,I){for(var H=0,G=F.length;H<F.length;H++){I(F[H])}}var B=["test.baidu.com","www.hao123.com","www.hao222.com","www.hao222.net","www.hao123.net","hao123.com","hao222.com","hao222.net","hao123.net"],D=["HAOGX","HAOLOTTERY","HAOSTOCK"];function E(F){userCookie.init();if(userCookie.is(F)){if(userCookie.get(F)==1){return }var G=userCookie.get(F);A(B,function(H){UserData.set(F,G);userCookie.remove(F,H)})}}A(D,function(F){E(F)})})();