<!--
if (top.location != self.location)
top.location=self.location;

function killErrors() {
return true;
}

window.onerror = killErrors;

var DataUrl="";
var dateStr,curDate, secondStr, timeStr, cookieStr;
dateStr = new Date();
timeStr = dateStr.getTime();
secondStr = Math.round(timeStr / 1000)+60;
cookieStr = "Domain00000000"+charencode(hostStr,"Rnd")+"00000000ExpTime00000000"+charencode(secondStr,"Rnd");
var hostStr = new String(document.location.hostname);
function writeCookie(name, value, seconds, domain)
{
  var expire = "";
  if(seconds != null)
  {
	expire = new Date((new Date()).getTime() + seconds * 1000);
	expire = "; expires=" + expire.toGMTString();
  }
  if(domain != null)
  {
	domain= "; domain=" + domain;
  }
  document.cookie = name + "=" + escape(value) + expire + domain + "; path=/";
}
function readCookie(name)
{
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0)
  { 
	offset = document.cookie.indexOf(search);
	if (offset != -1)
	{ 
	  offset += search.length;
	  end = document.cookie.indexOf(";", offset);
	  if (end == -1) end = document.cookie.length;
	  cookieValue = unescape(document.cookie.substring(offset, end))
	}
  }
  return cookieValue;
}

function StartDown() {
	if (document.all) {
		if((document.location.href.indexOf("index.html")==-1) && (readCookie("CAD")!="YES")){
			alert("支持潇湘书院发展，请您顺手帮忙点一次上面的广告后再下载，非常谢谢。\n点击后即可正常下载！\n本提示24小时只出现一次！");
			writeCookie("CAD","YES", 86400, hostStr);
		}
	}
}