	function showmenu(elmnt)
	{
		document.getElementById(elmnt).style.visibility="visible";
	}
	
	
	function hidemenu(elmnt)
	{
		document.getElementById(elmnt).style.visibility="hidden";
	}
	
	function allianceClick(elmnt)
	{
		//Set up the inner text of the alliances
		var ITAdescriptionParagraph="<div style='margin-left:8px;margin-right:8px;'>We provide strategic tax planning services, and representations of clients in resolving matters with tax collection agencies in the United States.</div><br><br>";
		var IPAAdvisorydescriptionParagraph = "<div style='margin-left:8px;margin-right:8px;'>We are an accomplished advisory firm dedicated to guiding emerging growth companies through successful equity investments, debt financing, mergers and acquisitions.</div><br><br>";
		var IPAAccountancydescriptionParagraph = "<div style='margin-left:8px;margin-right:8px;'>We are a premier professional firm comprised of CPAs and credentialed valuation professionals that provides business valuation and taxation services.</div><br><br>";
		var IBAdescriptionParagraph = "<div style='margin-left:8px;margin-right:8px;'></div><br><br>";
		
		
		//if the element is visible clear the inner html and hide it else set the inner html and show it
		if(document.getElementById(elmnt).style.visibility == "visible")
		{
			document.getElementById(elmnt).innerHTML = "<br>";
			hidemenu(elmnt);
		}
		else
		{
		switch(elmnt)
			{
				case 'ITAParagraph':
					document.getElementById(elmnt).innerHTML = ITAdescriptionParagraph;
					break;
					
				case 'IPAAdvisory':
					document.getElementById(elmnt).innerHTML = IPAAdvisorydescriptionParagraph;
					break;
				
				case 'IPAAccountancy':
					document.getElementById(elmnt).innerHTML = IPAAccountancydescriptionParagraph;
					break;
								
			}
			showmenu(elmnt);
		}
	}

	
	function sublink(submenu)
	{
		
		//set the menu variables to be shown
		var offerLink = "<div class='menu'><a href='/'>Home</a></div>";
		 offerLink += "<div class='menu'><a href='/consulting_process/diagnosis.asp'>The Business Analysis</a></div>";
		 offerLink += "<div class='menu'><a href='/business_concepts/index.asp'>Business Concepts</a></div>";
		 offerLink += "<div class='menu'><a href='/consulting_process/index.asp'>The Consulting Process</a></div>";
		 offerLink += "<div class='menu'><a href='/FAQ.asp'>FAQs</a></div>";
		 
		var aboutLink = "<div class='menu'><a href='/'>Home</a></div>";
		 aboutLink += "<div class='menu'><a href='/about_us/index.asp'>History</a></div>";
		 aboutLink += "<div class='menu'><a href='/about_us/honors_press.asp'>Honors</a></div>";
		 aboutLink += "<div class='menu'><a href='/about_us/code_of_ethics.asp'>Mission Statement</a></div>";
		 aboutLink += "<div class='menu'><a href='/about_us/milestones.asp'>Company Milestones</a></div>";
		 
		var clientLink = "<div class='menu'><a href='/'>Home</a></div>";
		 clientLink += "<div class='menu'><a href='/Clients/Industries.asp'>Industries</a></div>";
		 clientLink += "<div class='menu'><a href='/Clients/Capabilities.asp'>Capabilities</a></div>";
		 clientLink += "<div class='menu'><a href='/about_us/ClientBenefits.asp'>Client Benefits</a></div>";
		 clientLink += "<div class='menu'><a href='/CaseStudies/Index.asp'>Case Studies</a></div>";
		 clientLink += "<div class='menu'><a href='/cust/index.asp'>Testimonials</a></div>";
		 
		var pressLink = "<div class='menu'><a href='/'>Home</a></div>";
		 //pressLink += "<div class='menu'><a href='/PublishedArticles/index.asp'>Published Articles</a></div>";
		 
		var careerLink = "<div class='menu'><a href='/'>Home</a></div>";
		 careerLink += "<div class='menu'><a href='/careers/employeebenefits.asp'>Employee Benefits</a></div>";
		 careerLink += "<div class='menu'><a href='/careers/diversity.asp'>Diversity</a></div>";
		 careerLink += "<div class='menu'><a href='/EEO.asp'>Commited to Equal Employment</a></div>";
		 careerLink += "<div class='menu'><a href='/careers/careerFAQ.asp'>Career FAQ</a></div>";
		 
		 var allianceLink = "";

		//display the menu *****C3B183******
		switch(submenu)
		{
			case 'offerLink':
				//set the html text of the sublinks
				document.getElementById('sublinks').innerHTML = offerLink;
				
				//set the background color of the main links
				document.getElementById('offerLink').style.backgroundColor = '#F0F0E0';	
				document.getElementById('aboutLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('clientLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('pressLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('careerLink').style.backgroundColor = '#E0E0E0';
				
				//set the bottom border colors
				document.getElementById('offerLink').style.borderBottom = "2px solid #F0F0E0";	
				document.getElementById('aboutLink').style.borderBottom = "2px solid #fff";
				document.getElementById('clientLink').style.borderBottom = "2px solid #fff";
				document.getElementById('pressLink').style.borderBottom = "2px solid #fff";
				document.getElementById('careerLink').style.borderBottom = "2px solid #fff";
				break;
				
			case 'aboutLink':
				//set the html text of the sublinks
				document.getElementById('sublinks').innerHTML = aboutLink;
				
				//set the background color of the main links
				document.getElementById('offerLink').style.backgroundColor = '#E0E0E0';	
				document.getElementById('aboutLink').style.backgroundColor = '#F0F0E0';
				document.getElementById('clientLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('pressLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('careerLink').style.backgroundColor = '#E0E0E0';
				
				//set the bottom border colors
				document.getElementById('offerLink').style.borderBottom = "2px solid #fff";	
				document.getElementById('aboutLink').style.borderBottom = "2px solid #F0F0E0";
				document.getElementById('clientLink').style.borderBottom = "2px solid #fff";
				document.getElementById('pressLink').style.borderBottom = "2px solid #fff";
				document.getElementById('careerLink').style.borderBottom = "2px solid #fff";
				break;
			
			case 'clientLink':
				//set the html text of the sublinks
				document.getElementById('sublinks').innerHTML = clientLink;
				
				//set the background color of the main links
				document.getElementById('offerLink').style.backgroundColor = '#E0E0E0';	
				document.getElementById('aboutLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('clientLink').style.backgroundColor = '#F0F0E0';
				document.getElementById('pressLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('careerLink').style.backgroundColor = '#E0E0E0';
				
				//set the bottom border colors
				document.getElementById('offerLink').style.borderBottom = "2px solid #fff";	
				document.getElementById('aboutLink').style.borderBottom = "2px solid #fff";
				document.getElementById('clientLink').style.borderBottom = "2px solid #F0F0E0";
				document.getElementById('pressLink').style.borderBottom = "2px solid #fff";
				document.getElementById('careerLink').style.borderBottom = "2px solid #fff";
				break;

			case 'pressLink':
				//set the html text of the sublinks
				document.getElementById('sublinks').innerHTML = pressLink;
				
				//set the background color of the main links
				document.getElementById('offerLink').style.backgroundColor = '#E0E0E0';	
				document.getElementById('aboutLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('clientLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('pressLink').style.backgroundColor = '#F0F0E0';
				document.getElementById('careerLink').style.backgroundColor = '#E0E0E0';
				
				//set the bottom border colors
				document.getElementById('offerLink').style.borderBottom = "2px solid #fff";	
				document.getElementById('aboutLink').style.borderBottom = "2px solid #fff";
				document.getElementById('clientLink').style.borderBottom = "2px solid #fff";
				document.getElementById('pressLink').style.borderBottom = "2px solid #F0F0E0";
				document.getElementById('careerLink').style.borderBottom = "2px solid #fff";
				break;

			case 'careerLink':
				//set the html text of the sublinks
				document.getElementById('sublinks').innerHTML = careerLink;
				
				//set the background color of the main links
				document.getElementById('offerLink').style.backgroundColor = '#E0E0E0';	
				document.getElementById('aboutLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('clientLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('pressLink').style.backgroundColor = '#E0E0E0';
				document.getElementById('careerLink').style.backgroundColor = '#F0F0E0';
				
				//set the bottom border colors
				document.getElementById('offerLink').style.borderBottom = "2px solid #fff";	
				document.getElementById('aboutLink').style.borderBottom = "2px solid #fff";
				document.getElementById('clientLink').style.borderBottom = "2px solid #fff";
				document.getElementById('pressLink').style.borderBottom = "2px solid #fff";
				document.getElementById('careerLink').style.borderBottom = "2px solid #F0F0E0";	
				break;
				
		}
		
		
		if ((navigator.appVersion.indexOf("MSIE 5.5")!=-1) || (navigator.appVersion.indexOf("MSIE 5.01")!=-1)) 
		{			
			hgt = document.body.scrollHeight;
			
			masthgt = document.getElementById("masthead").scrollHeight;
			sihgt = document.getElementById("siteInfo").scrollHeight;

			t = document.getElementsByTagName("table");
			
			t[0].style.width = 720;
			t[1].style.width = 720;
			t[2].style.width = 720;
			
			document.getElementById("masthead").style.width = 560;
			document.getElementById("masthead").style.position = "absolute";
			document.getElementById("masthead").style.top = 155;
			
			wth = document.body.scrollWidth;
			mastLft = ((wth - 720)/2) + 180;
			
			document.getElementById("masthead").style.left = mastLft;
			
			masthgt = document.getElementById("masthead").scrollHeight;
			document.getElementById("siteInfo").style.position = "absolute";
			document.getElementById("siteInfo").style.width = 720;
			document.getElementById("siteInfo").style.left = ((wth - 720)/2);
			if (masthgt >= (hgt-410)){
				document.getElementById("siteInfo").style.top = masthgt + 165;
			}
			else
			{
				document.getElementById("siteInfo").style.top = hgt;
			}


		}	
		
	}
	
	function newwin(url)
	{
			window.open(url,'mywindow','width=600,height=760,toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes, resizable=yes,left=0,top=0,screenX=0,screenY=0')
	}
	
	function outsidesitewin(url)
	{
			window.open(url,'mywindow','toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes, resizable=yes,left=0,top=0,screenX=0,screenY=0')
	}	
