function googlemap() {
   var anc=document.getElementsByTagName('a');
for(var c=0;c<anc.length;c++) {
 /* this line looks for links with the attribute class="pu" and then opens a pop-up onclick */
if(anc[c].className=='googlepu') {
   anc[c].onclick=function() {
   createPopUp3(this);
   return false;
    }
   }
  }
 }

function createPopUp3(url) {
   var mywindow;
   var features='width=510,height=510,top=150,left=250,resizable';
   if(mywindow) {
   mywindow.close();
 }
   mywindow=window.open(url,'myExample6',features);
   mywindow.focus();
 }


//Create an array 
var allPageTags = new Array(); 

function hideAll(theClass) {
//Populate the array with all the page tags
var allPageTags=document.getElementsByTagName("*");
//Cycle through the tags using a for loop
for (i=0; i<allPageTags.length; i++) {
//Pick out the tags with our class name
if (allPageTags[i].className==theClass) {
//Manipulate this in whatever way you want
allPageTags[i].style.display='none';
}
}
} 

function showAll(theClass) {
//Populate the array with all the page tags
var allPageTags=document.getElementsByTagName("*");
//Cycle through the tags using a for loop
for (i=0; i<allPageTags.length; i++) {
//Pick out the tags with our class name
if (allPageTags[i].className==theClass) {
//Manipulate this in whatever way you want
allPageTags[i].style.display='';
}
}
} 

function showHide(elementid){
if (document.getElementById(elementid).style.display == 'none'){
document.getElementById(elementid).style.display = '';
} else {
document.getElementById(elementid).style.display = 'none';
}
}

