	dgc0 = new Image();dgc0.src = "../images/digitalclock/0.gif";
	dgc1 = new Image();dgc1.src = "../images/digitalclock/1.gif";
	dgc2 = new Image();dgc2.src = "../images/digitalclock/2.gif";
	dgc3 = new Image();dgc3.src = "../images/digitalclock/3.gif";
	dgc4 = new Image();dgc4.src = "../images/digitalclock/4.gif";
	dgc5 = new Image();dgc5.src = "../images/digitalclock/5.gif";
	dgc6 = new Image();dgc6.src = "../images/digitalclock/6.gif";
	dgc7 = new Image();dgc7.src = "../images/digitalclock/7.gif";
	dgc8 = new Image();dgc8.src = "../images/digitalclock/8.gif";
	dgc9 = new Image();dgc9.src = "../images/digitalclock/9.gif";
	dgcam= new Image();dgcam.src= "../images/digitalclock/am.gif";
	dgcpm= new Image();dgcpm.src= "../images/digitalclock/pm.gif";
	dgcc = new Image();dgcc.src = "../images/digitalclock/c.gif";
	
	function dotime()
	{ 
		theTimedgc=setTimeout('dotime()',1000);
		ddgc = new Date();
		
		daydgc = ddgc.getDay();
		mondgc = ddgc.getMonth();
		yeardc = ''+ddgc.getYear();
		
		datedgc = ddgc.getDate();
		
		if(datedgc < 10)
			datedgc = '0'+ddgc.getDate();			
		else 
			datedgc = ''+ddgc.getDate();	
			
		hrdgc= ddgc.getHours()+100;
		mndgc= ddgc.getMinutes()+100;
		sedgc= ddgc.getSeconds()+100;
		
		if(hrdgc==100){hrdgc=112;am_pmdgc='am';}
		else if(hrdgc<112){am_pmdgc='am';}
		else if(hrdgc==112){am_pmdgc='pm';}
		else if(hrdgc>112){am_pmdgc='pm';hrdgc=(hrdgc-12);}
		
		if(daydgc == 0){daydgc = 'sun';}
		else if(daydgc == 1){daydgc = 'mon';}
		else if(daydgc == 2){daydgc = 'tue';}
		else if(daydgc == 3){daydgc = 'wed';}
		else if(daydgc == 4){daydgc = 'thu';}
		else if(daydgc == 5){daydgc = 'fri';}
		else if(daydgc == 6){daydgc = 'sat';}
		else {daydgc = 'sun';}
		
		if(mondgc == 0){mondgc = 'jan';}
		else if(mondgc == 1){mondgc = 'feb';}
		else if(mondgc == 2){mondgc = 'mar';}
		else if(mondgc == 3){mondgc = 'apr';}
		else if(mondgc == 4){mondgc = 'may';}
		else if(mondgc == 5){mondgc = 'jun';}
		else if(mondgc == 6){mondgc = 'jul';}
		else if(mondgc == 7){mondgc = 'aug';}
		else if(mondgc == 8){mondgc = 'sep';}
		else if(mondgc == 9){mondgc = 'oct';}
		else if(mondgc == 10){mondgc = 'nov';}
		else if(mondgc == 11){mondgc = 'dec';}
		else {mondgc = 'jan';}
		
		totdgc=''+hrdgc+mndgc+sedgc;
		document.hr1.src = '../images/digitalclock/'+totdgc.substring(1,2)+'.gif';
		document.hr2.src = '../images/digitalclock/'+totdgc.substring(2,3)+'.gif';
		document.mn1.src = '../images/digitalclock/'+totdgc.substring(4,5)+'.gif';
		document.mn2.src = '../images/digitalclock/'+totdgc.substring(5,6)+'.gif';
		document.se1.src = '../images/digitalclock/'+totdgc.substring(7,8)+'.gif';
		document.se2.src = '../images/digitalclock/'+totdgc.substring(8,9)+'.gif';
		document.ampm.src= '../images/digitalclock/'+am_pmdgc+'.gif';
		document.day.src= '../images/digitalclock/'+daydgc+'.gif';
		document.date1.src= '../images/digitalclock/'+datedgc.substring(0,1)+'.gif';
		document.date2.src= '../images/digitalclock/'+datedgc.substring(1,2)+'.gif';
		document.month.src= '../images/digitalclock/'+mondgc+'.gif';
		document.year1.src= '../images/digitalclock/'+yeardc.substring(2,3)+'.gif';
		document.year2.src= '../images/digitalclock/'+yeardc.substring(3,4)+'.gif';
	}
	dotime();
