iCMS.define("isMobile",function() {

    var b=/iPhone/i,c=/iPod/i,d=/iPad/i,e=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,f=/Android/i,g=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,i=/Windows Phone/i,j=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,k=/BlackBerry/i,l=/BB10/i,m=/Opera Mini/i,n=/(CriOS|Chrome)(?=.*\bMobile\b)/i,o=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,p=/UCWEB/i,q=/spider/i,r=/bot/i,s=/Windows; U;/i,t=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),u=function(a,b){return a.test(b)},v=function(a){var v=a||navigator.userAgent,w=v.split("[FBAN");return"undefined"!=typeof w[1]&&(v=w[0]),w=v.split("Twitter"),"undefined"!=typeof w[1]&&(v=w[0]),this.apple={phone:u(b,v),ipod:u(c,v),tablet:!u(b,v)&&u(d,v),device:u(b,v)||u(c,v)||u(d,v)},this.amazon={phone:u(g,v),tablet:!u(g,v)&&u(h,v),device:u(g,v)||u(h,v)},this.android={phone:u(g,v)||u(e,v),tablet:!u(g,v)&&!u(e,v)&&(u(h,v)||u(f,v)),device:u(g,v)||u(h,v)||u(e,v)||u(f,v)},this.windows={phone:u(i,v),tablet:u(j,v),device:u(i,v)||u(j,v)},this.other={blackberry:u(k,v),blackberry10:u(l,v),opera:u(m,v),firefox:u(o,v),chrome:u(n,v),ucweb:u(p,v),device:u(k,v)||u(l,v)||u(m,v)||u(o,v)||u(n,v)||u(p,v)},this.spiders={spider:u(q,v),bot:u(r,v),u:u(s,v),device:u(q,v)||u(r,v)||u(s,v)},this.seven_inch=u(t,v),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,this.spider=this.spiders.device,"undefined"==typeof window?this:void 0},w=function(){var a=new v;return a.Class=v,a};
    return w();
});

