Примерно так
у меня работает
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
<head>
<script type="text/javascript" src="../inc/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require("dojo.fx");
dojo.addOnLoad(function(){
t = new dojo.fx.Toggler({
node: "foo",
hideDuration: 100,
hideFunc: dojo.fx.wipeOut,
showFunc: dojo.fx.wipeIn
});
console.info(t);
});
</script>
<title>Fix me!</title>
</head>
<body>
<div id="foo">test</div>
<button onclick="t.show()">show</button>
<button onclick="t.hide()">hide</button>
</body>
</html>