function toggle( targetId ){
//alert (document.getElementById(targetId));
  if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "block";
  				document.images['icn'].src = "../i/toggle-show.gif";
  			} else {
  				target.style.display = "none";
  				document.images['icn'].src = "../i/toggle-hide.gif";
  			}
  	}
}

function togglehide( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
		target.style.display = "none";
  }
}

function blurAnchors(){
  if(document.getElementsByTagName){
    var a = document.getElementsByTagName("a");
    for(var i = 0; i < a.length; i++){
      a[i].onfocus = function(){this.blur()};
    }
  }
}
window.onload = blurAnchors;

function popMap() {
window.open('smithfields_map.html', '_blank', 'location=0,statusbar=0,menubar=0,width=720,height=490')
}

function showMoreText(el) {
  if (document.getElementById){
  		hiddenStuff = document.getElementById(el).getElementsByTagName('p');
  		//alert(target);
    for(var i = 0; i < hiddenStuff.length; i++){
  				hiddenStuff[i].style.display = "block";
  			}
		}
	}
	
	
function showLessText(el) {
  if (document.getElementById){
  		hiddenStuff = document.getElementById(el).getElementsByTagName('p');
  		//alert(target);
    for(var i = 0; i < hiddenStuff.length; i++){
  				hiddenStuff[i].style.display = "none";
  			}
		}
	}