<!--
// ---------------------- BEGIN: multi-purpose swap images
if (document.images) {
	// array of image names
	var imgAry = new Array("coaching_off.gif", "coaching_over.gif",
							"contactus_off.gif", "contactus_over.gif",
							"freevideo_off.gif", "freevideo_over.gif",
							"home_off.gif", "home_over.gif",
							"makemoneynow_off.gif", "makemoneynow_over.gif",
							"mission_off.gif", "mission_over.gif",
							"opportunity_off.gif", "opportunity_over.gif",
							"products_off.gif", "products_over.gif",
							"strategy_off.gif", "strategy_over.gif",
							"successStories_off.gif", "successStories_over.gif",
							"vipsection_off.gif", "vipsection_over.gif",
							"liveinterviews_off.gif", "liveinterviews_over.gif",
		// spanish					
							"coaching_sp_off.gif", "coaching_sp_over.gif",
							"contactus_sp_off.gif", "contactus_sp_over.gif",
							"freevideo_sp_off.gif", "freevideo_sp_over.gif",
							"makemoneynow_sp_off.gif", "makemoneynow_sp_over.gif",
							"mission_sp_off.gif", "mission_sp_over.gif",
							"opportunity_sp_off.gif", "opportunity_sp_over.gif",
							"products_sp_off.gif", "products_sp_over.gif",
							"strategy_sp_off.gif", "strategy_sp_over.gif",
							"successStories_sp_off.gif", "successStories_sp_over.gif",
							"vipsection_sp_off.gif", "vipsection_sp_over.gif");

	// path where images are located
	var imgLoc = "http://www.ewfiles.com/maximumsuccess/pics/temp03/";
	
	// loads all the images before the page is displayed so there is no delay when changing images
	for (var i=0; i < imgAry.length; i++) {	
		eval(stripExtention(imgAry[i]) + " = new Image();");
		eval(stripExtention(imgAry[i]) + ".src = \"" + imgLoc + imgAry[i] + "\";");
	}
}
function stripExtention(filename) {
	return filename.substring(0, filename.indexOf('.'));
}

function changeImage(source, newImage) {
    if (document.images) {
	eval("document." + source + ".src = " + stripExtention(newImage) + ".src;");
    }
}
// ---------------------- END: multi-purpose swap images
//-->