function handleError() {
     return true;
}
window.onerror = handleError;
var cr = "欢迎访问屏保专家站点..."; 
showcr();

function showcr() {
	window.status = cr;
	setTimeout("showcr()", 50);
}
function fixDate(date) {
	var base = new Date(0)
	var skew = base.getTime()
	if (skew > 0)
		date.setTime(date.getTime() - skew)
}
function getCookieTime() {
	var now = new Date();
	fixDate(now);
	now.setTime(now.getTime()+365*24*60*60*1000);
	return now;
}
function getCookie(name) {
	var prefix = name + "="
	var cookieStartIndex = document.cookie.indexOf(prefix)
	if (cookieStartIndex == -1)
		return null
	var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
	if (cookieEndIndex == -1)
		cookieEndIndex = document.cookie.length
	return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}
function setCookie(name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + escape(value) +
				((expires) ? "; expires=" + expires.toGMTString() : "") +
				((path) ? "; path=" + path : "") +
				((domain) ? "; domain=" + domain : "") +
				((secure) ? "; secure" : "")
	document.cookie = curCookie
}
function cookieEnabled() {
	if(getCookie("cE")==1) {
		return true;
	}
	else {
		setCookie("cE", 1, getCookieTime(), "/");
		return getCookie("cE")==1;
	}
}
function alphaimg(img, alpha) {
	img.filters.alpha.opacity = alpha ? 100 : 60;
}
function WriteTop() {
var img = new Array("top_bk.gif", "ddsoft_logo.jpg", "nav_bk.gif", "c_bk.gif", "bottom_bk.gif", "ezsssbk.gif");
for(i=0; i<img.length; i++) {
	eval("img__"+i+"=new Image();");
	eval("img__"+i+".src='/images/"+img[i]+"';");
}
document.write("<div align='center'>\
<center>\
<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 background='../images/top_bk.gif'>\
	<TR>\
		<TD WIDTH=250 HEIGHT=88><IMG SRC='../images/ddsoft_logo.jpg' WIDTH='250' HEIGHT='88' BORDER=0></TD>\
		<TD WIDTH=500 align='center'><TABLE width='98%' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD class='big'>屏保专家</TD><TD>&nbsp;【!Easy ScreenSaver Station】全球同步发布的简体中文版<BR>&nbsp;For Windows XP/2003 Server/2000/NT/ME/98！<BR>&nbsp;无需编程，易用、便捷的个性化屏保制作及管理工具软件！<BR>&nbsp;绝无插件，绝无病毒，我们拒绝流氓软件！</TD></TR></TABLE></TD>\
	</TR>\
</TABLE>\
<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 background='../images/nav_bk.gif'>\
	<TR>\
		<TD WIDTH='100%' HEIGHT=46 align='right'>\
<A HREF='./' title='本站首页' class='nav'>首页</A>&nbsp;|&nbsp;\
<A HREF='index.htm' title='屏保专家功能简介' class='nav'>功能简介</A>&nbsp;|&nbsp;\
	<A HREF='down.htm' title='下载最新版软件' class='nav'>软件下载</A>&nbsp;|&nbsp;\
<A HREF='snap.htm' title='看看软件截图' class='nav'>软件截图</A>&nbsp;|&nbsp;\
<A HREF='faq_cn.htm' title='屏保专家常见问题解答' class='nav'>常见问题</A>&nbsp;|&nbsp;\
<A href='register.htm' title='立即注册屏保专家，获得注册码。' class='nav'>软件注册</A>&nbsp;&nbsp;\
		</TD>\
	</TR>\
</TABLE>\
<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 background='../images/c_bk.gif'>\
	<TR>\
		<TD width='2%' height='300'></TD>\
		<TD width='98%' align='center'>");
}
function WriteCopyright() {
}
function WriteBottom() {
	var cv = "javascript:window.external.AddFavorite('http://www.dd2002.com/cn/', '屏保专家');";
	document.write("<div align='center'><BR>\
	<table border='0' cellpadding='0' cellspacing='0' width='600'><tr>\
	<td width='100%' align='center'>版权所有 &copy 2002-2010 DDSoft，保留所有权利。<BR><BR><a href=\"");
	document.write(cv);
	document.write("\" title=\"收藏本站\">【收藏本站】</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='mailto:support@dd2002.com?subject=关于屏保专家(!Easy ScreenSaver Station)'>【联系我们】</a>\
	</td><td width='5%'></td></tr></table>\
	</div>");
document.write("		</TD>\
	</TR>\
	<TR>\
		<TD height='10'><IMG SRC='../images/spacer.gif' WIDTH='1' HEIGHT='1' BORDER=0></TD>\
	</TR>\
</TABLE>\
<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0>\
	<TR>\
		<TD height='2' background='../images/bottom_bk.gif'><IMG SRC='../images/spacer.gif' WIDTH='1' HEIGHT='1' BORDER=0></TD>\
	</TR>\
</TABLE>\
</center>\
</div>");
}
