/*
Functions to enable rollover images.
In order for these to work each image requiring a rollover must have a name to be compatible with as many browser DOM's as poosible especially IE3 in a Mac.	*/


// No point in any of these functions if the `Image' object isn't supported by the browser's DOM
if (document.images)	{	

/* The filenames of the images to be downloaded (and cached) are stored in `rollover_images_array'
	For each element in the array, a new image object is created with it's `src' property being the filename from the array. These should all be stored in the cache (presuming caching is enabled).
	Only the images that will appear `onMouseOver' (the button down) need to be preloaded.
	*/
function preload_images()	{
	var rollover_images_array = new Array('/joinusd.gif','/homed.gif','/campaignsd.gif','/aboutusd.gif','/contentsd.gif','/eventsd.gif','/searchd.gif');
	for(i = 0; i < rollover_images_array.length; i++)		{
   		var rollover_image = new Image();
		rollover_image.src = rollover_images_array[i];
	}
}

function image_swap(image_name, image_url){
	// compatability with IE3 for the Mac.
	var objStr,obj;
	objStr = 'document.' + daImage;
	obj = eval(objStr);
	// replace the `src' property of the object
	obj.src = image_url;
}

}	// closing bracket of  `if (document.images)'


/*
function MM_changeProp(objStrNS,objStrIE,theProp,theValue) {
	var NS = (navigator.appName == 'Netscape');
	var objStr = (NS)?objStrNS:objStrIE;
	if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) || (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
		var obj = eval(objStr);
		if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
			eval(objStr+'.'+theProp + '="'+theValue+'"');
		}
	}
}

function MM_preloadImages() {
	if (document.images) {
		var imgFiles = MM_preloadImages.arguments;
		var preloadArray = new Array();
		for (var i=0; i<imgFiles.length; i++) {
			preloadArray[i] = new Image;
			preloadArray[i].src = imgFiles[i];
		}
	}
}
*/