animatedcollapse.addDiv('submenu', 'fade=1');
state = "off";
htimeout = setTimeout("",0);
function over (){
	if(state=="off"){
		state="turning on";
		animatedcollapse.show('submenu');
		setTimeout("state=\"on\";", 500);
	}else{
		clearTimeout(htimeout);
	}
}
function out(){
	state = "turning off";
	htimeout = setTimeout("animatedcollapse.hide('submenu'); state=\"off\";", 800);
}
function toggle(){
	if(state=="off"){
		state="turning on";
		animatedcollapse.show('submenu');
		setTimeout("state=\"on\";", 500);
	}else if(state="on"){
		state = "turning off";
		htimeout = setTimeout("animatedcollapse.hide('submenu'); state=\"off\";", 50);
	}else{
		clearTimeout(htimeout);
	}
}
animatedcollapse.init()
