// Clock Script
function class_clock(b,w,h,d,m,g,z) {
	this.b=b;this.w=w;this.h=h;this.d=d;this.g=g;this.z=z;this.o='';
	if (m==1) this.o+=doDate("W0",", ","M0"," ","D0",", ","Y0","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
}

function KW_doClock(a) {
	d=document;
	t=new Date();
	p="";
	dClock="";
	if (d.layers) d.wrapClock.visibility="show";
	tD=(t.getTimezoneOffset()-(clock.z*60))*clock.g;
	t.setMinutes(tD+t.getMinutes());
	h=t.getHours();
	m=t.getMinutes();
	s=t.getSeconds();
	if (clock.h) {
		p=(h>11)?"PM":"AM";
		h=(h>12)?h-12:h;
		h=(h==0)?12:h;
	}
	if (clock.d) {
		m=(m<=9)?"0"+m:m;
		s=(s<=9)?"0"+s:s;
	}
	dClock = clock.o+h+':'+m+':'+s+' '+p;
	if (a) {
		d.write(dClock);
	}
	if (d.layers) {
		wc = document.wrapClock;
		lc = wc.document.activeClock;
		lc.document.write(dClock);
		lc.document.close();
	}
	else if (d.all) {
		activeClock.innerHTML = dClock;
	}
	else if (d.getElementById) {
		d.getElementById("activeClock").innerHTML = dClock;
	}
	if (!a) setTimeout("KW_doClock()",1000);
}

function doDate() {
	var t=new Date(),a=doDate.arguments,str="",i,a1,lang="1";
	var month=new Array('January','Jan', 'February','Feb', 'March','Mar', 'April','Apr', 'May','May', 'June','Jun', 'July','Jul', 'August','Aug', 'September','Sep', 'October','Oct', 'November','Nov', 'December','Dec');
	var tday= new Array('Sunday','Sun','Monday','Mon', 'Tuesday','Tue', 'Wednesday','Wed','Thursday','Thr','Friday','Fri','Saturday','Sat');
	for(i=0;i<a.length;i++) {
		a1=a[i].charAt(1);
		switch (a[i].charAt(0)) {
			case "M":
				if ((Number(a1)==3) && ((t.getMonth()+1)<10)) str+="0";
				str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];
				break;
			case "D":
				if ((Number(a1)==1) && (t.getDate()<10)) str+="0";
				str+=t.getDate();
				break;
			case "Y":
				str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);
				break;
			case "W":
				str+=tday[t.getDay()*2+Number(a1)];
				break;
			default:
				str+=unescape(a[i]);
		}
	}
	return str;
}


// scroller Script
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvS3(v1){//v1.2
var v2=MM_findObj(v1);if (!v2){this.x=this.y=this.h=this.w=0;return;}var v3,v4,v5,v6,v7=(document.layers)?v2:v2.style;v3=isNaN(parseInt(v7.left))?v2.offsetLeft:parseInt(v7.left);v4=isNaN(parseInt(v7.top))?v4=v2.offsetTop:parseInt(v7.top);if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}else {v5=v6=0;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}

function flvS8(v1,v2,v3){//v1.0
var v4=(document.layers)?v1:v1.style;var v5=flvS5();eval("v4.left='"+v2+v5+"'");eval("v4.top='"+v3+v5+"'");}

function flvS5(){//v1.0
var v1=((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1)&&(!window.opera))?"px":"";return v1;}

function flvXAS1(){
var v1=arguments,v2=v1.length,v3='AutoScrollContainer',v4='AutoScrollContent';var v5=MM_findObj(v3),v6=MM_findObj(v4);if (!v5){return;}if (v5.XAS1!=null){clearTimeout(v5.XAS1);}var v7=(v2>0)?parseInt(v1[0]):1;if (v7){var v8=(v2>1)?parseInt(v1[1]):1,v9=(v2>2)?parseInt(v1[2]):50,v10=(v2>3)?parseInt(v1[3]):1;var v11=new flvS3(v3),v12=new flvS3(v4);var v13=v12.x,v14=v12.y,v15=0,v16=0;if (v10==1){var v17=-1*v12.h;v15=v12.x;if (v14>=v17){v16=v12.y-v8;}else {v16=v11.h;}}else {var v18=-1*v12.w;v16=v12.y;if (v13>=v18){v15=v12.x-v8;}else {v15=v11.w;}}flvS8(v6,v15,v16);v5.XAS1=setTimeout("flvXAS1("+v7+","+v8+","+v9+","+v10+")",v9);}}
