title: Modernizr detect Flash vs User Agent for Mobile/Tablet - Opinions wanted
body: <p>I need to redirect to one of two options, either a mobile area which is fully HTML5 but is optimized for small screen or the regular version which may contain some flash but is optimized for bigger screens. </p>
  
  <p>The Modernizr JavaScript library has a option to detect weather a the current browser has flash <code>Modernizr.on(feature,cb);</code>. I was thinking this would this be a better way to check if a device is an ipad/mobile device but if it's a desktop browser has flash disabled this would probably also send the user to the mobile optimized area, instead of sending them to the desktop area with a Flash player blocked error if they do reach a flash object, which would be the preferred behavior.</p>
  
  <p>Would a better way be to check the User Agent or if the browsers supports Touch Events?</p>
  
  <p>Does any one have any opinions on best way to go about this?</p>