/*   The 'instaTabs' functions
*  	 Written by Peter T. Graber
*		 March, 2005
*
*/


function showTab(newTab){
				var allTabs = new Array('keyfeatures','hostingplans','rulespolicy', 'order', 'support');
				var curTab = newTab;
				var curTabData = newTab+"Data";
				for (i = 0; i < allTabs.length; i++) {
					if (curTab != allTabs[i] ) {
				  var oldTab = allTabs[i]+"Data";
					document.getElementById(allTabs[i]).style.backgroundColor = '#ffffff';	    
			    document.getElementById(allTabs[i]).style.borderBottomWidth = '1px';
					document.getElementById(allTabs[i]).style.borderBottomStyle= 'solid';
					document.getElementById(allTabs[i]).style.borderBottomColor= '#cccccc';
					document.getElementById(allTabs[i]).style.color= '#696969';
					document.getElementById(oldTab).style.display = 'none';			 
					}
							
					else {
						document.getElementById(curTab).style.backgroundColor = '#ffffff';
						document.getElementById(curTab).style.borderBottomWidth = '2px';
						document.getElementById(curTab).style.borderBottomColor= '#FFF6FB';
						document.getElementById(curTab).style.borderBottomStyle= 'solid';
						document.getElementById(curTabData).style.display = 'block';
						document.getElementById(curTabData).style.borderBottomWidth = '4px';
						document.getElementById(curTab).style.color= '#000000';
						}
				}
}			
	
				
	
window.onload = function() {
	
			
	if(document.getElementById("keyfeatures")) {
		tab = document.getElementById("keyfeatures");
		tab.style.backgroundColor = '#ffffff';
		tab.style.borderBottomWidth = '2px';
		tab.style.borderBottomColor = '#ffffff';
		tab.style.borderBottomStyle= 'solid';
		tab.style.color= '#696969';
		}
		
}