//------------------------------------------------------------------
//  getright.com navigation
//  Copyright Headlight Software, Inc.
//------------------------------------------------------------------

if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}


var homeShowing = false;
var aboutShowing = false;
var joinShowing = false;
var navtimer;


// revision 2
function showBuy() {
	hideAll();
	document.getElementById('BuyBtn').className='leftbuttonactive';
	document.getElementById('buymenu').className='visible';
}
function showDownload() {
	hideAll();
	document.getElementById('DownloadBtn').className='arrowbuttonactive';
	document.getElementById('downloadmenu').className='visible';
}
function showBenefit() {
	hideAll();
	document.getElementById('BenefitBtn').className='arrowbuttonactive';
	document.getElementById('benefitsmenu').className='visible';
}

function showSupport() {
	hideAll();
	document.getElementById('BenefitBtn').className='arrowbuttonactive';
	document.getElementById('supportmenu').className='visible';
}

function hideAll() {
	clearTimeout(navtimer);
	document.getElementById('BuyBtn').className='leftbutton';
	document.getElementById('DownloadBtn').className='arrowbutton';
	document.getElementById('BenefitBtn').className='arrowbutton';
	document.getElementById('AboutBtn').className='arrowbutton';
	document.getElementById('buymenu').className='hidden';
	document.getElementById('downloadmenu').className='hidden';
	document.getElementById('benefitsmenu').className='hidden';
	document.getElementById('supportmenu').className='hidden';
	return true;
}

function hideNav() {
	clearTimeout(navtimer);
	navtimer = setTimeout("hideAll();",700);
    return false;
}

function stopTimers() {
	clearTimeout(navtimer);
}





function doOnLoaded() {
   return true;
}


//------------------------------------------------------------------
// So any errors are absorbed without messages.
//------------------------------------------------------------------
function doOnError() {
   return true;
}

function handleClick() {
   setTimeout("doTimeout();", 3000);
}



