
	//********************************************************
	//
	//	findObject() function
	//
	//	DESCRIPTION
	//	this function searches a parent container (such as a form
	//	or document) for an element and returns an object reference
	//	to that element.
	//
	//	INPUTS:
	//		strObjectName : String (Required)
	//			- the name of the object being sought
	//		objDoc : Object (Optional)
	//			- the name of the parent container being searched
	//
	//	OUTPUTS:
	//		Reference to the object
	//
	//********************************************************

	function findObject(strObjectName, objDoc)
		{

			var intQuestionMarkPosition;
			var i;
			var obj;


			// if no parent container is supplied, the default will be set to document level
			if (!objDoc)
				{
					objDoc = document;
				}


			// the following IF clauses evaluate several permutations of browser/syntax
			// to return the appropriate object reference
			if ((intQuestionMarkPosition = strObjectName.indexOf("?")) > 0 && parent.frames.length)
				{
					objDoc = parent.frames[strObjectName.substring(intQuestionMarkPosition + 1)].document;
					strObjectName = strObjectName.substring(0, intQuestionMarkPosition);
				}


			if (!(obj = objDoc[strObjectName]) && objDoc.all)
				{
					obj = objDoc.all[strObjectName];
				}


			for (i=0; !obj && i < objDoc.forms.length; i++)
				{
					obj = objDoc.forms[i][strObjectName];
				}


			for (i=0; !obj && objDoc.layers && i < objDoc.layers.length; i++)
				{
					obj = findObject(strObjectName, objDoc.layers[i].document);
				}


			if (!obj && objDoc.getElementById)
				{
					obj = objDoc.getElementById(strObjectName);
				}


			return obj;

		}
		
	
		
	//********************************************************
	//
	//	preloadImages() function
	//
	//	DESCRIPTION
	//	this function populates the selected images of a page
	//	en masse, rather than piecemeal
	//
	//	INPUTS:
	//		Dynamic list of arguments : String (Required)
	//
	//	OUTPUTS:
	//		None
	//
	//********************************************************

	function preloadImages()
		{

			var objDoc = document;
			var i;
			var j;
			var a = preloadImages.arguments;


			if(objDoc.images)
				{

					if(!objDoc.arrPreload)
						{
							objDoc.arrPreload = new Array();
						}

					j = objDoc.arrPreload.length;

					for(i=0; i < a.length; i++)
						{
							if (a[i].indexOf("#") != 0)
								{
									objDoc.arrPreload[j] = new Image;
									objDoc.arrPreload[j++].src = a[i];
								}
						}
				}
		}


	//********************************************************
	//
	//	restoreImage() function
	//
	//	DESCRIPTION
	//	this function returns a rollover image to its original source
	//
	//	INPUTS:
	//		None
	//
	//	OUTPUTS:
	//		None
	//
	//********************************************************

	function restoreImage()
		{

			var obj;
			var a = document.arrImage;

			obj = a[0];
			obj.src = obj.oSrc;

		}


	//********************************************************
	//
	//	swapImage() function
	//
	//	DESCRIPTION
	//	this function replaces an existing image with a new image
	//
	//	INPUTS:
	//		strOldImage : String (Required)
	//			- the name of the image being replaced
	//		strNewImage : String (Required)
	//			- the name of the new image
	//
	//	OUTPUTS:
	//		None
	//
	//********************************************************

	function swapImage(strOldImage, strNewImage)
		{

			var x = 0;
			var obj;


			document.arrImage = new Array;


			if ((obj = findObject(strOldImage)) != null)
				{
					document.arrImage[x++] = obj;
					if (!obj.oSrc)
						{
						 	obj.oSrc = obj.src;
						}
					obj.src = strNewImage;
				}
		}

		
	preloadImages('/img/pagelayout_about_roll.gif','/img/pagelayout_contact_roll.gif','/img/pagelayout_events_roll.gif','/img/pagelayout_members_roll.gif','/img/pagelayout_sponsors_roll.gif');
