					var digit_images;		// The array of digits 0-9



					var image_base = "images/digits/tiny/";	// The directory where your digit images are located



					var image_type = ".gif";		// The format your digit images are stored as (.gif , .jpg , etc.)



					var image_height = 13;		// The height of all of your images



					var digit_width = 9;		// The width of your digits 0-9 images



					var clockDelay = 1234;		// The delay in milliseconds between updates. 



                    wasted = 0;



                    wasted_money = "00000000000"







					digits = new Array;



					for(count=0;count<wasted_money.length;count++)



					{



   						digits[count] = "blank";



					}







					function makeImageArray(length, ImageWidth, ImageHeight)



					{													



  						this.length = length;							



  						for ( i = 0; i < length; i++ )



						{



    						this[i] = new Image(ImageWidth, ImageHeight);



  						}



  						return this;



					}







					digit_images = new makeImageArray(10, digit_width, image_height);







					for ( i = 0; i < 10; i++ )



					{



						digit_images[i].src = image_base + i + image_type;



					}



                    



                    comma = new Image;



                    comma.src = image_base + "comma" + image_type;



                    dollar = new Image;



                    dollar.src = image_base + "dollar" + image_type;







                    document.write('<IMG NAME="dollarDefault"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit10"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit9"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="billionComma"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width/2 + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit8"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit7"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit6"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="millionComma"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width/2 + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit5"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit4"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit3"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="thousandComma"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width/2 + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit2"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit1"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



                    document.write('<IMG NAME="digit0"' + ' SRC="' + image_base + 'Tgreen-space' + image_type + '" WIDTH="' + digit_width + '" HEIGHT="' + image_height + '" BORDER="0">');



            



				function UpdateTicker()



				{



      				dateNow = new Date();



      				yearNow = dateNow.getYear();



      				monthNow = dateNow.getMonth();



            



    				days = dateNow.getDate();



      				hours = dateNow.getHours();



      				minutes = dateNow.getMinutes();



      				seconds = dateNow.getSeconds();







      				for (convMonth = 1;convMonth <= monthNow;convMonth++)



			        {



         				if (convMonth == 2) 



         				{



            				if ((yearNow % 4) == 0)



            				{



               					days += 29



            				}



            				else



            				{



               					days += 28



            				}



         				}



         				else if ((convMonth == 4) || (convMonth == 6) || (convMonth == 9) || (convMonth == 11))



         				{



             				days += 30



         				} 



         				else



         				{



            				days += 31



         				}



      				}



      



      				hours += (days * 24);



      				minutes += (hours * 60);



      				seconds += (minutes * 60);



      				wasted = Math.round(seconds * 1147.544824) 







					wasted_money = "";



                    wasted_money += wasted;







   						// Now assign the individual digits



  					digitVals = new Array();



  					for(count=0;count<wasted_money.length;count++)



  					{



						digitVals[wasted_money.length-(count+1)] = wasted_money.charAt(count)               



  					}    		







      					for (count=0;count<wasted_money.length;count++)



      					{



                           switch (count)



                           {



                              case 0 :



                                 document.digit0.src = digit_images[digitVals[count]].src



                                 break



                              case 1 :



                                 document.digit1.src = digit_images[digitVals[count]].src



                                 break



                              case 2 :



                                 document.digit2.src = digit_images[digitVals[count]].src



                                 break



                              case 3 :



                                 document.thousandComma.src = comma.src



                                 document.digit3.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 4)



                                 {



                                    document.digit4.src = dollar.src



                                 }



                                 break



                              case 4 :



                                 document.digit4.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 5)



                                 {



                                    document.digit5.src = dollar.src



                                 }



                                 break



                              case 5 :



                                 document.digit5.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 6)



                                 {



                                    document.digit6.src = dollar.src



                                 }



                                 break



                              case 6 :



                                 document.millionComma.src = comma.src



                                 document.digit6.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 7)



                                 {



                                    document.digit7.src = dollar.src



                                 }



                                 break



                              case 7 :



                                 document.digit7.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 8)



                                 {



                                    document.digit8.src = dollar.src



                                 }



                                 break



                              case 8 :



                                 document.digit8.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 9)



                                 {



                                    document.digit9.src = dollar.src



                                 }



                                 break



                              case 9 :



                                 document.billionComma.src = comma.src



                                 document.digit9.src = digit_images[digitVals[count]].src



                                 if (wasted_money.length = 10)



                                 {





                                    document.digit10.src = dollar.src



                                 }



                                 break



                              case 10 :



                                 document.digit10.src = digit_images[digitVals[count]].src



                                 document.dollarDefault.src = dollar.src



                                 break



                           }



     					}



   					



  					setTimeout("UpdateTicker()", clockDelay);



                    



				}   







                // Finally, start the ticker running



  				UpdateTicker();
