/*generated file--do not edit*/var SBP_DEVICE=(function(){var f=window,j=document,m,k,h,e,d,b,c,g,a;function i(o){var p=j.cookie,q,r,n;if("string"==typeof p){r=p.indexOf(o+"=");q=r+o.length+1;if(!r&&(o!=p.substring(0,o.length))){return""}if(-1==r){return""}n=p.indexOf(";",q);if(-1==n){n=p.length}return decodeURIComponent(p.substring(q,n))}else{return""}}function l(q){var p=q.name,o=q.maxAge,n=q.expires,s=q.path||"/",r=q.domain;if("string"==typeof j.cookie){j.cookie=[q.name,"=",encodeURIComponent(q.value),";path=",s,(o&&";max-age="+o),(n&&";expires="+n.toUTCString()),(r&&";domain="+r),(q.secure&&";secure")].join("");return{name:p,path:s,domain:r}}else{return null}}if(("undefined"==typeof f.screen)||!(m=f.screen)||("undefined"==typeof m.width)||!(k=m.width)||("undefined"==typeof m.height)||!(h=m.height)){return 0}e=k*h;d=(("undefined"!=typeof f.ontouchstart)&&("undefined"!=typeof f.ontouchmove)&&("undefined"!=typeof f.ontouchend));b=(("undefined"!=typeof f.WebKitAnimationEvent)&&("undefined"!=typeof f.WebKitCSSKeyframeRule)&&("undefined"!=typeof f.WebKitCSSKeyframesRule)&&("undefined"!=typeof f.WebKitCSSMatrix)&&("undefined"!=typeof f.WebKitCSSTransformValue)&&("undefined"!=typeof f.WebKitPoint)&&("undefined"!=typeof f.WebKitTransitionEvent)&&("undefined"!=typeof f.onwebkitanimationend)&&("undefined"!=typeof f.onwebkitanimationiteration)&&("undefined"!=typeof f.onwebkitanimationstart)&&("undefined"!=typeof f.onwebkittransitionend)&&("undefined"!=typeof f.webkitConvertPointFromNodeToPage)&&("undefined"!=typeof f.webkitConvertPointFromPageToNode));c=(d&&b&&("undefined"!=typeof f.Touch)&&("undefined"!=typeof f.TouchList)&&("undefined"!=typeof f.devicePixelRatio)&&("undefined"!=typeof f.ongesturechange)&&("undefined"!=typeof f.ongestureend)&&("undefined"!=typeof f.ongesturestart)&&("undefined"!=typeof f.onorientationchange)&&("undefined"!=typeof f.ontouchcancel)&&("undefined"!=typeof f.orientation));g=!c&&("undefined"!=typeof window.navigator)&&("string"==typeof window.navigator.appVersion)&&/\bandroid\b/i.test(window.navigator.appVersion);if(c){a=(e<(1024*768))?"iphone":"ipad"}else{if(g){a="android"}}if(a){if(!i("theme")){l({name:"theme",value:a});if(i("theme")){f.location.reload();return 2}else{window.location="http://"+SBP_MOBILE+"/";return 1}}}})();
