/* Show / Hide script for Active Mind Tabbed Content */
			
	function switchid(id,activeid){	

		hideTabs();
		showTab(id);
                activate(activeid); 
                deActivate(activeid); 
	}
	
	function hideTabs(){
		//loop through the array and hide each element by id
		for (var i=0;i<cTabs.length;i++){
			hideTab(cTabs[i]);
		}		  
	}
	
	function hideTab(id) {
		//safe function to hide an element with a specified id
		if (document.getElementById) { // DOM3 = IE5, NS6
			document.getElementById(id).style.display = 'none';
		}
		else {
			if (document.layers) { // Netscape 4
				document.id.display = 'none';
			}
			else { // IE 4
				document.all.id.style.display = 'none';
			}
		}
	}
	
	function showTab(id) {
		//safe function to show an element with a specified id
		
		for (var i=0;i<arguments.length;i++){
			var element = arguments[i];	
			if (typeof element == 'string') {
				element = document.getElementById(element);
				element.style.display = 'block';
			}
			if (arguments.length == 1)
				return element;
			elements.push(element);
				
		}	
	}

	/* Set 'on' state & reset to 'off' state */
	function activate(theDiv) {
		document.getElementById(theDiv).className = 'activeTab';
	}
	function deActivate(activeid) {
		for (var i=0;i<sTabs.length;i++){
                         if(sTabs[i]!=activeid){
			document.getElementById(sTabs[i]).className = ''; 
                         }  
		}
	}

