title: var isMobile = jQuery.browser.mobile; need else
body: <p>I have something that works too well. The var isMobile is stopping the rest of the function from working, when it is deployed as an include, but works perfectly on it's own page.</p>
  
  <p>The jQuery plugin I wish to prevent from executing is called Meerkat and it shows and hides a browser bottom hugging div. Everything is copacetic as long as Meerkat does not show up on phones or tablets. Very bad user experience. I thought I had a winner with detectmobilebrowser.js</p>
  
  <pre><code>$(document).ready(function(){
    var isMobile = jQuery.browser.mobile;
    if(isMobile)
    {
      window.location.href = 'http://*******/nomeerkat.html';
    }
  });
  </code></pre>
  
  <p>This is working as a standalone function, the meerkat function works on non mobile/tablet platforms. When booked as an include desktop platforms are not executing the meerkat function. No amount of googling has turned up any examples of an if else in relation to detecting mobile. :(</p>
  
  <pre><code>$(function(){
    $('.meerkat').meerkat({                      
      background:'url(\'http://****.jpg\') repeat-x left top',
      height: '90px',
      width: '940px',
      position: 'bottom',
      close: '.close-meerkat',
      dontShowAgain: '.dont-show',
      animationIn: 'fade',
      animationSpeed: 1000,
      removeCookie: '.reset'
    }).addClass('pos-bot');
    $('#bottom').click(function(){
     $('.meerkat').destroyMeerkat();
     $('.meerkat').meerkat({
       height: '90px',
       width: '940px',
       position: 'bottom',
       close: '.close-meerkat',
       dontShowAgain: '.dont-show',
       animationIn: 'slide',        
       animationSpeed: 1000,
       removeCookie: '.reset'
     }).removeClass('pos-bot');
     $('.code').hide();
     $('.bottom_').show();
     return false;
   });
  });
  </code></pre>