function initStretcher()
{
	
	var stretchers = document.getElementsByClassName('stretcher'); //div that stretches
	var toggles = document.getElementsByClassName('display'); //as where I click on

	//accordion effect
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: true, duration: 400}
	);

	//hash functions
	var found = false;
	toggles.each(function(a, i){
		//var div = Element.find(a, 'nextSibling'); //element.find is located in prototype.lite
		if (window.location.href.indexOf(a.title) > 0) {
			//myAccordion.showThisHideOpen(div);
			found = true;
		}
	});
	//if (!found) myAccordion.showThisHideOpen(stretchers[0]);
	//if (!found) function hideStretchers() {
	//	myAccordion.hide(stretchers[0]);
	//}
}


//end stretcher


//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}
}






addLoadEvent(initStretcher);