var $$wc = new Object({ loc:'s1.wiseclick.cn', m:document, ml:document.location, md:document.domain, uid:'HPS-REE-25BSJ-1', exp:'30', amount:(typeof(smartkw_Sale)=="undefined")?0:smartkw_Sale, t:new Date(), now:parseInt(new Date().getTime()), r:Math.floor(Math.random()*1000000000), pageurl:encodeURI(document.location.href).replace(/#.+/g, ""), title:encodeURI(document.title), referrer:encodeURI(document.referrer), charset:(document.charset||document.characterSet), delay:0, fresh:0, adkey:'', sessioncode:'', cookiecode:'', trim:function(s){ return s.replace(/(^\s*)|(\s*$)/g, ""); }, sc:function(n,v,d){ this.t.setTime(this.t.getTime()+this.exp*24*60*60*1000); this.m.cookie=n+"="+(v)+";domain="+this.md+((d==1)?";expires="+this.t.toGMTString()+";domain="+this.md+";path=/":""); }, gc:function(k){ var arr=this.m.cookie.match(new RegExp("(^| )"+k+"=([^;]*)(;|$)")); if(arr!=null) return (arr[2]); return ; }, dc:function(k){ this.t.setTime(this.t.getTime()-1); this.m.cookie=k+"=null;expires="+this.t.toGMTString()+";domain="+this.md+";path=/"; }, sak:function() { if (this.adkey != "" && this.adkey != null){ this.sc('wckey',this.adkey,1); }else{ if (this.gc('wckey') != "" && this.gc('wckey') != null) this.adkey = this.gc('wckey'); } if(this.gc('wfresh') != null) this.fresh = this.gc('wfresh'); }, sws:function(){ if (this.gc('wsessid')==null){ this.sessioncode = this.r+""+this.now; this.delay = 1; this.sc('wsessid',this.sessioncode); this.sc('wordelay',this.delay,1); }else{ this.sessioncode=this.gc('wsessid'); } }, swc:function(){ if (this.gc('wcookid')==null){ this.cookiecode = this.now+""+this.r; this.delay = 0; this.sc('wcookid',this.cookiecode,1); this.sc('wordelay',this.delay,1); this.sc('wfresh',1); this.fresh = 1; }else{ this.cookiecode=this.gc('wcookid'); } }, spa:function(){ this.sak();this.sws();this.swc(); }, st:function(){ this.spa(); var data='r='+this.adkey+'^'+this.sessioncode+'^'+this.uid+'^'+this.cookiecode+'^'+this.delay+'^'+this.pageurl+'^'+this.referrer+'^'+this.charset+'^'+this.title+'^'+this.fresh; this.postd('star', data); }, reg:function(){ this.spa(); var data='r='+this.adkey+'^'+this.sessioncode+'^'+this.uid+'^'+this.cookiecode; this.postd('register', data); }, ord:function(){ this.spa(); var data='r='+this.adkey+'^'+this.sessioncode+'^'+this.uid+'^'+this.cookiecode+'^'+this.amount+'^'+this.delay; this.postd('order', data); }, hot:function(e){ var $_w = $$wc; var rd = parseInt(new Date().getTime())+''+Math.floor(Math.random()*1000000000); $_w.spa(); var e=e||window.event; if (typeof window.pageYOffset != 'undefined') { var y = e.clientY+window.pageYOffset; var x = e.clientX+window.pageXOffset; }else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { var y = e.clientY+document.documentElement.scrollTop; var x = e.clientX+document.documentElement.scrollLeft; }else if (typeof document.body != 'undefined') { var y = e.clientY+document.body.scrollTop; var x = e.clientX+document.body.scrollLeft; } // var y=e.clientY+document.body.scrollTop; // var x=e.clientX+document.body.scrollLeft; var w=document.body.scrollWidth/2; var x=w-x; var ob = e.srcElement ? e.srcElement : e.target; var obattr = ob.attributes['wcdef']; if(obattr != undefined) { var val = obattr.nodeValue; $_w.pageurl = $_w.pageurl.replace(/{\/(\S[^\^]+)\/}/g, ""); $_w.pageurl += '{/'+val+'/}'; var data2='r='+$_w.adkey+'^'+$_w.sessioncode+'^'+$_w.uid+'^'+$_w.cookiecode+'^'+$_w.delay+'^'+$_w.pageurl+'^'+$_w.referrer+'^'+$_w.charset+'^'+$_w.title+'^'+$_w.fresh+'^'+rd; $_w.postd('star', data2); } $_w.pageurl = $_w.pageurl.replace(/{\/(\S[^\^]+)\/}/g, ""); var data='r='+$_w.adkey+'^'+$_w.sessioncode+'^'+$_w.uid+'^'+$_w.cookiecode+'^'+$_w.pageurl+'^'+x+'^'+y+'^'+rd; $_w.postd('axis', data); }, postd:function(action,data){ // var j=this.m.createElement("script"); // j.setAttribute("type","text/javascript"); // j.setAttribute("src","http://"+this.loc+"/"+action+".htm?"+data); // this.m.getElementsByTagName("head")[0].appendChild(j); var j=this.m.createElement("img"); j.setAttribute("src","http://"+this.loc+"/"+action+".htm?"+data); // this.m.getElementsByTagName("head")[0].appendChild(j); if(window.addEventListener) { window.addEventListener("click",function(){document.getElementsByTagName("head")[0].appendChild(j);},false); }else { window.attachEvent("onclick",function(){document.getElementsByTagName("head")[0].appendChild(j);}); } }, ac:function(){ var $_w = $$wc; var elem=$_w.m.getElementsByTagName('input'); for(i=0;i<\/scr"+"ipt>"); var script = document.getElementById("__ie_onload"); script.onreadystatechange = function() { if (this.readyState == "complete") { init(); // call the onload handler } }; /*@end @*/ if (/WebKit/i.test(navigator.userAgent)) { window.__load_timer = setInterval(function() { if (/loaded|complete/.test(document.readyState)) { init(); } }, 10); } window.onload = init; window.__load_events = []; } window.__load_events.push(func); } }); function _wc_swf_click(a, b, c){ var $_w = $$wc; z = b.split('^'); x = parseFloat(z[0]); y = parseFloat(z[1]); var rd = parseInt(new Date().getTime())+''+Math.floor(Math.random()*1000000000); $_w.spa(); $_w.pageurl = $_w.pageurl.replace(/{\/(\S[^\^]+)\/}/g, ""); var data='r='+$_w.adkey+'^'+$_w.sessioncode+'^'+$_w.uid+'^'+$_w.cookiecode+'^'+$_w.pageurl+'^'+x+'^'+y+'^'+rd; $_w.postd('axis', data); $_w.pageurl += '{/'+a+'/}'; var data='r='+$_w.adkey+'^'+$_w.sessioncode+'^'+$_w.uid+'^'+$_w.cookiecode+'^'+$_w.delay+'^'+$_w.pageurl+'^'+$_w.referrer+'^'+$_w.charset+'^'+$_w.title+'^'+$_w.fresh+'^'+rd; $_w.postd('star', data); } function _wc_tracker(){ var $_w = $$wc; var rd = parseInt(new Date().getTime())+''+Math.floor(Math.random()*1000000000); $_w.spa(); $_w.pageurl=encodeURI(document.location.href).replace(/#(.+)/g, "{\/$1\/}"); $_w.title=encodeURI(document.title); var data='r='+$_w.adkey+'^'+$_w.sessioncode+'^'+$_w.uid+'^'+$_w.cookiecode+'^'+$_w.delay+'^'+$_w.pageurl+'^'+$_w.referrer+'^'+$_w.charset+'^'+$_w.title+'^'+$_w.fresh+'^'+rd; $_w.postd('star', data); } $$wc.st();