function homeIntro(highlight) {
	var contentAreas = new Array('standardIntro','firmIntro','attorneyIntro','practiceIntro','newsIntro','contactIntro');
	var x = contentAreas.length // produces the number of elements
	var i = 0 //counter
	//alert(highlight);
	while(i<x) {
		if(highlight != contentAreas[i]) {
			document.getElementById(contentAreas[i]).style.display='none';
		}
		i++;
	}
	document.getElementById(highlight).style.display='block';
	document.getElementById(highlight).style.top='10px';
}

function notPublished (page) {
	alert('The ' + page + ' section is not yet available for this beta site.');
}

var BusinessLaw = new Array('Appeals','Banking','BusinessEntities','CommercialLitigation','Construction','Contracts','Employment','Environment','Insurance','MalpracticeDefense','MaritimeAdmiraltyFisheries','NativeCorporations','PersonalInjury','RealEstate','SecuritiesInvestments','TaxIssues')

function switchView(type,active) {
	var x = type.length // produces the number of elements
	var i = 0 //counter

    while(i<x) {
    	if (type[i] == active) {
    		document.getElementById(type[i]).style.display="block";
    	} else {
    		document.getElementById(type[i]).style.display="none";
    	}
    	i++;
    }
}
