// JavaScript Document
<!--

var EndDate = new Date("March 30, 2050 06:00:00");
var StatusText = new String("Sign up now at our online store.  FRIENDS, FAMILY, AND SPECTATORS WELCOME!!!");
var pos = 0;
var updateTime = 0;

var imageArray = new Array(198);
imageArray[0]="0001.jpg";
imageArray[1]="0002.jpg";
imageArray[2]="0003.jpg";
imageArray[3]="Dave_sHemi001.jpg";
imageArray[4]="Picture-319.jpg";
imageArray[5]="0006.jpg";
imageArray[6]="0007.jpg";
imageArray[7]="0008.jpg";
imageArray[8]="0112.jpg";
imageArray[9]="0010.jpg";
imageArray[10]="0011.jpg";
imageArray[11]="0012.jpg";
imageArray[12]="0013.jpg";
imageArray[13]="0014.jpg";
imageArray[14]="0015.jpg";
imageArray[15]="0016.jpg";
imageArray[16]="0017.jpg";
imageArray[17]="0018.jpg";
imageArray[18]="0019.jpg";
imageArray[19]="0020.jpg";
imageArray[20]="0021.jpg";
imageArray[21]="0022.jpg";
imageArray[22]="0023.jpg";
imageArray[23]="0024.jpg";
imageArray[24]="0025.jpg";
imageArray[25]="0026.jpg";
imageArray[26]="0027.jpg";
imageArray[27]="0028.jpg";
imageArray[28]="0029.jpg";
imageArray[29]="0030.jpg";
imageArray[30]="0031.jpg";
imageArray[31]="0032.jpg";
imageArray[32]="0033.jpg";
imageArray[33]="0034.jpg";
imageArray[34]="0035.jpg";
imageArray[35]="0036.jpg";
imageArray[36]="0037.jpg";
imageArray[37]="0038.jpg";
imageArray[38]="0039.jpg";
imageArray[39]="0040.jpg";
imageArray[40]="0041.jpg";
imageArray[41]="0042.jpg";
imageArray[42]="0043.jpg";
imageArray[43]="0044.jpg";
imageArray[44]="0045.jpg";
imageArray[45]="0046.jpg";
imageArray[46]="0047.jpg";
imageArray[47]="0048.jpg";
imageArray[48]="0049.jpg";
imageArray[49]="0050.jpg";
imageArray[50]="0051.jpg";
imageArray[51]="0052.jpg";
imageArray[52]="0053.jpg";
imageArray[53]="0054.jpg";
imageArray[54]="0055.jpg";
imageArray[55]="0056.jpg";
imageArray[56]="0057.jpg";
imageArray[57]="0058.jpg";
imageArray[58]="0059.jpg";
imageArray[59]="0060.jpg";
imageArray[60]="0061.jpg";
imageArray[61]="0062.jpg";
imageArray[62]="0063.jpg";
imageArray[63]="0064.jpg";
imageArray[64]="0065.jpg";
imageArray[65]="0066.jpg";
imageArray[66]="0067.jpg";
imageArray[67]="0068.jpg";
imageArray[68]="0069.jpg";
imageArray[69]="0070.jpg";
imageArray[70]="0071.jpg";
imageArray[71]="0072.jpg";
imageArray[72]="0073.jpg";
imageArray[73]="0074.jpg";
imageArray[74]="0075.jpg";
imageArray[75]="0076.jpg";
imageArray[76]="0077.jpg";
imageArray[77]="0078.jpg";
imageArray[78]="0079.jpg";
imageArray[79]="0080.jpg";
imageArray[80]="0081.jpg";
imageArray[81]="0082.jpg";
imageArray[82]="0083.jpg";
imageArray[83]="0084.jpg";
imageArray[84]="0085.jpg";
imageArray[85]="0086.jpg";
imageArray[86]="0087.jpg";
imageArray[87]="0088.jpg";
imageArray[88]="0089.jpg";
imageArray[89]="0090.jpg";
imageArray[90]="0091.jpg";
imageArray[91]="0092.jpg";
imageArray[92]="0093.jpg";
imageArray[93]="0094.jpg";
imageArray[94]="0095.jpg";
imageArray[95]="0096.jpg";
imageArray[96]="0097.jpg";
imageArray[97]="0098.jpg";
imageArray[98]="0099.jpg";
imageArray[99]="0100.jpg";
imageArray[100]="0101.jpg";
imageArray[101]="0102.jpg";
imageArray[102]="0103.jpg";
imageArray[103]="0104.jpg";
imageArray[104]="0105.jpg";
imageArray[105]="0106.jpg";
imageArray[106]="0107.jpg";
imageArray[107]="0108.jpg";
imageArray[108]="0109.jpg";
imageArray[109]="0110.jpg";
imageArray[110]="0111.jpg";
imageArray[111]="0112.jpg";
imageArray[112]="0113.jpg";
imageArray[113]="0114.jpg";
imageArray[114]="0115.jpg";
imageArray[115]="0116.jpg";
imageArray[116]="0117.jpg";
imageArray[117]="0118.jpg";
imageArray[118]="0119.jpg";
imageArray[119]="0120.jpg";
imageArray[120]="0121.jpg";
imageArray[121]="0122.jpg";
imageArray[122]="0123.jpg";
imageArray[123]="0124.jpg";
imageArray[124]="0125.jpg";
imageArray[125]="0126.jpg";
imageArray[126]="1-159.jpg";
imageArray[127]="1-295.jpg";
imageArray[128]="2006-05-09_0009.jpg";
imageArray[129]="2006-05-09_0016.jpg";
imageArray[130]="2006-05-09_0033.jpg";
imageArray[131]="2006-05-09_0047.jpg";
imageArray[132]="2006-05-09_0049.jpg";
imageArray[133]="2006-05-09_0054.jpg";
imageArray[134]="2006-05-09_0065.jpg";
imageArray[135]="2006-05-09_0068.jpg";
imageArray[136]="2006-05-09_0092.jpg";
imageArray[137]="2006-05-09_0098.jpg";
imageArray[138]="2006-05-09_0112.jpg";
imageArray[139]="2006-05-09_0115.jpg";
imageArray[140]="2006-05-09_0117.jpg";
imageArray[141]="2006-05-09_0129.jpg";
imageArray[142]="2006-05-09_0134.jpg";
imageArray[143]="2006-05-09_0135.jpg";
imageArray[144]="68Dart7.jpg";
imageArray[145]="b3hemi_06_6_1.jpg";
imageArray[146]="Bill-Wiemans-prototype-70-H.jpg";
imageArray[147]="bs27v1_07.jpg";
imageArray[148]="CANYEH37.jpg";
imageArray[149]="CAY7U3AD.jpg";
imageArray[150]="Dave_sHemi001.jpg";
imageArray[151]="Dave_sHemi002.jpg";
imageArray[152]="Dave_sHemi003.jpg";
imageArray[153]="Dave_sHemi004.jpg";
imageArray[154]="DSC00479.jpg";
imageArray[155]="DSC00787.jpg";
imageArray[156]="DSC03251.jpg";
imageArray[157]="hemi-poster-new-copy.jpg";
imageArray[158]="kori-charger.jpg";
imageArray[159]="Mettler-Racing-Mats-2006.jpg";
imageArray[160]="Outlook.jpg";
imageArray[161]="Picture-221.jpg";
imageArray[162]="Picture-263.jpg";
imageArray[163]="Picture-283.jpg";
imageArray[164]="Picture-319.jpg";
imageArray[165]="Picture-369.jpg";
imageArray[166]="Picture-378.jpg";
imageArray[167]="Picture-435.jpg";
imageArray[168]="Picture-449.jpg";
imageArray[169]="start-line-1.jpg";
imageArray[170]="start-line-2_wheelstand.jpg";
imageArray[171]="US-Nationals-Monster-Mopar-.jpg";
imageArray[172]="US-Nationals-_-Monster-Mopa.jpg";
imageArray[174]="John-Grinwald.jpg";
imageArray[175]="Radford.jpg";
imageArray[176]="Radford2.jpg";
imageArray[177]="bud-king2.jpg";
imageArray[178]="NJ-Charger.jpg";
imageArray[179]="Vegas09047.jpg";
imageArray[180]="icca-1st-place.jpg";
imageArray[181]="icca-2nd-place.jpg";
imageArray[182]="icca-3rd-place.jpg";
imageArray[182]="071.jpg";
imageArray[183]="077.jpg";
imageArray[184]="087.jpg";
imageArray[185]="094.jpg";
imageArray[186]="096.jpg";
imageArray[187]="101.jpg";
imageArray[188]="105.jpg";
imageArray[189]="114.jpg";
imageArray[190]="121.jpg";
imageArray[191]="122.jpg";
imageArray[192]="124.jpg";
imageArray[193]="127.jpg";
imageArray[194]="131.jpg";
imageArray[195]="142.jpg";
imageArray[196]="150.jpg";
imageArray[197]="157.jpg";





var clockID = null;
var currentImage1 = (new Date).getSeconds()%imageArray.length;
//var currentImage1 = 42;

function openLink() {
	window.open("/2007/rotator_single.jsp?BIGIMG=/2007/images/cars/lg/"+imageArray[currentImage1],'PopUpPage','toolbar=1,location=1,status=1,scrollbars=1,width=600');
	//alert('HI');
}

function openCannery() {
	window.open("/2007/cannery_concert.shtml",'PopUpPage','toolbar=1,location=1,status=1,scrollbars=1,width=600');
	//alert('HI');
}

function openCannery2() {
	window.open("/2007/cannery_concert2.shtml",'PopUpPage','toolbar=1,location=1,status=1,scrollbars=1,width=600');
	//alert('HI');
}

function openAssemblyRequired() {
	window.open("http://www.stevemason.net");
}

function openNewWindowLink(s) {
	window.open(s);
}

function openNewWindowLinkSized(s) {
	window.open(s,'PopUpPage','width=600');
}


function showtime() {
	if(updateTime%12==0) {
		currentImage1=++currentImage1%imageArray.length;
		document.getElementById('rotImage').src="/2007/images/cars/"+imageArray[currentImage1];
	}
	
	if(updateTime%3==0) {
		var now = new Date();
		var Completed = new Date("April 2, 2007 00:00:00");
		if(now>=EndDate && now<=Completed) {
			document.getElementById('display').value = "HAPPENING RIGHT NOW!!!!";
		} else if(now > Completed) {
			document.getElementById('display').value = "";
		} else {
			var left = Math.round((EndDate.getTime() - now.getTime())/1000);
			var secInDay = 60*60*24;
			var secInHour = 60*60;
			var days = Math.floor(((left/60)/60)/24);
			left-=(days*secInDay);
			var hour = Math.floor((left/60)/60);
			left-=(hour*secInHour);
			var min = Math.floor(left/60);
			left-=min*60;
			document.getElementById('display').value = "" + days + " Days " + hour + " Hr" + (hour!=1?"s":"") + " " + min + " Min" + (min!=1?"s":"") + " " + left + " Sec" + (left!=1?"s":"");
		}
	}
	updateTime++;
	window.status=StatusText.substr(pos,StatusText.length) + "    " + StatusText.substr(0,pos);
	if(pos++>StatusText.length) {
		pos = 0;
	}
	if(updateTime%3==0) {
		clockID = setTimeout("showtime()",334);
	} else {
		clockID = setTimeout("showtime()",333);
	}
}
function stopClock() {
	clearTimeout(clockID);
}
function startClock() {
	showtime();
}
clockID = setTimeout("showtime()",1000);
//-->

