(function(){var c,g;try{c=function(a){var b;b=this._parse_src()[1];this.host=a.host;this.account_id=a.account_id||b;this.account_url="http://"+this.host+"/accounts/"+this.account_id;return this};c.prototype.mobilize=function(){if(!this.is_valid())return null;return this._requested_format()!=="html"?this._redirect_for(this._format()):this._format()==="iphone"?this._create_link_to(this._format()):null};c.prototype.is_valid=function(){var a,b;return typeof(a=this.host)!=="undefined"&&a!==null&&typeof(b=
this.account_id)!=="undefined"&&b!==null};c.prototype._format=function(){return/(Android 2|iPhone|iPad|iPod).+Mobile.+Safari/i.test(navigator.userAgent)?"iphone":"html"};c.prototype._redirect_for=function(a){if(a!=="html")return window.location=this._url_for(a)};c.prototype._url_for=function(a){return""+this.account_url+"."+a};c.prototype._requested_format=function(){this._get_param("zf")!==""&&this._set_cookie("zf",this._get_param("zf"));return this._get_cookie("zf")};c.prototype._set_cookie=function(a,
b){return document.cookie=a+"="+b+"; path=/"};c.prototype.clear_cookies=function(){return this._set_cookie("zf","")};c.prototype._get_cookie=function(a){var b,e,d,f;f=a+"=";a=document.cookie.split(";");b=0;for(e=a.length;b<e;b++){for(d=a[b];d.charAt(0)===" ";)d=d.substring(1,d.length);if(d.indexOf(f)===0)return d.substring(f.length,d.length)}return null};c.prototype._get_param=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=(new RegExp("[\\?&]"+a+"=([^&#]*)")).exec(window.location.href);
return a===null?"":a[1]};c.prototype._create_link_to=function(a){var b;b=this._create_element("a");b.appendChild(document.createTextNode("Wr\u00f3\u0107 do wersji mobilnej"));b.href=this._url_for(a);b.style.fontSize="40px";b.setAttribute("onclick","zubibu.clear_cookies()");return document.body.appendChild(b)};c.prototype._create_element=function(a){a=document.createElement(a);a.style.position="relative";a.style.display="block";a.style.fontWeight="normal";a.style.textAlign="left";a.style.width="auto";
a.style.height="auto";a.style.background="none";a.style.paddingLeft="0";a.style.paddingRight="0";a.style.paddingTop="0";a.style.paddingBottom="0";a.style.marginLeft="0";a.style.marginRight="0";a.style.marginTop="0";a.style.marginBottom="0";return a};c.prototype._parse_src=function(){var a,b,e,d;a=document.getElementsByTagName("script");b=0;for(e=a.length;b<e;b++){d=a[b];if(/\/mobilize\.js(#.+)?$/.test(d.src)){a=d.src.split("#");b=a[0];a=a[1];b=b.match(/http:\/\/(.[^\/]+)/)[1];return[b,a]}}return[]}}catch(h){}g=
{host:this._zubibu_host||"app.zubibu.com",account_id:this._zubibu_account_id};try{this.zubibu=new c(g);this.zubibu.mobilize()}catch(i){}})();
