	var exists;
	var allStretch;
	
	//the main function, call to the effect object
	function init(){
		var divs = document.getElementsByClassName("inner_content");
		allStretch = new fx.MultiFadeSize(divs, {duration: 400});

		items = document.getElementsByClassName("subhead");
		for (i = 0; i < items.length; i++){
			var h3 = items[i];
			div = h3.nextSibling;
			h3.title = h3.className.replace("subhead ", "");
			if (window.location.href.indexOf(h3.title) < 0) {
				allStretch.hide(div, 'height');
				if (exists != true) exists = false;
			}
			else exists = true;

			h3.onclick = function(){
				this.firstChild.className = "labelopen";
				for (i=0; i < items.length; i++){
					if (this != items[i] && items[i].firstChild.className == "labelopen"){
						items[i].firstChild.className = "label";
					}
				}
				allStretch.showThisHideOpen(this.nextSibling, 300, 'height');
			}
		}
		if (exists == false) {
			$('resources_content').childNodes[1].fs.toggle('height');
			$('resources_content').childNodes[0].firstChild.className = "labelopen";
		}
	}

