// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
var gSlideshowInterval = 5;
var gNumberOfImages = 10;
var gCurrentImage = -1;
gImageCapableBrowser = canManipulateImages();
setInterval("nextSlide()",gSlideshowInterval * 1000);

gImages = new Array(gNumberOfImages);
gImages[0] = "http://www.chryslercareers.com/images/product02_chrysler4.jpg";
gImages[1] = "http://www.chryslercareers.com/images/product02_jeep5.jpg";
gImages[2] = "http://www.chryslercareers.com/images/product02_dodge8b.jpg";
gImages[3] = "http://www.chryslercareers.com/images/product02_ram6.jpg";
gImages[4] = "http://www.chryslercareers.com/images/Plant1.jpg";
gImages[5] = "http://www.chryslercareers.com/images/product02_chrysler5.jpg";
gImages[6] = "http://www.chryslercareers.com/images/product02_dodge4.jpg";
gImages[7] = "http://www.chryslercareers.com/images/windTunnel5.jpg";
gImages[8] = "http://www.chryslercareers.com/images/product02_fiat3.jpg";
gImages[9] = "http://www.chryslercareers.com/images/product02_dodge6.jpg";


function canManipulateImages() {
	if (document.images) {
		return true;
	}
	else {
		return false;
	}
}

function loadSlide(imageURL) {
	if (gImageCapableBrowser) {
	      document.slide.src = imageURL;	           	       
		return false;
	}
	else {
		return true;
	}
}
function nextSlide() {
   
   //var rnd_no =    Math.floor(Math.random()*7);;
   
	gCurrentImage = eval(gCurrentImage + 1);
	if (gCurrentImage > 9) {
	    gCurrentImage = 0;
	}
	
	//loadSlide(gImages[gCurrentImage]);
	//loadSlide(gImages[rnd_no]);
	//alert (gCurrentImage);
	loadSlide(gImages[gCurrentImage]);
}




 function myDate() { var d = new Date(); var theMonthName=""; var theDayName=""; var theyear = d.getYear(); var themonth = d.getMonth() + 1; var thedate = d.getDate(); var theday = d.getDay(); if (themonth == "1") {theMonthName = "January";} if (themonth == "2") {theMonthName = "February";} if (themonth == "3") {theMonthName = "March";} if (themonth == "4") {theMonthName = "April";} if (themonth == "5") {theMonthName = "May";} if (themonth == "6") {theMonthName = "June";} if (themonth == "7") {theMonthName = "July";} if (themonth == "8") {theMonthName = "August";} if (themonth == "9") {theMonthName = "September";} if (themonth == "10") {theMonthName = "October";} if (themonth == "11") {theMonthName = "November";} if (themonth == "12") {theMonthName = "December";} if (theday == "0") {theDayName = "Sunday";} if (theday == "1") {theDayName = "Monday";} if (theday == "2") {theDayName = "Tuesday";} if (theday == "3") {theDayName = "Wednesday";} if (theday == "4") {theDayName = "Thursday";} if (theday == "5") {theDayName = "Friday";} if (theday == "6") {theDayName = "Saturday";} document.write(theDayName + " " + theMonthName + " " + thedate + ", " + theyear); }

