(function (){
  var b=this;function g(a,e){var c=a.split("."),d=b;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift());)!c.length&&e!==void 0?d[f]=e:d=d[f]?d[f]:d[f]={}};function h(){this.userAgent=navigator.userAgent.toLowerCase();this.a=this.c();this.d=this.b()}var i={j:[],i:["mobile"]},j="midp,240x320,blackberry,netfront,nokia,panasonic,portalmmm,sharp,sie-,sonyericsson,symbian,windows ce,benq,mda,mot-,opera mini,philips,pocket pc,sagem,samsung,sda,sgh-,vodafone,xda,iphone,android".split(","),k=["opera"];
h.prototype.c=function(){for(var a=0;a<j.length;a++)if(this.userAgent.indexOf(j[a])!=-1)return 1;for(a=0;a<k.length;a++)if(this.userAgent.indexOf(k[a])!=-1)return 2;return 0};h.prototype.b=function(){for(var a in i)if(this.userAgent.indexOf(a)!=-1){for(var e=false,c=0;c<i[a].length;c++)if(this.userAgent.indexOf(i[a][c])==-1){e=true;break}if(!e)return true}return false};h.prototype.g=function(a){if(this.a==1)window.location=a};h.prototype.h=function(a){if(this.d)window.location=a};
h.prototype.f=function(a){if(this.a==2)document.body.innerHTML=a+document.body.innerHTML};h.prototype.e=function(a){if(this.a==1||this.a==2)document.body.innerHTML=a+document.body.innerHTML};g("gweb.mobile.userAgent",h);g("gweb.mobile.userAgent.HTML5_MOBILE_AGENTS",i);g("gweb.mobile.userAgent.CERTAIN_MOBILE_AGENTS",j);g("gweb.mobile.userAgent.POSSIBLE_MOBILE_AGENTS",k);h.prototype.isMobileDevice=h.prototype.c;h.prototype.detectForHTML5Device=h.prototype.b;
h.prototype.redirectForCertainMobileDevice=h.prototype.g;h.prototype.redirectForHTML5Device=h.prototype.h;h.prototype.prefixPageForPossibleMobileDevice=h.prototype.f;h.prototype.prefixPageForCertainMobileDevice=h.prototype.e;
})();
