	window.onload = function() {
		
		function runAccordion(){
		/* Accordion */
		// Pick your classes
			var myBox = document.getElementsByClassName('stretchtoggle');
			var myBoxOpen = document.getElementsByClassName('stretcher');

		// Create the accordian
			var myEffect = new Accordion(myBox, myBoxOpen, {alwaysHide: 1});
		}
		
		runAccordion();
		
		function runToolTips()
		{
		/* setup tooltips */
		var as = [];
	
		$$('a').each(function(a){
			if (a.getAttribute('title')) as.push(a);
		});
		
		new Tips(as, {
			maxTitleChars: 25,
			onShow: function(tip){
				//tip.setStyle('visibility', 'visible'); -< this is the default, to be overridden in the options like this:
				tip.setStyle('opacity', '0.8');
			},
			onHide: function(tip){
				tip.setStyle('visibility', 'hidden');
				//or an effect going from 0.9 to 0 opacity..
			}
			});
		
		}
		runToolTips();
		//new SmoothScroll({duration: 2500, transition: Fx.Transitions.sineInOut}); 
		//new SmoothScroll(); 
		
 }
  
 //window.addEvent('domready', function(){  })