


function lib2bwcheck(){
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.opera5=this.agent.indexOf("Opera 5")>-1;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6;
	this.mac=this.agent.indexOf("Mac")>-1;
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);
	return this;
}
var bw=new lib2bwcheck()
var px = bw.ns4||window.opera?"":"px";

function jsdisplaytimerun() {
 var cx, cy, a, css, obj, nest, ooo;
 if ((document.all) && (!bw.opera5)) {
  movy = document.body.clientHeight-64;
  movx = document.body.clientWidth-50;
 } else {
  movx = window.innerWidth-50;
  movy = window.innerHeight-64;
 }
 cx = Math.round(ox*movx/100);
 cy = Math.round(oy*movy/100);
 if (bw.ns4) {
	ooo = eval("document.js4displaytime");
	ooo.moveTo(cx, cy);
 } else {
	obj = "jsdisplaytime"; nest="";
   	css= bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
	css.left = cx; css.top = cy;
 }

  var time=new Date();
  var hour  =time.getHours();
  var minute=time.getMinutes();
  var second=time.getSeconds();
  var temp  =hour;
  temp+=((minute<10)?":0":":")+minute;
  temp+=((second<10)?":0":":")+second;
  document.jsdisplaytime.clock.value=temp;

 setTimeout("jsdisplaytimerun()",1000,"JavaScript");
}

var ox=50;
var oy=40;

if ((document.all) && (!bw.opera5)) {
  movy = document.body.clientHeight-64;
  movx = document.body.clientWidth-50;
} else {
  movx = window.innerWidth-50;
  movy = window.innerHeight-64;
}

if (bw.ns4) document.writeln("<layer id='js4displaytime'>");
    else document.writeln("<div id='jsdisplaytime' style='position:absolute; z-index:3;'>");
document.writeln('<form name=jsdisplaytime><input type=text name=clock size=8 readonly></form>');
if (bw.ns4) document.writeln("</layer>");
    else document.writeln("</div>");

setTimeout("jsdisplaytimerun()",1000,"JavaScript");



//DO NOT MODIFY
/*
<APPLETINFO>
appletname=jsdisplaytime
applettype=JAVASCRIPT
created=1049822020310
appletfilename=jsdisplaytime1.js
</APPLETINFO>
<JAVASCRIPT>
ox=50
oy=50
</JAVASCRIPT>
<HTMLGENERATOR>
null</HTMLGENERATOR>
*/
