// JavaScript Document
function Toggle(div,img,cls,clsImg) {

getElementByClass(cls);
getElementByClassSrc(clsImg);

if (document.getElementById(div).style.display == '') {
  document.getElementById(div).style.display = 'none';
  document.getElementById(img).src = '/images/trans.gif';
} else {
  document.getElementById(div).style.display = 'block';
  document.getElementById(img).src = '/images/arrow.gif';
}
}


var allHTMLTags = new Array();

function getElementByClass(theClass) {

//Create Array of All HTML Tags
var allHTMLTags=document.getElementsByTagName('*');

//Loop through all tags using a for loop
for (i=0; i<allHTMLTags.length; i++) {

//Get all tags with the specified class name.
if (allHTMLTags[i].className==theClass) {

//Place any code you want to apply to all
//pages with the class specified.
//In this example is to “display:none;” them
//Making them all dissapear on the page.

allHTMLTags[i].style.display='none';

}
}
}


var allHTMLTagsSrc = new Array();

function getElementByClassSrc(theClass) {

//Create Array of All HTML Tags
var allHTMLTagsSrc=document.getElementsByTagName('*');

//Loop through all tags using a for loop
for (i=0; i<allHTMLTagsSrc.length; i++) {

//Get all tags with the specified class name.
if (allHTMLTagsSrc[i].className==theClass) {

//Place any code you want to apply to all
//pages with the class specified.
//In this example is to “display:none;” them
//Making them all dissapear on the page.

allHTMLTagsSrc[i].src = '/images/trans.gif';

}
}
}
