var browseType;
var leftBttn1, leftBttn2, leftBttn3, leftBttn4, leftBttn5;

if (document.layers) {browseType=0;}
if( document.getElementById )  {browseType=1;}
if (document.all) {browseType=2;}

	function showText(bttnNum)
	{
		doFadeMainText(bttnNum);
		
		document.getElementById("Sidemenu1_ImageDown1").src = "images/menu-left.jpg";
		document.getElementById("Sidemenu1_ImageDown2").src = "images/menu-left.jpg";
		document.getElementById("Sidemenu1_ImageDown3").src = "images/menu-left.jpg";
		document.getElementById("Sidemenu1_ImageDown4").src = "images/menu-left.jpg";
		document.getElementById("Sidemenu1_ImageDown5").src = "images/menu-left.jpg";
		if( bttnNum == 1 ) document.getElementById("Sidemenu1_ImageDown1").src = "images/menu-left-Selected.jpg";
		if( bttnNum == 2 ) document.getElementById("Sidemenu1_ImageDown2").src = "images/menu-left-Selected.jpg";
		if( bttnNum == 3 ) document.getElementById("Sidemenu1_ImageDown3").src = "images/menu-left-Selected.jpg";
		if( bttnNum == 4 ) document.getElementById("Sidemenu1_ImageDown4").src = "images/menu-left-Selected.jpg";
		if( bttnNum == 5 ) document.getElementById("Sidemenu1_ImageDown5").src = "images/menu-left-Selected.jpg";

		return;
	}

	function init() 
	{
		if (browseType == 1)
		{
			leftBttn1 = document.images.bttn1;
			leftBttn2 = document.images.bttn2;
			leftBttn3 = document.images.bttn3;
			leftBttn4 = document.images.bttn4;
			leftBttn5 = document.images.bttn5;
		}
		else if (browseType == 2) 
		{
			leftBttn1 = document.all("bttn1");
			leftBttn2 = document.all("bttn2");
			leftBttn3 = document.all("bttn3");
			leftBttn4 = document.all("bttn4");
			leftBttn5 = document.all("bttn5");
		}

		setTimeout('doFadeMainText(1)',200);
		setTimeout('doFadeImage()',1200);
	}

	function openNewWindow(pgnew) 
	{
		mywin = top.open(pgnew, "ApexConnex", "toolbar=0,scrollbars=1,location=0,menubar=no,status=no,resizable=1,height=690,width=660,top=100,left=100");
		mywin.location = pgnew;
	}
	
	function alertMe(myText)
	{
		alert(myText);
	}
	
	function doFadeImage()
	{
		var el = document.getElementById("2GuysPic");
		if (browseType == 2)
		{
			el.style.filter = "progid:DXImageTransform.Microsoft.Fade(duration=2)";
			el.filters[0].apply();
		}
		el.style.visibility = "visible";
		
		if (browseType == 2)
			el.filters[0].play();
	}

	function doFadeMainText(whichMenu)
	{
		var el = document.getElementById("mainTextArea");

		if (browseType == 2)
		{
			el.style.filter = "progid:DXImageTransform.Microsoft.Fade(duration=1)";
			el.filters[0].apply();
		}

		if( whichMenu == 1 )
			el.innerHTML = "<span class=\"subSubTitleText\">What We Do</span><BR><br>" +
					"ApexConnex is: Your Trusted Partner in Software Design and<br>" +
					"Development.&nbsp;&nbsp;We develop easy-to-use web and windows<br>" +
					"applications based on client specifications.&nbsp;&nbsp;We <br>" +
					"have created <a href=\"clients.html?client=GFS\" onmouseover=\"window.status='';return true\">" +
					"	<strong>MS Windows databases</strong></a> and <br>" +
					"<a href=\"clients.html?client=ConferenceConnex\" onmouseover=\"window.status='';return true\">" +
					"	<strong>Internet applications</strong></a>, including some <br>" +
					"great &nbsp;<strong><a href=\"samples.html\" onmouseover=\"window.status='';return true\">websites</a></strong>." +
					"&nbsp;View some <a href=\"clients.html\" onmouseover=\"window.status='';return true\"><strong> more</strong></a><br>" +
					"examples.<br><br>" +
					"By building thoughtful client relationships <br>" +
					"and by utilizing thorough, and Agile,<br>" +
					"product development procedures, we <br>" +
					"have reached the Apex of software <br>" +
					"design and development.<br><br>" +
					"<span class=\"subSubTitleText\">Our Philosophy</span><br><br>" +
					"We believe in being honest and<br>" +
					"doing the right thing for<br>" +
					"our clients. We believe <br>" +
					"that the only way we can <br>" +
					"succeed is when our <br>" +
					"clients succeed!";
		else if( whichMenu == 2 )
			el.innerHTML = "<span class=\"subSubTitleText\">Education and Experience</span><BR><BR>" +
					"<strong>Degrees:</strong> We have degrees in computer science, information management, <br>" +
					"business/finance and math. Previous employment has included companies such as:<br>" +
					"IBM, Intel, Novell, Ameritech, and many more.<br><br>" +
					"<strong>Integration:</strong> We have extensive experience <br>" +
					"working with APIs from Microsoft, Novell, <br>" +
					"Sun, etc.<br><br>" +
					"<strong>Tools:</strong> We've worked with leading develop-<br>" +
					"ment tools such as Microsoft Visual Studio<br>" +
					".NET 2005/2008 and Borland's Delphi.<br><br>" +
					"<strong>Languages:</strong> C#, Java, Delphi, etc.<br><br>" +
					"<strong>Databases:</strong> SQL Server, Advantage, etc.<br><br>" +
					"<strong>Standards:</strong> .NET, SQL, XHTML, XML,<br>" +
					"JSP, ASP, JDBC, JavaScript etc.<br><br>" +
					"<strong>Operating Systems:</strong> Windows,<br>" +
					"Unix and NetWare.";
		else if( whichMenu == 3 )
			el.innerHTML = "<span class=\"subSubTitleText\">Why Outsource Software Development Locally</span>" +
					"<BR><BR>ApexConnex can help you focus on your core business when<br>" +
					"you locally outsource web and Windows software<br>" +
					"development to a trusted partner &mdash; ApexConnex.<br>" +
					"We provide <a href=\"clients.html\" onmouseover=\"window.status='';return true\"><strong>services</strong></a> " +
					"ranging from e-commerce<br>websites to Inventory management software." +
					"<br><br>Outsourcing your software development" +
					"<br>to ApexConnex can bring great<br>" +
					"dividends. Click on the articles<br>" +
					"below to learn more:<br><br>" +
					"<a href=\"http://www.informationweek.com/story/IWK20020110S0010\" target=\"web resource\"" +
					"	class=\"mainTextBold\">&deg; Outsourcing Grows</a><BR>" +
					"<a href=\"http://www.informationweek.com/story/IWK20020614S0003\" target=\"web resource\"" +
					"	class=\"mainTextBold\">&deg; P&G To Outsource 80%</a><BR>" +
					"<a href=\"http://www.cfo.com/article/1,5309,6634%7C0%7CM%7C162%7C,00.html\" target=\"web resource\"" +
					"	class=\"mainTextBold\">&deg; Companies offloading</a><BR>" +
					"<a href=\"http://www.outsourcing-law.com/why_should_we_outsource.htm\" target=\"web resource\"" +
					"	class=\"mainTextBold\">&deg; Why Should We Outsource?</a><BR>" +
					"<a href=\"http://www.advisor.com/Articles.nsf/aid/CHOWE01\" target=\"web resource\" class=\"mainTextBold\">" +
					"	&deg; Outsource E-Commerce?</a><BR>" +
					"<a href=\"http://www.intouch-inc.com/article.asp?ARTICLEID=52\" target=\"web resource\"" +
					"	class=\"mainTextBold\">&deg; Should we outsource?</a><BR>" +
					"<a href=\"http://www.ncr.com/repository/articles/services/outsourcing_it_svcs.htm\" target=\"web resource\"" +
						"class=\"mainTextBold\">&deg; IT Services Outsourcing</a><BR>";
		else if( whichMenu == 4 )
			el.innerHTML = "<span class=\"subSubTitleText\">In-depth Consulting and Complete Product Design</span><BR><br>" +
					"<strong>Investing In You</strong><br>" +
					"ApexConnex invests time and resources early<br>" +
					"in each project to design the right solution<br>" +
					"to meet your objectives. Whether you need<br>" +
					"a web application enabled for eCommerce<br>" +
					"or a suite of Windows applications to<br>" +
					"manage your business, we'll invest<br>" +
					"the time to help your team succeed.<br><br>" +
					"<strong>Communicating With You</strong><br>" +
					"ApexConnex takes the time<br>" +
					"necessary to understand<br>" +
					"your project and design<br>" +
					"the right solution to meet<br>" +
					"your objectives. Experience<br>" +
					"shows that satisfied clients<br>" +
					"come from relationships that<br>" +
					"communicate well and<br>" +
					"are solution oriented.";
		else
			el.innerHTML = "<span class=\"subSubTitleText\">Application Development</span><BR><br>" +
					"<strong>Great Web Applications</strong><br>" +
					"ApexConnex develops easy-to-use web<br>" +
					"applications that provide eCommerce<br>" +
					"and information distribution. Some<br>" +
					"of these web applications have<br>" +
					"literally been used the world<br>" +
					"over. See our partial list of<br>" +
					"customers by clicking on<br>" +
					"our <a href=\"clients.html\" onmouseover=\"window.status='';return true\">Client page</a>.<br><br>" +
					"<strong>Great Windows Applications</strong><br>" +
					"ApexConnex creates app-<br>" +
					"lications that provide<br>" +
					"increased efficiency to<br>" +
					"your business and added<br>" +
					"security to PCs and across<br>" +
					"the Internet/Intranet. See<br>" +
					"our <a href=\"clients.html\" onmouseover=\"window.status='';return true\">Client page</a> for a<br>" +
					"few work examples.";
			
		if (browseType == 2)
			el.filters[0].play();
	}

	function textCounter(field, maxlimit) 
	{
		if (field.value.length > maxlimit)
		{
			field.value = field.value.substring(0, maxlimit);
			alert('You have reached the maximum length of this field.');
		}
	}
