title: How to only detect if is an iOS devices and redirect?
body: <p>I'm currently using this to detect if the visitors have flash installed or not and if not right away I'm assuming they are iPhone users but then now it seems it doesn't always work like I wish to because sometime they being redirect to the version of flash of my site and sometime the person who got flash installed also redirect to an iPhone version of my site</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;    
       &lt;script src="http://www.featureblend.com/flash_detect_1-0-4/flash_detect.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt; 
  
  &lt;script type="text/javascript"&gt; 
      if(!FlashDetect.installed){
          window.location = "?flash=false";       
      }else{
          window.location = "?flash=true";
      }
      &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>the thing is how would I detect if they are iPhone/iPad/iPod/AppleTV something like that and redirect them to the flash=false URL and if they are non of the above will be redirect to flash=true?</p>
  
  <p>I have tried to find but really can't find the exact what I'm looking for</p>
  
  <p>Thank you and Merry X'Mas to all of you.</p>