dojo.require("dojo.fx");

var wipeOut;
var wipeIn;
var currentAnimation;

function toggleMenu() {
	switch(currentAnimation) {
		case 0:
			currentAnimation = 2;
			dojo.attr(dojo.byId("navigation-full"),'height','auto');
			wipeIn.play();
			break;
		case 1:
			currentAnimation = 2;
			wipeIn.play();
			break;
		case 2:
			currentAnimation = 1;
			wipeOut.play();
			break;
	}
}

dojo.addOnLoad(function(){
	fullmenuNode = dojo.byId("navigation-full-wrapper");
	console.debug(fullmenuNode);
	wipeOut = dojo.fx.wipeOut({
		node: fullmenuNode,
		duration: 600
	});
	wipeIn = dojo.fx.wipeIn({
		node: fullmenuNode,
		duration: 600
	});
	currentAnimation = 0;
});
