// DO NOT EDIT THIS FILE! see README.TXT - Javascript Compressor 1.1.0
var BrahmaUtil=new function(){
var debugmode=true;
var timeOfDay="morning";
var timeZone=2;
var contentWidth=946;
var contentHeight=500;
var navHeight=65;
var windowWidth=0;
var windowHeight=0;
var contentLeft=0;
var contentRight=0;
var contentTop=0;
var needInitSpeto=true;
var needInitHomepage=true;
var updateStatus=false;
function construct(){
this.initBounds=function(){
windowWidth=getWindowWidth();
windowHeight=getWindowHeight();
contentLeft=(windowWidth<contentWidth)?0:(windowWidth-contentWidth)/2;
contentTop=60;
contentRight=contentLeft+contentWidth;
}
this.debug=function(){return debugmode;}
this.getUpdateStatus=function(){return(debugmode&&updateStatus);}
this.getTimeOfDay=function(){return timeOfDay;}
this.getContentLeft=function(){return contentLeft;}
this.getContentRight=function(){return contentRight;}
this.getContentTop=function(){return contentTop;}
this.getContentHeight=function(){return contentHeight;}
this.getNavHeight=function(){return navHeight;}
this.getContentWidth=function(){return contentWidth;}
this.getNeedInitSpeto=function(){return needInitSpeto;}
this.getNeedInitHomepage=function(){return needInitHomepage;}
this.setUpdateStatus=function(t){updateStatus=t;}
this.setTimeOfDay=function(t){timeOfDay=t;}
this.setNeedInitSpeto=function(t){needInitSpeto=t;}
this.setNeedInitHomepage=function(t){needInitHomepage=t;}
this.getRioDateString=function(){
var dt=BrahmaUtil.getRioDate();
var hrs=dt.getHours();
if(hrs==0)hrs=12;
return(hrs>12?hrs-12:hrs)+":"
+(dt.getMinutes()<10?"0":"")+dt.getMinutes()
+(hrs<12?" am":" pm");
}
this.getRioDate=function(){
var dt=new Date();
var tz=dt.getTimezoneOffset()/60;
var dtz=tz-(timeZone);
var hrs=dt.getHours();
hrs+=dtz;
if(hrs>24)hrs-=24;
else if(hrs<0)hrs+=24;
dt.setHours(hrs);
return dt;
}
}
return new construct();
}
