title: How can I solve the "Window.onDomReady is not a function" problem?
body: <pre><code>&lt;script type="text/javascript" src="&lt;?php echo $this-&gt;baseurl; ?&gt;/templates/mytemplate/javascript/min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
                                  var mooTrans= Fx.Transitions.&lt;?php echo $this-&gt;params-&gt;get('transition','Sine.easeOut') ?&gt;;
                                  window.addEvent('domready',function(){
                                  new SmoothScroll({ duration: 500, transition: Fx.Transitions.linear}, window);
                                  });
                                  &lt;/script&gt;
  </code></pre>
  
  <p>and this is the code in the min.js file:</p>
  
  <pre><code>Window.onDomReady(function() {new DropdownMenu($E('#hornav ul.menu'))});
  </code></pre>
  
  <p>However, I am getting this error: Window.onDomReady is not a function.</p>
  
  <p>Can you please help me understand what I am doing wrong?
  Thanx</p>