//Create an array 
var allPageTags = new Array(); 
function hideDivs(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';
		}
	}
} 

/* Shows and hides div element by switches display parameter from "none" (invisible) to "" ( default display parameter making div 		visible) of a div object */
function showhide(id){

	if (document.getElementById){
	
		obj = document.getElementById(id);
		
		if (obj.style.display == "none"){
			obj.style.display = "";
		} else {
			obj.style.display = "none";
		}
	}
}

/* Switches back in forth between current source image and the image URL located in the function parameter newImg */
function changeImg(img,newImg){

	if(img.src.indexOf(newImg) == -1){
		curImg = img.src;
		img.src = newImg;
	}
	else {
		img.src = curImg;
	}
}
