function btnMain_Click(){
	objBtnMain = document.getElementById('btnMain');
	
	objBtnMain.style.display = 'none';
	objBtnMain.style.position = 'absolute';
	objBtnMain.style.left = '30';
	objBtnMain.style.top = '30';
	objBtnMain.style.display = 'block';
} 

var ActiveTabName = false;
function toggleTab(SelectedTabName, TheURL)
{
	
	// Deactivate the old tab
	if(ActiveTabName && SelectedTabName != ActiveTabName) // They have chosen one in the past; And the selected one is not the active one
	{
		document.getElementById('tab' + ActiveTabName).className = 'TabInactive';
		document.getElementById('frame' + ActiveTabName).style.display = 'none';
		document.getElementById('menu' + ActiveTabName).style.display = 'none';
	}

	// Activate new tab
	if(SelectedTabName != ActiveTabName) // The selected tab isn't the already active tab
	{
		document.getElementById('tab' + SelectedTabName).className = 'TabActive';
		document.getElementById('frame' + SelectedTabName).style.display = 'block';
		document.getElementById('menu' + SelectedTabName).style.display = 'block';
	}
	
	// Get the source of the iframe
	TheFrame = frames['frame' + SelectedTabName];

	//  If the content hasn't already been loaded; Or the selected tab is the active one
	if((TheFrame.location.href == 'about:blank' || TheFrame.location.href == undefined || TheFrame.location.href == '') || SelectedTabName == ActiveTabName)
	{
		// Load the content
		TheFrame.location.href = TheURL;
	}
	
	// Store active tab name
	ActiveTabName = SelectedTabName;
}

function hoverTab(HoveredTabName)
{
	if(HoveredTabName != ActiveTabName) // The tab they hovered over is not the active tab
	{
		document.getElementById('tab' + HoveredTabName).className = 'TabHovered';
	}
}

function unHoverTab(unHoveredTabName)
{
	if(unHoveredTabName == ActiveTabName) // The tab they are moving away from is the Active Tab
	{
		document.getElementById('tab' + unHoveredTabName).className = 'TabActive';
	}
	else // The tab they are moving away from is not the active tab
	{
		document.getElementById('tab' + unHoveredTabName).className = 'TabInactive';
	}
}
function fuseNav(ActiveTabName)
  {
	  document.location.href="index.cfm?fuseAction=" + ActiveTabName;
  }
