
if (document.images)
{
	bgImg = new Image(); 
	bgImg.src = "../images/background.jpg";

	charityTextImg = new Image(); 
	charityTextImg.src = "../images/charity-awards.png";

	nationalDinnerImg = new Image(); 
	nationalDinnerImg.src = "../images/national-dinner.jpg";
	
	redCarpetImg = new Image(); 
	redCarpetImg.src = "../images/red-carpet.jpg";

	frontKenya = new Image(); 
	frontKenya.src = "../images/front-dave-kenya-children.jpg";

	frontTreasury = new Image(); 
	frontTreasury.src = "../images/front-treasury.jpg";

	pastParticipantsImg = new Image(); 
	pastParticipantsImg.src = "../images/past-participants.png";

	inspiringImg = new Image(); 
	inspiringImg.src = "../images/inspiring-home.jpg";

	homeImg = new Image(); 
	homeImg.src = "../images/home.jpg";

	historyImg = new Image(); 
	historyImg.src = "../images/history.jpg";

	futureImg = new Image(); 
	futureImg.src = "../images/future.jpg";

	charitiesSinceImg = new Image(); 
	charitiesSinceImg.src = "../images/charity-awards-bug.jpg";

	charitiesImg = new Image(); 
	charitiesImg.src = "../images/charities.jpg";

	celebritiesImg = new Image(); 
	celebritiesImg.src = "../images/celebrities.jpg";

	celebrityBgImg = new Image(); 
	celebrityBgImg.src = "../images/celebrity-bg.jpg";

	celebrityBgOverImg = new Image(); 
	celebrityBgOverImg.src = "../images/celebrity-bg-over.jpg";

	homeLinkImg = new Image(); 
	homeLinkImg.src = "../images/link-home.gif";

	homeLinkActiveImg = new Image(); 
	homeLinkActiveImg.src = "../images/link-home-active.gif";

	historyLinkImg = new Image(); 
	historyLinkImg.src = "../images/link-history.gif";

	historyLinkActiveImg = new Image(); 
	historyLinkActiveImg.src = "../images/link-history-active.gif";

	futureLinkImg = new Image(); 
	futureLinkImg.src = "../images/link-future.gif";

	futureLinkActiveImg = new Image(); 
	futureLinkActiveImg.src = "../images/link-future-active.gif";

	ford = new Image(); 
	ford.src = "../images/ford.jpg";

	king = new Image(); 
	king.src = "../images/king.jpg";

	reagan = new Image(); 
	reagan.src = "../images/reagan.jpg";

	johnson = new Image(); 
	johnson.src = "../images/johnson.jpg";

	gwbush = new Image(); 
	gwbush.src = "../images/gwbush.jpg";

	bush = new Image(); 
	bush.src = "../images/bush.jpg";

	carter = new Image(); 
	carter.src = "../images/carter.jpg";

	contactUs = new Image(); 
	contactUs.src = "../images/contact-us.png";

	contactUsOver = new Image(); 
	contactUsOver.src = "../images/contact-us-over.png";
	
	gallery1 = new Image();
	gallery1.src = "../images/fullscreen/1.jpg";

	gallery1 = new Image();
	gallery1.src = "../images/fullscreen/1.jpg";
	
	gallery2 = new Image();
	gallery2.src = "../images/fullscreen/2.jpg";

	gallery3 = new Image();
	gallery3.src = "../images/fullscreen/3.jpg";

	gallery4 = new Image();
	gallery4.src = "../images/fullscreen/4.jpg";
	
	gallery5 = new Image();
	gallery5.src = "../images/fullscreen/5.jpg";

	gallery6 = new Image();
	gallery6.src = "../images/fullscreen/6.jpg";

	gallery7 = new Image();
	gallery7.src = "../images/fullscreen/7.jpg";

	gallery8 = new Image();
	gallery8.src = "../images/fullscreen/8.jpg";

	gallery9 = new Image();
	gallery9.src = "../images/fullscreen/9.jpg";

	gallery10 = new Image();
	gallery10.src = "../images/fullscreen/10.jpg";
	
}

function swap(imgId, imgSrc) {

	document.getElementById(imgId).src = imgSrc;

}

var howOften = 5; //number often in seconds to rotate
var mainCurrent = 0; //start the counter at 0
var current1 = 0; //start the counter at 0
var current2 = 0; //start the counter at 0
var current3 = 0; //start the counter at 0

// place your images, text, etc in the array elements here

var groupMain = new Array();
    //groupMain[0]="<img alt=\"Red Carpet\" src=\"images/red-carpet.jpg\" />";
    groupMain[0]="<img alt=\"Ballroom\" src=\"images/ballroom-front.jpg\" />";
    groupMain[1]="<img alt=\"Dave and Kenya Children\" src=\"images/front-dave-kenya-children.jpg\" />";
    groupMain[2]="<img alt=\"Treasury Dept.\" src=\"images/front-treasury.jpg\" />";

var group1 = new Array();
    group1[0]="<img align=\"right\" src=\"images/reagan.jpg\" /><strong>The Reagan\'s</strong><br />Ronald &amp; Nancy Reagan<br />Honorary Chair";
    group1[1]="<img align=\"right\" src=\"images/johnson.jpg\" /><strong>Lady Bird Johson</strong><br />Lady Bird Johson<br />Honorary Chair";
    group1[2]="<img align=\"right\" src=\"images/ford.jpg\" /><strong>The Ford\'s</strong><br />Gerald &amp; Elizabeth Ford<br />Honorary Chair";

var group2 = new Array();
    group2[0]="<img align=\"right\" src=\"images/king.jpg\" /><strong>Coretta Scott King</strong><br />Coretta Scott King<br />Honorary Chair";
    group2[1]="<img align=\"right\" src=\"images/gwbush.jpg\" /><strong>The Bush\'s</strong><br />George W. &amp; Laura Bush<br />Honorary Chair";
    group2[2]="<img align=\"right\" src=\"images/bush.jpg\" /><strong>The Bush\'s</strong><br />George &amp; Barbara Bush<br />Honorary Chair";

var group3 = new Array();
    group3[0]="<img align=\"right\" src=\"images/bush.jpg\" /><strong>The Bush\'s</strong><br />George &amp; Barbara Bush<br />Honorary Chair";
    group3[1]="<img align=\"right\" src=\"images/carter.jpg\" /><strong>The Carter\'s</strong><br />Jimmy &amp; Rosalynn Carter<br />Honorary Chair";
    group3[2]="<img align=\"right\" src=\"images/king.jpg\" /><strong>Coretta Scott King</strong><br />Coretta Scott King<br />Honorary Chair";

function mainGraphic() {
    document.getElementById("main-graphic").innerHTML = groupMain[mainCurrent];
    mainCurrent = (mainCurrent==groupMain.length-1) ? 0 : mainCurrent + 1;
    setTimeout("mainGraphic()",howOften*1000);
}

function list1() {
    document.getElementById("group1").innerHTML = group1[current1];
    current1 = (current1==group1.length-1) ? 0 : current1 + 1;
    setTimeout("list1()",howOften*1000);
}

function list2() {
    document.getElementById("group2").innerHTML = group2[current2];
    current2 = (current2==group2.length-1) ? 0 : current2 + 1;
    setTimeout("list2()",howOften*1000);
}

function list3() {
    document.getElementById("group3").innerHTML = group3[current3];
    current3 = (current3==group3.length-1) ? 0 : current3 + 1;
    setTimeout("list3()",howOften*1000);
}

function startThem() {
	list1();
	list2();
	list3();
	mainGraphic();
}
