cDate = Class.create();
cDate.prototype = {

	initialize: function( Days, Months ) {
		if( !Days ) return;
		var aPs = Days.getElementsByTagName( "p" );
		if( !aPs.length ) return;
		this.aDays = aPs[0].innerHTML.split( "," );
		if( this.aDays.length != 7 ) return;

		if( !Months ) return;
		var aPs = Months.getElementsByTagName( "p" );
		if( !aPs.length ) return;
		this.aMonths = aPs[0].innerHTML.split( "," );
		if( this.aMonths.length != 12 ) return;

		Days.parentNode.removeChild( Days );
		Months.parentNode.removeChild( Months );

		this.calcNow();
	},
	
	calcNow: function() {
		var dt = new Date();
		this.innerHTML = this.aDays[ dt.getDay() ] + " " + dt.getDate() + " " + this.aMonths[ dt.getMonth() ] + " " + dt.getFullYear()
		setTimeout( "document.getElementById( '" + this.id + "' ).calcNow()", 10000 );
	}	
	
}

cTime = Class.create();
cTime.prototype = {

	initialize: function() {
		this.calcNow();
	},
	
	calcNow: function() {
		var dt = new Date();
		this.innerHTML = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
		setTimeout( "document.getElementById( '" + this.id + "' ).calcNow()", 1000 );
	}	
	
}

