/*
The first color code is the outside of the rounded edge,
the second number is the inside of the rounded edge.
*/

window.onload=function(){
Nifty("div#title","top br fixed-height");

Nifty("div#titleshadow","top br fixed-height");

Nifty("div#footer","all fixed-height")

Nifty("div#content","all fixed-height")


}

function setVis(objectID,state) {
	var object = document.getElementById(objectID);
	object.style.visibility = state;
}

function writeText(objectID,linkTarget) {
	var object = document.getElementById(objectID);

	var clearTEXT = "";

	var networksTEXT = "One office or many, new installation or upgrades, we design to your specific needs using high quality equipment from companies like Cisco, Nortel, Juniper and Netgear. ";

	var serversTEXT = "We support all the leading Microsoft products, including Windows 2003 Server, Active Directory, Exchange Server, SQL Server and Terminal Services.<br><br>For a more cost effective investment, consider a Linux solution, a fast and stable platform for mail and file servers. ";
	
	var spamTEXT = "Spam costs business billions of dollars a year in lost productivity, data loss and excess internet traffic.  Is your email filled with spam?  We can help.  ";
	
	var virusTEXT = "Are your computers slow, even though they're new?  It's a common problem.  We'll examine your PC's for viruses, malware and other unnecessary applications that slow your computers and reduce productivity.";
	
	var virtualizationTEXT = "Server virtualization is one of the fastest growing segments in IT. Virtualization is a great way to reduce costs, simplify server upgrades, increase availability and dramatically improve disaster recovery options.<br><br>  Virtualization allows you to run multiple operating systems and applications on the same computer, increasing the utilization and flexibilty of hardware. ";
	
	var firewallTEXT = "Every year more and more people telecommute, and the availability and low cost of broadband internet access has made virtual private networking a great option for businesses with multiple locations.<br><br>  Whether you need remote access for a few users or enterprise wide branch office and remote user connectivity we can customize a solution to your needs.";
	
	var softwareTEXT = "We can help you select the right hardware and software for your business.  We'll help you define your goals, identify specific needs and avoid potential hazards.<br><br> ";
	
	var projectTEXT = "Take advantage of our project management experience. If you have server, network or equipment upgrades, data migration, or new software to select and implement, we can assist in developing a plan and timeline";
	
	var budgetTEXT = "Every successful project must have a reliable budget.  We can help you determine all the costs associated and identify potential savings.";
	
	var disasterTEXT = "Businesses need a reliable business continuity plan.  Do you have a plan to backup and restore your important data?  Are you prepared for a fire or natural disaster? How quickly could you have your business back up and running?<br><br>  Let us help you answer these questions and prepare a continuity plan.";
	
	var securityTEXT = "In today's over-regulated environment, security and privacy are on everyone's mind.<br><br>  If your business handles confidential information you need measures in place to insure the security and integrity of your important information.";
	
	var webdesignTEXT = "Let us help you establish or rebrand your web presence. <br><br> We use the lastest technology, including AJAX and Cascading Style Sheets, to develop websites that are attractive, informative and fast.";

	var webupdatesTEXT = "Is your website up to date?  Is the information old and outdated?  We'll take the burden of keeping it current off your hands.<br><br>  Let us manage changes and updates for you.";

	var webappsTEXT = "Leverage the Internet to improve data communiation among employees and customers with a website tailored to your specific needs.";

switch(linkTarget) {
		case "clear":
		object.innerHTML = clearTEXT;
		break;
		
		case "networks":
		object.innerHTML = networksTEXT;
		break;
		
		case "servers":
		object.innerHTML = serversTEXT;
		break;
		
		case "spam":
		object.innerHTML = spamTEXT;
		break;
		
		case "virus":
		object.innerHTML = virusTEXT;
		break;
		
		case "virtualization":
		object.innerHTML = virtualizationTEXT;
		break;
		
		case "firewall":
		object.innerHTML = firewallTEXT;
		break;
		
		case "software":
		object.innerHTML = softwareTEXT;
		break;
		
		case "project":
		object.innerHTML = projectTEXT;
		break;

		case "budget":
		object.innerHTML = budgetTEXT;
		break;
		
		case "disaster":
		object.innerHTML = disasterTEXT;
		break;
		
		case "security":
		object.innerHTML = securityTEXT;
		break;
		
		case "webdesign":
		object.innerHTML = webdesignTEXT;
		break;
		
		case "webupdates":
		object.innerHTML = webupdatesTEXT;
		break;
		
		case "webapps":
		object.innerHTML = webappsTEXT;
		break;
		
	}
}

function sendData(str1,str2,str3,str4)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
		{
			alert ("Your browser does not support AJAX!");
			return;
		} 

var url = "cgi-bin/mail.pl";
url = url + "?name=" + str1 + "&phone=" + str2 + "&email=" + str3 + "&message=" + str4;
url = url + "&sid=" + Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);

}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
		{ 
			/* getElementByID("") should indicate where you want the response printed to.*/
			document.getElementById("mailresponse").innerHTML=xmlHttp.responseText;
		}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}




