(function(){window.beebole={curr:false,temp:{jsonpId:0,scrolling:false},callGA:function(a){var b=document.getElementById("gaScript");b&&b.parentNode.removeChild(b);this.ga(a)},damper:function(a,b,c){var d,f=(new Date).getTime();d=setInterval(function(){var e;e=(new Date).getTime()-f;if(e>=c){clearInterval(d);b.call(beebole)}else{e=2*e/c;if(e<1)e=0.5*e*e*e*e;else{e-=2;e=-0.5*(e*e*e*e-2)}a.call(beebole,e)}},15)},digicert:function(){var a=["toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=480, height=560, top=",
(screen.height-560)/2,", left=",(screen.width-480)/2].join("");window.open("https://www.digicert.com/custsupport/sspopup.php?order_id=00182276&hostname=https://www.digicert.com","_new",a)},ga:function(a){if(top.location.href.indexOf("beebole.com")>=0)try{var b=top.document,c=top._gaq=top._gaq||[],d,f;c.push(["_setAccount","UA-4120288-20"]);c.push(["_setDomainName",".beebole.com"]);c.push(["_trackPageview",a]);d=b.createElement("script");d.type="text/javascript";d.async=true;f=b.getElementsByTagName("script")[0];
f.parentNode.insertBefore(d,f);f.id="gaScript";d.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js"}catch(e){this.sendError(e)}},getHelpTopics:function(){this.jsonp("../help/topics.php?callback=",function(a){a=a.files.sort(function(g,h){!g.path&&(g.path=g.name.split("/").splice(2));!h.path&&(h.path=h.name.split("/").splice(2));return g.name>h.name?-1:1});for(var b=a.length,c={},d=function(g,h){var i=g[0];if(i){h=h||c;h[i]=h[i]||{};d(g.splice(1),h[i])}},
f=document.getElementById("helpTopics"),e;b--;)d(a[b].path);e=$p(f.getElementsByTagName("UL")[0]).compile({li:{"folder<-":{a:function(g){return g.folder.pos.replace(/\.html/,"").replace(/\-/g," ")},"@class":function(g){return/\.html/.test(g.folder.pos)?"file":"folder"},div:function(g){return/\.html/.test(g.folder.pos)?"":e(this)}}}});$p(f.getElementsByTagName("UL")[0]).render(c,e)})},getPos:function(a){for(var b=0,c=0;a!=null;){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent}return{x:b,y:c}},init:function(){document.body.className=
"qo10 to10";this.jsonp("http://api.wipmania.com/jsonp?callback=",function(a){var b;b={USD:{AS:true,AR:true,BO:true,BR:true,CA:true,CL:true,CO:true,CR:true,EC:true,SV:true,GL:true,GT:true,HN:true,MX:true,NI:true,PA:true,PY:true,PE:true,PR:true,US:true,UY:true},GBP:{GB:true}};var c=1,d=document.getElementById("curr1");a=a.address?a.address.country_code:"US";b=b.USD[a]?"USD":b.GBP[a]?"GBP":"EUR";document.getElementById("currImg").className="currImg "+b;do{d.innerHTML=b==="USD"?"$":b==="GBP"?"&pound;":
"&euro;";c++;d=document.getElementById("curr"+c)}while(d)})},jsonp:function(a,b){this.temp.jsonpId++;var c="jsonp_"+this.temp.jsonpId,d;d=document.createElement("SCRIPT");if(b){this.temp[c]=function(f){b.call(beebole,f)};a=a+"beebole.temp."+c}d.src=a;document.getElementsByTagName("HEAD")[0].appendChild(d)},loadFile:function(a){var b=document.createElement("iframe");b.style.display="none";b.src=a;document.body.appendChild(b)},pollen:function(a){if(top.location.href.indexOf("beebole.com")>0){a=a||window.location.href.match(/([^\/]+)\/[^\/]*$/)[1];
if(a.indexOf("beebole.com")>=0&&window.location.hash!=="#home"&&window.location.hash!=="#"||!a)a="home";try{window.Pollen={s:"beebole.com-"+a+(window.location.hash?"-"+window.location.hash.substr(1):""),r:document.referrer,url:"https://beebole-apps.com/pollen"};this.jsonp("https://beebole-apps.com/js/pollen.js?nocache="+(new Date).getTime())}catch(b){this.sendError(b)}}},readFeed:function(a){for(var b={},c=a.content.$t.split(/\,/),d=c.length,f;d--;){f=c[d].split(/\:/);b[f[0].replace(/^\s+|\s+$/g,
"")]=f[1].replace(/^\s+|\s+$/g,"")}b.title=a.title.$t;return b},retrySpreadSheetLoad:function(a,b){if(!a.feed){this.temp.spreadSheetAttempts=(this.temp.spreadSheetAttempts||0)+1;setTimeout(function(){b()},1E4);return false}return true},rollerQuote:function(a){this.jsonp("https://spreadsheets.google.com/feeds/list/0AuK7grMvz5AIdGM4dDhQOVhmVldoUUg1RWRqTkxuRWc/1/public/basic?alt=json-in-script&callback=",function(b){if(this.retrySpreadSheetLoad(b,window.beebole.rollerQuote)){a=a||16E3;var c=[],d=2,f=
document.getElementById("quote1"),e=b.feed.entry,g=[];beebole.temp.to&&clearInterval(beebole.temp.to);beebole.temp.to=setInterval(function(){var h,i;h=e.length;if(h===1){i=e.pop();e=g;g=[]}else i=e.splice(parseInt(Math.random()*e.length,10),1).pop();g.push(i);h=c.length;i=beebole.readFeed(i);var m=['<h5 class="title" style="text-align:right">',i.head,'</h5><span class="smartLeft">&#8220;</span><span class="quote">',i.title,'</span><span class="smartRight">&#8221;</span><p class="who">',i.name,", ",
i.url,"</p>",window.location.href.indexOf("happy-users")>=0?"":'<a href="/happy-users/">Meet a few of our happy users</a>'].join(""),k,j=10,n=-1,l=function(){document.body.className=document.body.className.replace(/qo([0-9]+)/,"qo"+j);j+=n;if(j>10||j<=0){clearInterval(k);if(j<=0){for(;h--;)c[h].innerHTML=m;n=1;k=setInterval(l,80)}}};k=setInterval(l,80)},a);do{c.push(f);f=document.getElementById("quote"+d++)}while(f)}})},rollerImage:function(){this.jsonp("https://spreadsheets.google.com/feeds/list/0AuK7grMvz5AIdFNQSzVKRXZ0M01IaHBjTUlocnJ1TkE/1/public/basic?hl=en&alt=json-in-script&callback=",
function(a){if(this.retrySpreadSheetLoad(a,window.beebole.rollerImage)){var b=a.feed.entry,c=document.getElementById("tagline"),d=document.getElementById("slideShow"),f=1,e,g=document.getElementById("roller_report"),h=document.getElementById("index_report"),i=document.getElementById("rollerIndex");(function(){var m=b.length,k=0,j=i.getElementsByTagName("A")[0];for(j.className="rollerIndexOn";++k<m;){e=beebole.readFeed(b[k]);j=j.cloneNode(true);j.className="rollerIndexOff";j.id="index_"+e.imgid;i.appendChild(j)}})();
beebole.temp.toImg&&clearInterval(beebole.temp.toImg);beebole.temp.toImg=setInterval(function(){var m,k;m=b.length;m=b[f++%m];k=beebole.readFeed(m);var j=['<span class="title">',k.title,'</span><div style="height: 9px"></div><span class="subTitle">',k.details,"</span>"].join(""),n,l=10,o=-2.2,p=function(){c.className=c.className.replace(/to([0-9]+)/,"to"+l);d.className=d.className.replace(/to([0-9]+)/,"to"+l);l=Math.round(l+o);if(l>10||l<=0){clearInterval(n);if(l<=0){c.innerHTML=j;d.className=d.className.replace(/to([0-9]+)/,
"to0");g&&(g.style.display="none");(g=document.getElementById("roller_"+k.imgid))&&(g.style.display="inline");h&&(h.className="rollerIndexOff");(h=document.getElementById("index_"+k.imgid))&&(h.className="rollerIndexOn");o=1;n=setInterval(p,80)}}};n=setInterval(p,100)},6500)}})},menuScrollTo:false,setMenuScroll:function(){if(!beebole.menuScrollTo){var a=window.pageYOffset;if(a<1700)beebole.setMenu("home");else a<2900?beebole.setMenu("pricing"):beebole.setMenu("tour")}},setMenu:function(a){a=a||window.location.hash||
"#home";for(var b,c=document.getElementById("header").getElementsByTagName("A"),d=c.length,f=function(e){e.className=e.className.replace(/\s*current/g,"")};d--;){f(c[d]);if(!b&&c[d].href.indexOf(a)>-1)b=c[d]}if(b)b.className+=" current"},scrollTo:function(a){beebole.menuScrollTo=true;try{var b=a.href.split("#")[1],c=document.getElementById(b),d=isNaN(window.pageYOffset)?document.documentElement.scrollTop:window.pageYOffset;beebole.getPos(c);var f=beebole.getPos(c).y-d;beebole.temp.scrolling=true;
this.setMenu(a);this.damper(function(g){window.scrollTo(0,d+f*g)},function(){beebole.temp.scrolling=false;window.location.hash=b;beebole.pollen("scroll");beebole.menuScrollTo=false},Math.max(Math.abs(Math.round(f/3)),1200));return false}catch(e){this.sendError(e);return true}},sendError:function(){}};beebole.pollen();beebole.ga()})();

