var thisone = 'networks1';

function switchdiv(id) {
	//alert('switching from '+thisone+' to '+id);		// used for debugging
	hidediv(thisone);
	thisone = id;
	showdiv(id);
}

function switchbigdiv(type) {
	if (type=='networks') {
		hidediv('products');
		hidediv(thisone);
		showdiv('products1');
		thisone = 'networks1';
		showdiv(thisone);
		showdiv('networks');
	} else if (type == 'products') {
		hidediv('networks');
		hidediv(thisone);
		showdiv('networks1');
		thisone = 'products1';
		showdiv(thisone);
		showdiv('products');
	}
}

function hidediv(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 showdiv(id) {
	//safe function to show an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

/*

****************************************************************************************
|   OLD CODE... NO LONGER IN USE... STORED HERE FOR BACKUP PURPOSES (AKA: NOSTALGIA)   |
****************************************************************************************

var ids=new Array('networks1','networks2','networks3','networks4','networks5','networks6','products1','products2','products3','products4','products5');
	
	function switchid(id_array){	
		hideallids();
		for( var i=0, limit=id_array.length; i < limit; ++i)
			showdiv(id_array[i]);
	}
	
	function hideallids(){
		for (var i=0;i<ids.length;i++){
			hidediv(ids[i]);
		}		  
	}
	
	function hidediv(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 showdiv(id) {
		//safe function to show an element with a specified id
			  
		if (document.getElementById) { // DOM3 = IE5, NS6
			document.getElementById(id).style.display = 'block';
		}
		else {
			if (document.layers) { // Netscape 4
				document.id.display = 'block';
			}
			else { // IE 4
				document.all.id.style.display = 'block';
			}
		}
	}
*/