/**********************************************
*  BIBLE.popcastle.com      Code by popcastle *
*  ...:  P o p   C a s t l e   T e a m  :...  *
*           Email -> xiaole@popcastle.com     *
*           Links -> http://www.popcastle.com *
*                 -> http://bbs.popcastle.com *
**********************************************/

Base_PicURL = "images/";

function PreLoadImage() {
	var _doc = document; 
	if(_doc.images) { 
		if(!_doc._val) _doc._val = new Array();
		for(_loop=0; _loop<=9; _loop++) {
			_doc._val[_loop]     = new Image; 
			_doc._val[_loop].src = Base_PicURL + _loop + ".gif";
		}
		_doc._val[10]     = new Image; 
		_doc._val[10].src = Base_PicURL + "m.gif";
		_doc._val[11]     = new Image; 
		_doc._val[11].src = Base_PicURL + "b.gif";
	}
}

PreLoadImage();

function DigitalWatch() {
	NowTime  = new Date();
	_hour    = NowTime.getHours();
	_minute  = NowTime.getMinutes();
	_second  = NowTime.getSeconds();

	var hour_l   = _hour % 10;
	var hour_h   = (_hour-hour_l) / 10;
	var minute_l = _minute % 10;
	var minute_h = (_minute-minute_l) / 10;
	var second_l = _second % 10;
	var second_h = (_second-second_l) / 10;

	document.hour_h.src    = Base_PicURL + hour_h   + ".gif";
	document.hour_l.src    = Base_PicURL + hour_l   + ".gif";
	document.minute_h.src  = Base_PicURL + minute_h + ".gif";
	document.minute_l.src  = Base_PicURL + minute_l + ".gif";
	document.second_h.src  = Base_PicURL + second_h + ".gif";
	document.second_l.src  = Base_PicURL + second_l + ".gif";

	ID = window.setTimeout('DigitalWatch()',1000)
}

function showhead() {
	document.write ("<!--外框--><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\"><tr><td valign=\"top\" align=\"center\">\r\n");
	document.write ("<!--实体--><table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
	document.write ("<!--上部--><tr><td colspan=\"2\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>\r\n");
	document.write ("<!--左上管--><td width=\"23\" valign=\"top\" background=\"images/if-hhl.gif\"><img src=\"images/if-clu.gif\" width=23 height=24><br>");
	document.write ("<!--中间管--><td rowspan=\"2\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
	document.write ("<!--标题区--><tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/if-tback.gif\"><tr>\r\n");
	document.write ("<!--标题显示--><td width=\"349\" valign=\"top\" align=\"right\"><img src=\"images/if-tword.gif\" width=387 height=36></td></tr></table></td></tr>\r\n");
	document.write ("<!--中间内容--><tr><td valign=\"top\" background=\"images/pback.gif\"><table width=\"100%\" height=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
	document.write ("<!--空开十个点--><tr><td height=\"130\" valign=\"top\">\r\n");
}

function showfoot() {
	document.write ("<!--空开十个点--></td></tr></table></td></tr>\r\n");
	document.write ("<!--中上管--><tr><td height=\"10\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/if-hhd.gif\"><tr><td height=\"10\" align=\"left\"><td align=\"right\" height=\"10\"></td></tr></table></td></tr></table></td>\r\n");
	document.write ("<!--右上管--><td width=\"23\" valign=\"top\" background=\"images/if-hhr.gif\"><img src=\"images/if-cru.gif\" width=23 height=24></td></tr>\r\n");
	document.write ("<!--左下管--><tr><td width=\"23\" valign=\"bottom\" background=\"images/if-hhl.gif\"><br><img src=\"images/if-cld.gif\" width=23 height=25></td>\r\n");
	document.write ("<!--右下管--><td width=\"23\" valign=\"bottom\" background=\"images/if-hhr.gif\"><br><img src=\"images/if-crd.gif\" width=23 height=25></td></tr></table></td></tr>\r\n");
	document.write ("<!--实体结束--></td></tr></table>\r\n");
	document.write ("<!--外框结束--></td></tr></table>\r\n");
	DigitalWatch();
}

function showline() {
	document.write ("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" background=\"images/dback.gif\"></table>");
}

document.write ("<style>\r\n");
document.write ("body { margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; background-color: \#7c7c7c; scrollbar-face-color:\#505050; scrollbar-shadow-color:\#cccccc; scrollbar-highlight-color:\#cccccc; scrollbar-3dlight-color:\#3a3a3a; scrollbar-darkshadow-color:\#3a3a3a; scrollbar-track-color:\#3a3a3a; scrollbar-arrow-color:\#a0a0a0 }\r\n");
document.write ("a { font-family: \"Verdana\", \"Arial\"; font-size: 9pt; color: \#cccccc; text-decoration: none; font-weight: normal }\r\n");
document.write ("a:hover, a:active { font-family: \"Verdana\", \"Arial\"; font-size: 9pt; color: \#ffffff; text-decoration: underline; font-weight: normal }\r\n");
document.write ("body, div, p, span, td { font-family: \"Verdana\", \"Arial\"; font-size: 9pt; line-height: 14pt; color: \#cccccc; font-weight: normal}\r\n");
document.write ("</style>\r\n");
