function showlayerdiv(layerName,showHide) {
	var what, layerRef, visibleVar;
	if (document.layers) { 
		layerRef="document.layers"; 
		styleSwitch=""; 
		visibleVar="show"; 
		what ="ns4"; 
	} else if(document.all) { 
		what ="ie4"; 
		layerRef="document.all"; 
		styleSwitch=".style"; 
		visibleVar="visible"; 
	} else if(document.getElementById) { 
		layerRef="document.getElementByID"; 
		styleSwitch=".style"; 
		visibleVar="visible"; 
		what="dom1"; 
	} else { 
		what="none"; 
	} 
	
	if (showHide == 'show') {
		layerVis = 'visible';
		hideDiv = true;
	} else {
		layerVis = 'hidden';
		hideDiv = false;
	}
	if (what == "none") { 
		return; 
	} else if (what == "dom1") {
		document.getElementById(layerName).style.visibility=layerVis;
	} else {
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="'+layerVis+'"');
	} 
}

function showlayer(layerName) {
	var allLayers=new Array("work-portfolios","work-architecture-aerial","work-people-lifestyle","work-places-spaces","work-wet-underwater","blog-links","other-links","contact-form")
	for (key in allLayers) {
		if (layerName == allLayers[key]) {
			showlayerdiv(layerName,'show')
		} else {
			showlayerdiv(allLayers[key],'hide')
		}
	}
}
