<!-- Begin

//Date Variables

dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

oneMinute = 60 * 1000;

oneHour = oneMinute * 60;

oneDay = oneHour * 24;

dateMS = 0;

dateString = "";

isDST = 0;



// determine the Time Zone offset

now = new Date();		// current date



// see if it's Daylight Savings Time

objDST_Start = new Date(DST_Start);

objDST_End = new Date(DST_End);



if (now >= objDST_Start) {

	// it's past Start, but is it before end, too?

	if (now <= objDST_End) {

	isDST = 1;

	}

}



//alert(isDST);



//if (dateString(now,true) >

// offset in hours, to adjust local cutoff time

timeZoneOffset = now.getTimezoneOffset()/60;



//alert(timeZoneOffset);	



// strip out the hour value and add the offset

iHour = parseInt(shipCutoff.substring(0,2));

// account for Daylight Savings Time - will Add 1 during DST

timeZoneOffset += isDST;



//alert(iHour);



iHour -= timeZoneOffset;



// if iHour is past cutoff in this time zone, it's tomorrow

if (now.getHours().toString() >= iHour) {

	//alert(iHour == now.getHours());

	dateMS = now.getTime() + oneDay;

	now.setTime(dateMS);

}



shipCutoff = iHour.toString() + ":00:00";

dateString = makeDateString(now,true);		// true returns full with time



//alert(dateString);



later = new Date(dateString);				// later is the date/time we're counting down to

dateString = makeDateString(now,false);		// false returns date only	



//alert(dateString);	



theDay = later.getDay()+1;



// still today's date when it gets here



// is it a good date?





//if (isHoliday(dateString)) {

	// increment by 1 day and check for weekend

//	dateMS = later.getTime() + oneDay;

//	later.setTime(dateMS);

	//alert(later.toLocaleString());

//}





if (theDay == 1) {

// it's a Sunday, so increment by 1

dateMS = later.getTime() + oneDay;

//alert(later.getTime());

later.setTime(dateMS);

}



if (theDay == 7) {

// it's a Saturday, so increment by 2

dateMS = later.getTime() + (oneDay * 2);

//alert(later.getTime());

later.setTime(dateMS);

}



//alert(makeDateString(later,false));

//alert(isHoliday(makeDateString(later,false)));



// see if it's a holiday and recheck for weekend

if (isHoliday(makeDateString(later,false))) {

dateMS = later.getTime() + oneDay;

//alert(later.getTime());

later.setTime(dateMS);



// reset for the new day

theDay = later.getDay()+1;



if (theDay == 1) {

// it's a Sunday, so increment by 1

dateMS = later.getTime() + oneDay;

//alert(later.getTime());

later.setTime(dateMS);

}



if (theDay == 7) {

// it's a Saturday, so increment by 2

dateMS = later.getTime() + (oneDay * 2);

//alert(later.getTime());

later.setTime(dateMS);

}

}





function makeDateString(objDate,bFull) {

	if (bFull) {

		return objDate.getMonth()+1 + "/" + objDate.getDate() + "/" + objDate.getFullYear() + " " + shipCutoff;

	} else {

		return objDate.getMonth()+1 + "/" + objDate.getDate() + "/" + objDate.getFullYear();

	}

}



function isHoliday(sDate) {

	for (var i = 1; i <= 12; i++) {

		if (sDate==holidays[i]) {

			return true;

		}

	}

	return false;

}



function showProps(obj, objName)  {

	var result = " "

	for (var i in obj) {

	result += objName + "." + i + " = " + obj[i] + "<br>"

	}

return result

}



//Created by DendE PhisH

function getTime() {

c1 = new Image(); c1.src = "images/1c.gif";

c2 = new Image(); c2.src = "images/2c.gif";

c3 = new Image(); c3.src = "images/3c.gif";

c4 = new Image(); c4.src = "images/4c.gif";

c5 = new Image(); c5.src = "images/5c.gif";

c6 = new Image(); c6.src = "images/6c.gif";

c7 = new Image(); c7.src = "images/7c.gif";

c8 = new Image(); c8.src = "images/8c.gif";

c9 = new Image(); c9.src = "images/9c.gif";

c0 = new Image(); c0.src = "images/0c.gif";

Cc = new Image(); Cc.src = "images/Cc.gif";

now = new Date();



hours = (later - now) / 1000 / 60 / 60;

hoursRound = Math.floor(hours);

minutes = (later - now) / 1000 /60 - (60 * hoursRound);



minutesRound = Math.floor(minutes);

seconds = (later - now) / 1000 - (60 * 60 * hoursRound) - (60 * minutesRound);

secondsRound = Math.round(seconds);



//document.images.c.src = Cc.src;

//document.images.cz.src = Cc.src;

//document.images.f.src = Cc.src;



if (secondsRound <= 9) {

document.images.g.src = c0.src;

document.images.h.src = eval("c"+secondsRound+".src");

}

else {

document.images.g.src = eval("c"+Math.floor(secondsRound/10)+".src");

document.images.h.src = eval("c"+(secondsRound%10)+".src");

}



if (minutesRound <= 9) {

document.images.d.src = c0.src;

document.images.e.src = eval("c"+minutesRound+".src");

}

else {

document.images.d.src = eval("c"+Math.floor(minutesRound/10)+".src");

document.images.e.src = eval("c"+(minutesRound%10)+".src");

}



if (hoursRound <= 9) {

document.images.y.src = c0.src;

document.images.z.src = eval("c"+hoursRound+".src");

}

else {

document.images.y.src = eval("c"+Math.floor(hoursRound/10)+".src");

document.images.z.src = eval("c"+(hoursRound%10)+".src");

}



newtime = window.setTimeout("getTime();", 1000);

}



function addbookmark()

{

bookmarkurl="http://www.nabreaker.com/"

bookmarktitle="North American Breaker Co."

if (document.all)

window.external.AddFavorite(bookmarkurl,bookmarktitle)

}

//  End -->