//--------------------------------------------------
// Disclosure Box

	addLoadEvent(function(){

		var regExp = new RegExp('#([A-Za-z0-9]+)');
		var links = document.getElementsByTagName("a"); // Get all <a> elements
		for (var i=0; i<links.length; i++) { // loop through them
			if (cssjs('check', links[i], 'jsDisclosure')) { // if their class is the same as disclosureShow

				var result = regExp.exec(links[i].href);
				if (result && result.length == 2) {

					links[i].disclosure = document.getElementById(result[1]); // get the object with the id that is equal to the rel attribute of the link

					cssjs('add', links[i].disclosure, 'jsDisclosureClosed'); // add the disclosureDeactivated class

					links[i].onclick = function() { // on click

						if (cssjs('check', this.disclosure, 'jsDisclosureClosed')) { // if the class is disclosureDeactivated
							cssjs('remove', this.disclosure, 'jsDisclosureClosed'); // remove disclosureDeactivated
							cssjs('add', this.disclosure, 'jsDisclosureOpen'); // then add disclosureActivated
						} else {
							cssjs('remove', this.disclosure, 'jsDisclosureOpen'); // remove disclosureActivated
							cssjs('add', this.disclosure, 'jsDisclosureClosed'); // add disclosureDeactivated
						}

						return false;

					}

				}

			}
		};
	});

