function gup(n){n=n.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex=new RegExp("[\\?&]"+n+"=([^&#]*)");var results=regex.exec(location.href);if(results==null)return"";return results[1];}var mode=gup("mode");if(mode==="")mode=gup("up_mode");mode=parseInt(mode,10);if(mode!==1&&mode!==2&&mode!==3&&mode!==4)mode=1;var bg="";if(typeof __UP_bg__!=='undefined')bg=__UP_bg__;if(bg==="")bg=gup("bg");if(bg==="")bg=gup("up_bg");if(bg==="")bg="#000";else{if(bg.substring(0,1)!="#")bg=decodeURIComponent(bg);if(bg.substring(0,1)!="#")bg=decodeURIComponent(bg);}var color="";if(typeof __UP_color__!=='undefined')color=__UP_color__;if(color==="")color=gup("color");if(color==="")color=gup("up_color");if(color==="")color="#0f0";else{if(color.substring(0,1)!="#")color=decodeURIComponent(color);if(color.substring(0,1)!="#")color=decodeURIComponent(color);}var font=gup("font");if(font==="")font=gup("up_font");if(font==="")font="Andale Mono, monospace, Lucidatypewriter, Courier New, Courier";else font=decodeURIComponent(font);var bold=gup("bold");if(bold==="")bold=gup("up_bold");if(bold==="")bold=true;document.body.style.background=bg;document.body.style.textAlign="center";document.body.style.fontFamily=font;document.body.style.fontSize="1px";document.body.style.margin="0";document.body.style.padding="0";if(bold===true||bold==="true")document.body.style.fontWeight="bold";if(gup("debug")=="si")alert("color: "+color+"; bg: "+bg);function refreshClock(){var dobj=new Date();var apm="";var hh=dobj.getHours();var mm=dobj.getMinutes();var ss=dobj.getSeconds();var pre="";var post="";if(mode==2||mode==3||mode==4){apm=" am";if(hh==0){hh=12;apm=" am";}else if(hh==12)apm=" pm";else if(hh>12){apm=" pm";hh=hh%12;}}if(mode==4)apm="";if(mode==3){pre="<span style=\"white-space:nowrap;\">";post="</span>";}if(hh<10)hh="0"+hh;if(mm<10)mm="0"+mm;if(ss<10)ss="0"+ss;document.body.innerHTML=pre+"<a id=\"dwrClock\" href=\"http://www.dwebresources.com\" target=\"_blank\" style=\"text-decoration:none; color:"+color+";\">"+hh+":"+mm+":"+ss+apm+"</a>"+post;}function initClock(){var sample=[];sample[1]="<a id=\"dwrClock\" href=\"http://www.dwebresources.com\" target=\"_blank\" style=\"text-decoration:none; color:"+color+";\">88:88:88</a>";sample[2]="<a id=\"dwrClock\" href=\"http://www.dwebresources.com\" target=\"_blank\" style=\"text-decoration:none; color:"+color+";\">88:88:88 pm</a>";sample[3]="<span style=\"white-space:nowrap;\"><a id=\"dwrClock\" href=\"http://www.dwebresources.com\" target=\"_blank\" style=\"text-decoration:none; color:"+color+";\">88:88:88 pm</a></span>";sample[4]="<a id=\"dwrClock\" href=\"http://www.dwebresources.com\" target=\"_blank\" style=\"text-decoration:none; color:"+color+";\">88:88:88</a>";var i;document.body.innerHTML=sample[mode];var Width=document.compatMode==='CSS1Compat'&&!window.opera?document.documentElement.clientWidth:document.body.clientWidth;var Height=document.compatMode==='CSS1Compat'&&!window.opera?document.documentElement.clientHeight:document.body.clientHeight;for(i=2;i<300;i++){document.body.style.fontSize=i+"px";var xWithScroll=document.getElementById("dwrClock").offsetWidth;var yWithScroll=document.getElementById("dwrClock").offsetHeight;if(Width<=xWithScroll||Height<=yWithScroll)break;}document.body.style.fontSize=(i*0.98-1)+"px";refreshClock();setInterval(refreshClock,500);}initClock();