/*	BEGIN CONFIGURATION SECTION: */

/* Initialize array to hold thumb IDs, the
*  path to the enlargement file and 
*  the enlarement's dimensions.
********************************************/
var arImages = new Array();
arImages['one'] = ['images/why-go/a1.jpg', 390, 281];
arImages['two'] = ['images/why-go/b1.jpg', 390, 281];
arImages['three'] = ['images/why-go/c1.jpg', 390, 281];
arImages['four'] = ['images/why-go/d1.jpg', 390, 281];
arImages['five'] = ['images/why-go/e1.jpg', 390, 281];
arImages['six'] = ['images/why-go/f1.jpg', 390, 281];
arImages['seven'] = ['images/why-go/g1.jpg', 390, 281];
arImages['eight'] = ['images/why-go/h1.jpg', 187, 281];
arImages['nine'] = ['images/why-go/i1.jpg', 219, 281];
arImages['ten'] = ['images/why-go/j1.jpg', 187, 281];
arImages['eleven'] = ['images/why-go/k1.jpg', 175, 281];
arImages['twelve'] = ['images/why-go/l1.jpg', 187, 281];
arImages['thirteen'] = ['images/why-go/m1.jpg', 390, 281];
arImages['fourteen'] = ['images/why-go/n1.jpg', 390, 281];
arImages['fifteen'] = ['images/why-go/o1.jpg', 390, 281];

/*	Initialize target ID variable.
********************************************/
var targetID = 'largeImage';

/*	END CONFIGURATION SECTION :: DO NOT EDIT BELOW THIS LINE */


/*	After body loads, 
*   begin preloading images into global:
*********************************************/
window.onload = function ()
{
	// Load image sources.
	if ( document.images && document.getElementById && arImages ) {

		// Loop through images array, creating and
		// loading each thumb's associated target image.
		for( ndxThumb in arImages ) {

			if( document.getElementById(ndxThumb) ) {

				arImages[ndxThumb][3] = new Image(arImages[ndxThumb][1], arImages[ndxThumb][2]);
				arImages[ndxThumb][3].src = arImages[ndxThumb][0];
			}
		}
	}

	// Attach onclick event; check required properties
	// and methods.
	if( document.getElementById && arImages ) {

		// Get the target.
		if( document.getElementById( targetID ) ) {
			var targetImg = document.getElementById( targetID );

			// Loop through the thumbs, attaching onclick event.
			for( ndxThumb in arImages ) {

				if( document.getElementById(ndxThumb) ) {
					// Identify thumbnail.
					var curThumb = document.getElementById( ndxThumb );

					// Attach onclick function.
					curThumb.onclick = function( ) 
					{
					targetImg.src = arImages[this.id][3].src;
					}
				}
			}
		}
	}

	// Attach mouseover event for Suckerfish menu.
	if (window.attachEvent) {
		var lis = document.getElementById("navmenu").getElementsByTagName("LI");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() 
			{
				this.className+=" iehover";
			}
			lis[i].onmouseout=function() 
			{
				this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
		}
	}
}