
//Preload Image Script
// array of "normal state" images
var normalImages = new Array('./img/int/a1.jpg', './img/int/a2.jpg', './img/int/a_all.jpg', './img/int/b1.jpg', './img/int/c1.jpg', './img/int/c2.jpg', './img/int/c_all.jpg', './img/int/d1.jpg', './img/int/e1.jpg', './img/int/f1.jpg', './img/int/info1a.jpg', './img/int/info1b.jpg', './img/int/info2.jpg', './img/int/info3.jpg', './img/int/info4.jpg', './img/int/info5.jpg', './img/int/info6.jpg');
// array of "hover state" images
var hoverImages = new Array('./img/int/a1_hilite.jpg', './img/int/a2_hilite.jpg', './img/int/b1_hilite.jpg', './img/int/c1_hilite.jpg', './img/int/c2_hilite.jpg', './img/int/d1_hilite.jpg', './img/int/e1_hilite.jpg', './img/int/f1_hilite.jpg', './img/int/info1a.jpg', './img/int/info1b.jpg', './img/int/info2.jpg', './img/int/info3.jpg', './img/int/info4.jpg', './img/int/info5.jpg', './img/int/info6.jpg');


function preloadImages() 
{
	var i=0;

	objImage = new Image();
//hover images
	for	(i=1; i<=hoverImages.length; i++)
	{
		objImage.src = hoverImages[i];
	}
//normal images
	for	(i=1; i<=normalImages.length; i++)
	{
		objImage.src = normalImages[i];
	}

}
//
//

//swap out image id change identifier = whichpic.href to id
function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').src = whichpic.id; 
	} 
}
// return to original image id
function showPic2 (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').src = "./img/int/inv3.jpg";
	} 
}
// Deployment 1a image one 
//swap out image id change identifier = whichpic.href to id
function showPic1a (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_one').src = whichpic.id;
		document.getElementById('placeholder').src = "./img/int/info1b.jpg";
	} 
}
// return to original image id
function showPic1b (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_one').src = "img/int/inv.gif";
		document.getElementById('placeholder').src = "./img/int/inv3.jpg";
	} 
}

// Deployment 1b image two 
//swap out image id change identifier = whichpic.href to id
function showPic2a (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_two').src = whichpic.id;
		document.getElementById('placeholder').src = "./img/int/info1a.jpg";
	} 
}
// return to original image id
function showPic2b (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_two').src = "./img/int/inv.gif";
		document.getElementById('placeholder').src = "./img/int/inv3.jpg";
	} 
}

// Data Acquisition 1a image three 
//swap out image id change identifier = whichpic.href to id
function showPic3a (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_three').src = whichpic.id;
		document.getElementById('placeholder').src = "./img/int/info3.jpg";
	} 
}
// return to original image id
function showPic3b (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_three').src = "./img/int/inv.gif";
		document.getElementById('placeholder').src = "./img/int/inv3.jpg";
	} 
}

// Data Acquisition 1b image four
//swap out image id change identifier = whichpic.href to id
function showPic4a (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_four').src = whichpic.id;
		document.getElementById('placeholder').src = "./img/int/info3.jpg";
	} 
}
// return to original image id
function showPic4b (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('i_four').src = "./img/int/inv.gif";
		document.getElementById('placeholder').src = "./img/int/inv3.jpg";
	} 
}

