/* Easy Toggle */

fs_init = function(){
	var toggles = $('main').select('div.cms_content .toggle');
	toggles.invoke('next').invoke('hide');
	toggles.each(function(el){
		el.onclick = function(e){
			Event.stop(e);
			if (this.hasClassName('nofx')){
				this.next('div').toggle();
			}else{
				new Effect.toggle(this.next('div'),'blind', {afterFinish: function(){
					new Effect.ScrollTo(this);
				}.bind(this)});
			}
		}.bindAsEventListener(el);
	});
	
};


/* Initialize on Load */
Event.observe(window,'load',function(){fs_init()});
