function MM_findObj(n, d) 
{
	var p,i,x;
	if(!d) 
		d=document; 
		
	if((p=n.indexOf("?"))>0&&parent.frames.length) 
	{
		d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);
	}
	
	if(!(x=d[n])&&d.all) 
		x=d.all[n]; 
	
	if(!(x=d[n])&&d.getElementById) 
		x=d.getElementById(n); 
		
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
		
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
		x=MM_findObj(n,d.layers[i].document); 
	return x;
}

function MM_showHideLayers() 
{
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3)
	{
		if ((obj=MM_findObj(args[i]))!=null) 
		{ 
			v=args[i+2];
			if (obj.style) 
			{ 
				obj=obj.style; 
				v=(v=='show')?'visible':(v='hide')?'hidden':v; 
			}
			obj.visibility=v; 
		}
	}
}

if (document.images)         // Active Images
{	
	JOIN_on = new Image();
	JOIN_on.src = "/images/BUTTON_JOIN_NOW_ON.gif";
	JOIN_off = new Image();
	JOIN_off.src = "/images/BUTTON_JOIN_NOW_OFF.gif";
	
	FPSTART_on = new Image();
	FPSTART_on.src = "/images/BUTTON_START_ON.gif";
	FPSTART_off = new Image();
	FPSTART_off.src = "/images/BUTTON_START_OFF.gif";
	
	BECOMEBLOGGER_on = new Image();
	BECOMEBLOGGER_on.src = "/images/become_blogger_on.gif";
	BECOMEBLOGGER_off = new Image();
	BECOMEBLOGGER_off.src = "/images/become_blogger_off.gif";
	
	START_on = new Image();
	START_on.src = "/images/leftnav_c/enterwin_button_on.gif";
	START_off = new Image();
	START_off.src = "/images/leftnav_c/enterwin_button_off.gif";
	
	LearnMore_on = new Image();
	LearnMore_on.src = "/images/leftnav_c/LM_button_on.gif";
	LearnMore_off = new Image();
	LearnMore_off.src = "/images/leftnav_c/LM_button_off.gif";
	
	tmm_on = new Image();
	tmm_on.src = "/images/leftnav_c/tmm_button_on.gif";
	tmm_off = new Image();
	tmm_off.src = "/images/leftnav_c/tmm_button_off.gif";
	
	fmm_on = new Image();
	fmm_on.src = "/images/leftnav_c/fmm_button_on.gif";
	fmm_off = new Image();
	fmm_off.src = "/images/leftnav_c/fmm_button_off.gif";
	
	email_on = new Image();
	email_on.src = "/images/leftnav_c/email_button_on.gif";
	email_off = new Image();
	email_off.src = "/images/leftnav_c/email_button_off.gif";
	
	STARTB_on = new Image();
	STARTB_on.src = "/images/leftnav_b/LTNAV_B_START_ON.gif";
	STARTB_off = new Image();
	STARTB_off.src = "/images/leftnav_b/LTNAV_B_START_OFF.gif";
	
	TNComp_on = new Image();
	TNComp_on.src = "/images/UPNAV_COMP_ON.gif";
	TNComp_off = new Image();
	TNComp_off.src = "/images/UPNAV_COMP_OFF.gif";
	
	TNFeatures_on = new Image();
	TNFeatures_on.src = "/images/UPNAV_FEATURES_ON.gif";
	TNFeatures_off = new Image();
	TNFeatures_off.src = "/images/UPNAV_FEATURES_OFF.gif";
	
	TNResources_on = new Image();
	TNResources_on.src = "/images/UPNAV_RES_ON.gif";
	TNResources_off = new Image();
	TNResources_off.src = "/images/UPNAV_RES_OFF.gif";
	
	TNTools_on = new Image();
	TNTools_on.src = "/images/UPNAV_TOOLS_ON.gif";
	TNTools_off = new Image();
	TNTools_off.src = "/images/UPNAV_TOOLS_OFF.gif";
	
	TNAbout_on = new Image();
	TNAbout_on.src = "/images/UPNAV_ABOUT_ON.gif";
	TNAbout_off = new Image();
	TNAbout_off.src = "/images/UPNAV_ABOUT_OFF.gif";
	
	TNFeatures2_on = new Image();
	TNFeatures2_on.src = "/images/UPNAV_FEATURES_ON_NM.gif";
	TNFeatures2_off = new Image();
	TNFeatures2_off.src = "/images/UPNAV_FEATURES_OFF_NM.gif";
	
	TNHome_on = new Image();
	TNHome_on.src = "/images/UPNAV_HOME_ON.gif";
	TNHome_off = new Image();
	TNHome_off.src = "/images/UPNAV_HOME_OFF.gif";
	
	
	FreeWorkout_on = new Image();
	FreeWorkout_on.src = "/work-out-plans/button_freeworkoutpla_sel.gif";
	FreeWorkout_off = new Image();
	FreeWorkout_off.src = "/work-out-plans/button_freeworkoutpla_UNsel.gif";
	
	FreeWorkoutTop_on = new Image();
	FreeWorkoutTop_on.src = "/work-out-plans/button_freeworkoutpla_sel.gif";
	FreeWorkoutTop_off = new Image();
	FreeWorkoutTop_off.src = "/work-out-plans/button_freeworkoutpla_UNsel.gif";
	
	PersonalTrainer_on = new Image();
	PersonalTrainer_on.src = "/online-personal-trainers/button_personaltrainer_sel.gif";
	PersonalTrainer_off = new Image();
	PersonalTrainer_off.src = "/online-personal-trainers/button_personaltrainer_UNse.gif";
	
	PersonalTrainerBot_on = new Image();
	PersonalTrainerBot_on.src = "/online-personal-trainers/button_personaltrainer_sel.gif";
	PersonalTrainerBot_off = new Image();
	PersonalTrainerBot_off.src = "/online-personal-trainers/button_personaltrainer_UNse.gif";
	
	
}

// Function to activate images.
function imgOn(imgName) 
{
	//alert(imgName + "_on.src");
	//return;
	if (document.images) 
	{
		document[imgName].src = eval(imgName + "_on.src");
	}
}
// Function to deactivate images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "_off.src");
        }
}