function pub_view(LayerName) 
	{
	//Hides all layers then reveals the one selected
	
	var zones = new Array();
		zones[0] = "";
		zones[1] = "pub1";
		zones[2] = "pub2";
		zones[3] = "pub3";
		zones[4] = "pub4";
		zones[5] = "pub5";
		zones[6] = "pub6";
		zones[7] = "pub7";
		zones[8] = "pub8";
		zones[9] = "pub9";
		zones[10] = "pub10";
		zones[11] = "pub11";
		zones[12] = "pub12";
	
	for (var x = 1; x < 7; x++)
   		{
   		   var showthis = zones[x];
			//alert(LayerName +" "+x+" "+showthis);
			//alert("x "+x+" zones[x]"+zones[x]);
			document.getElementById(zones[x]).style.display = "none";
   		}

	document.getElementById(LayerName).style.display = "inline";
	
	//move the web page to this anchor
	//var backone = parseInt(LayerName.charAt(3)) - 1;
	//location.href = "publications.html#"+ zones[backone];

} //end function



function hideshowlayer(LayerName) 
	{
	//toggles between block and inline

	var VState = document.getElementById(LayerName).style.display;
	//alert(LayerName +" "+document.getElementById(LayerName).style.display);

	if (VState=="inline") 
		{
		document.getElementById(LayerName).style.display = "none";
		}

	if (VState=="none") 
		{
		document.getElementById(LayerName).style.display = "inline";
		} 
} //end function

