// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function slide(id) {
//	$(id).cleanWhitespace();
//	alert($(id).style.display);
	if ($(id).style.display != 'none') {
//		alert()
		Effect.BlindUp(id, { duration: 0.3 });
	} else {
	
		$$('.sub').each(function(s){
			if (s.visible)
				s.hide();
		});
		
		Effect.BlindDown(id, { duration: 0.3 });	
	}
  	return(false);
}

function mooSlide(id) {
	var myFx = new Fx.Slide(id, {
	    duration: 1000,
	    transition: Fx.Transitions.Pow.easeOut
	});
	myFx.toggle();
}
