// JavaScript Document

<!--

function Comma(blastdays) {
	blastdays = '' + blastdays;
	if (blastdays.length > 3) {
		var mod = blastdays.length % 3;
		var output = (mod > 0 ? (blastdays.substring(0,mod)) : '');
		for (i=0 ; i < Math.floor(blastdays.length / 3); i++) {
			if ((mod == 0) && (i == 0)){
				output += blastdays.substring(mod+ 3 * i, mod + 3 * i + 3);
				}else{
					output+= ',' + blastdays.substring(mod + 3 * i, mod + 3 * i + 3);
				}
			}
			return output;
		}else{
			return blastdays;
		}
} the_blast = 1000212360000;

date_today = new Date();
secs_ago = Math.round((date_today.getTime() - the_blast)/ 1000);

blast_days = parseInt(secs_ago / 86400);
blast_hours = parseInt(((secs_ago - (blast_days * 86400)) / 3600));
blast_mins = parseInt((((secs_ago - (blast_days * 86400)) - (blast_hours * 3600)) / 60));
blast_secs = (((secs_ago - (blast_days * 86400)) - (blast_hours * 3600)) - (blast_mins * 60));
blast_days_display = ("" + Comma(blast_days) + " days, ");

if (blast_hours < 1){
	blast_hours = ("");
	} else {
		if (blast_hours > 1){
			blast_hours = ("" + blast_hours + " hours,");
			} else {
				blast_hours = ("" + blast_hours + " hour,");
			}
		}
	if (blast_mins < 1){
		blast_mins = ("");
		} else {
			if (blast_mins > 1){
				blast_mins = (" " + blast_mins + " minutes");
				} else {
					blast_mins = (" " + blast_mins + " minute");
				}
			}
	if (blast_secs < 1){
			blast_secs = (" and 1 second ago.");
			} else {
				if (blast_secs > 1){
					blast_secs = (" and " + blast_secs + " seconds ago.");
					} else {
						blast_secs = (" and " + blast_secs + " second ago.");
					}
				}
				
document.write('<p class="smltxtc"><img src="images/americode/flag.gif" width="120" height="90" alt="Pause to Remember September 11" class="border0"></p>');
document.write('<h5 style="color: #000066" class="txtc">PAUSE TO REMEMBER SEPTEMBER 11</h5>');
document.write('<td style="text-align: center" valign="middle">');
document.write('<img name="slidetwo" src="images/americode//101.gif" width="250" height="100" alt="Pause to Remember September 11" class="border0">');
document.write('<td style="text-align: center" >');
document.write('<img name="slideone" src="images/americode/start.gif" width="250" height="100" alt="Pause to Remember September 11" class="border0">');
document.write('');
document.write('<p class="txtc"><font style="font-size: 9pt; color: #000066"><strong><em>War was declared on the United States of America<br>');
document.write('' + blast_days_display + '' + blast_hours + '' + blast_mins + '' + blast_secs + '');
document.write('</em></strong></font></p>');
document.write('<p class="txtc"><img src="images/americode/eagle911.gif" alt="September 11: I Shall Remember Always" width="125" height="125"></p>');

function load_next() {
	next_image = new Image(250,100); next_image.src = ("images/americode/" + next_num + ".gif");
}
function change_img() {
	if (slide_num == 1){
		document.slideone.src = next_image.src; slide_num = 2;
		} else {
		document.slidetwo.src = next_image.src; slide_num = 1;
	}
}
function RunningTime() {
	num = num + 1;
	if (num > 140) {
		num = 101;
	}
	change_img();
	next_num = num + 1;
	if (next_num > 140) {
		next_num = 101;
	} load_next();
	var KeepItGoing=setTimeout("RunningTime()","10000");
}
	num = 101;
	next_num = 102;
	load_next();
	slide_num = 1;
	KeepItGoing=setTimeout("RunningTime()","10000");
	
// -->
