title: Why does my mmenu always position at the top of the page?
body: <p>I have a jquery.mmenu that is located about half way down the page in desktop view and I believe the script is positioning it as the first item in the body.</p>
  
  <p>We are only using mmenu on mobile devices in a responsive layout so therefore we would like it to not affect any of our desktop styles.</p>
  
  <p>Is there a way to remove the positioning and allow our menu to be positioned relatively in desktop view?</p>
  
  <p>Note: We are behind a hefty firewall so I do not have a link to view the site. If it is definitely need then I can take some time to move the pages to another server for viewing.</p>
  
  <p>Thanks!</p>
  
  <p>Just to clarify the original post/question and provide a few more details.</p>
  
  <p>We have two NAV blocks on our site.  One on top and one about mid page.  In the original code the nav containers are placed within other div containers to control their positioning within the layout.</p>
  
  <p>mmenu seems to grab both nav containers from their original location and do a prepend to the body during mmenu js execution.  This changes the positioning within the original code to make mmenu work.</p>
  
  <p>The change in location obviously causes the layout not load properly when viewed in desktop view, since the menu that used to be in a div container towards the middle of the page now renders on top of the page, due to it's mmenu modified location.</p>
  
  <p>Is there a way to initialize mmenu only on screen resize of less than 800px or a way to unload it when in desktop view and put the nav containers back in their original position? </p>
  
  <p>I tried various methods of handling the relocation of the nav with marginal success.</p>
  
  <p>Tried the following:</p>
  
  <ul>
  <li><p>Added some script to check the browser window resize and wrapped the mmenu code with an if to run it only when the browser window is 800px or less.  This works marginally, since once the mmenu js is executed, the nav locations get changed and even if the browser is resized to above 800px, the nav containers still remain in the incorrect location.</p></li>
  <li><p>I tried the above with the addition of some code to grab the nav container that should go in the middle of the page and re-write it into a div container on resolutions above 800px, but this works from mobile to desktop view.   Going from desktop to mobile does not seem to fire mmenu, since I do believe that most of it's changes are done on page load, so resizing, does not fire the script again to make the nav container changes as needed by mmenu.</p></li>
  </ul>
  
  <p>If I reduce the browser window to mobile size and refresh the page, then mmenu load fine.</p>
  
  <p>What we are trying to achieve is pretty much the same behavior as media queries, so that we can control the execution of mmenu as needed in different resolution.</p>
  
  <p>modernizr, enqueue, yepnope have been tried, but all seem to only fire the script once, not as the screen size is changed and obviously do not address the nav containers location changes.</p>
  
  <p>Sample code to show what is happening:</p>
  
  <p>Original site structure (shortened to show relevant items only):</p>
  
  <pre><code>    &lt;body&gt;
      &lt;div id="wrapper"&gt;
      &lt;div id="header"&gt;
      &lt;div id="topnav"&gt;
      &lt;nav id="mainnav"&gt;&lt;/nav&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="other"&gt;&lt;/div&gt;
      &lt;div id="secondnav"&gt;
      &lt;nav id="midnav"&gt;&lt;/nav&gt;
      &lt;/div&gt;
      &lt;div id="content"&gt;&lt;/div&gt;
      &lt;div id="footer"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;/body&gt;
  </code></pre>
  
  <p>MMENU Modified structure (after mmenu.js execution):</p>
  
  <pre><code>    &lt;body&gt;
      &lt;nav id="midnav"&gt;&lt;/nav&gt;
      &lt;nav id="mainnav"&gt;&lt;/nav&gt;
      &lt;div id="wrapper"&gt;
      &lt;div id="header"&gt;
      &lt;div id="topnav"&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="other"&gt;&lt;/div&gt;
      &lt;div id="secondnav"&gt;
      &lt;/div&gt;
      &lt;div id="content"&gt;&lt;/div&gt;
      &lt;div id="footer"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;/body&gt;
  </code></pre>
  
  <p>Hopefully the above can clarify a bit more the issue we are experiencing.</p>
  
  <p>The ultimate goal is the use mmenu and it's functionality/styling only in mobile and use our own CSS menu with sub-menus in desktop retaining the proper positioning as shown in the sample structure above.</p>
  
  <p>Thanks in advance for any help with this, since we are pretty much stuck. </p>