﻿function $(i){return document.getElementById(i)}function dc(t){return document.createElement(t)}function s16(a,par){var wp=["act="+a];for(var i=0;i<par.length;i+=2)wp.push(par[i]+"="+encodeURIComponent(par[i+1]));$('s16').src="http://st.1616.net/s.php?"+wp.join("&")}function t(a){return document.all?a.innerText:a.textContent}function els(i,t){return $(i).getElementsByTagName(t)}function has(i,e){var pn=e;while(pn){if(pn.id==i)return true;pn=pn.parentNode}return false}function setCookie(n,v,e,p,d,s){var t=new Date();t.setTime(t.getTime());if(!e)e=365;if(!p)p='/';e=e*1000*60*60*24;var e_date=new Date(t.getTime()+(e));document.cookie=n+'='+encodeURIComponent(v)+((e)?';expires='+e_date.toGMTString():'')+((p)?';path='+p:'')+((d)?';domain='+d:'')+((s)?';secure':'')}function getCookie(n){var c=document.cookie.split("; ");for(var i=0;i<c.length;i++){var p=c[i].split("=");if(n==p[0])try{return decodeURIComponent(p[1])}catch(e){return null}}return null}function ajax(url,callback,tk){var xhr=(window.XMLHttpRequest)?new XMLHttpRequest():(document.all?new ActiveXObject('Microsoft.XMLHTTP'):null);if(!xhr){callback(null,tk);return null}xhr.open('GET',url,true);xhr.onreadystatechange=function(ev){if(xhr.readyState!=4)return;if((xhr.status>=200)&&(xhr.status<300))callback(xhr.responseText,tk);else callback(null,tk)};xhr.setRequestHeader("If-Modified-Since","0");try{xhr.send(null)}catch(e){}return xhr}function gb2312(key){var r="";for(var i=0;i<key.length;i++){var t=key.charCodeAt(i);if(t>=0x4e00||t==0x300A||t==0x300B){try{execScript("ascCode=hex(asc(\""+key.charAt(i)+"\"))","vbscript");r+=ascCode.replace(/(.{2})/g,"%$1")}catch(e){}}else{r+=escape(key.charAt(i))}}return r}function set_home(o,url){if(document.all){o.style.behavior='url(#default#homepage)';o.setHomePage(url)}}