 Detects which experience to serve to a user based on the client browser.

 Docs: https://github.com/knation/browser-survey

 Version 0.0.1

 Kirk Morales (http://www.kirkmorales.com)
 Copyright 2013. All Rights Reserved.
 @license MIT LICENSE
*/
(function(a,f,e){function l(){if(f&&f.documentElement&&f.documentElement.clientWidth)return f.documentElement.clientWidth;if(a){if(a.innerWidth)return a.innerWidth;if(a.outerWidth)return a.outerWidth}return null}function k(){var b;e&&e.userAgent&&(m.test(e.userAgent)?b="phone":n.test(e.userAgent)?b="tablet":p.test(e.userAgent)&&(b="mobile"));if(b&&"mobile"!=b)c(b);else{var d=l();d||"mobile"!=b?d?"mobile"==b&&d>h.tablet.defaultMaxWidth?c("tablet"):d<=h.phone.defaultMaxWidth?c("phone"):d<=h.tablet.defaultMaxWidth?
c("tablet"):c("desktop"):c("desktop"):c("tablet")}}function c(b){if(b in h){g.className=g.className.replace(/phone|tablet|desktop/g,"");g.className+=" "+b;b="data-href-"+b;var d,a,c,e;d=f.querySelectorAll("link["+b+"]");for(a=0;a<d.length;a++)e=d[a].getAttribute("href"),(c=d[a].getAttribute(b))&&e!=c&&d[a].setAttribute("href",c)}}var h={phone:{defaultMaxWidth:480},tablet:{defaultMaxWidth:1024},desktop:{}},n=/iPad|Kindle|Silk|PlayBook/i,m=/iPhone|iPod|BlackBerry/i,p=/Android/i,g;a.addEventListener("load",
function(){g=f.getElementsByTagName("body")[0];k()});a.addEventListener("resize",k);a.addEventListener("orientationchange",k)})(window,document,navigator);
/*