/*if ((navigator.userAgent.indexOf('iPhone') != -1) ||  (navigator.userAgent.indexOf('iPod') != -1)) {  
document.location = "http://www.totalfitness.com.au/iphone/";  
}  */
   
   
   <!-- START EXTERNAL POPUP FOR LEGALS -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!-- END EXTERNAL POPUP FOR LEGALS -->



function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
	// this is the way the standards work
	var style2 = document.getElementById(whichLayer).style;
	style2.display = style2.display? "":"inline";
	}
	else if (document.all)
	{
	// this is the way old msie versions work
	var style2 = document.all[whichLayer].style;
	style2.display = style2.display? "":"inline";
	}
	else if (document.layers)
	{
	// this is the way nn4 works
	var style2 = document.layers[whichLayer].style;
	style2.display = style2.display? "":"inline";
	}
}



function JumpToIt(list) {
    var newPage = list.options[list.selectedIndex].value
    if (newPage != "None") {
        location.href=newPage
    }
}


function h(d) {
document.getElementById(d).style.display = "none";

	
}
function show(d) {
document.getElementById(d).style.display = "block";

}


function clear(x) {
//alert(x);


	if (x == "menu1") {
//alert("got it");
	document.getElementById('menu1').id="menu1on";
		if (document.getElementById('menu2on')) {
			document.getElementById('menu2on').id="menu2";
		}
	
	}
	
	

	if (x == "menu2") {
	//alert("got it");
	document.getElementById('menu2').id="menu2on";
		if (document.getElementById('menu1on')) {
			document.getElementById('menu1on').id="menu1";
		}
	
	
	}
}


function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
	