function getCookie(name){ var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen){ var j = i + alen; if(document.cookie.substring(i, j) == arg) return getCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if(i == 0) break; } return null; } function setCookie(name,value){ var expDate = new Date(); var argv = setCookie.arguments; var argc = setCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; if(expires != null){expDate.setTime (expDate.getTime() + expires);} document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expDate.toUTCString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function getCookieVal(offset){ var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } var firstshow; var visittotal; if(navigator.cookieEnabled) { var CFCountShowCookie=getCookie("CFCountShowCookie"); var CFCountVisitTotalCookie=getCookie("CFCountVisitTotalCookie"); if(isNaN(CFCountVisitTotalCookie)||CFCountVisitTotalCookie==null){CFCountVisitTotalCookie=0;} if(CFCountShowCookie!="1horse") { a=new Date(); h=a.getHours(); m=a.getMinutes(); s=a.getSeconds(); sparetime=1000*60*60*24*1-(h*3600+m*60+s)*1000-1; setCookie('CFCountShowCookie','1horse',sparetime,'/'); firstshow=1; } else { firstshow=0; } if(CFCountVisitTotalCookie==0) { sparetime=1000*60*60*24*3650; setCookie('CFCountVisitTotalCookie',1,sparetime,'/'); visittotal=1; } else { if(firstshow==1) { visittotal=parseInt(CFCountVisitTotalCookie,10)+1; sparetime=1000*60*60*24*3650; setCookie('CFCountVisitTotalCookie',visittotal,sparetime,'/'); } else { visittotal=parseInt(CFCountVisitTotalCookie,10); } } } else { firstshow=0; visittotal=1; } var ly=escape(document.referrer); var currweb=escape(location.href); var screenwidth=screen.width; var screenheight=screen.height; var screencolordepth=screen.colorDepth; var webtitle=escape(document.title); document.write('');