/*! sfera-webapp - v0.0.2 */


Sfera.Components.create("Interface",{presets:["Visibility","Size"],attributes:{title:{type:"string",doc:"Title visible in the browser's title bar"},skin:{default:"default",update:function(){Sfera.client.skin=new(Sfera.Skins[Sfera.Utils.capitalize(this.value)])}},zoom:{type:"float",update:function(){if(1!=this.value){var e=document.getElementsByTagName("BODY")[0],t="scale("+this.value+","+this.value+")";"IE"==Sfera.Device.browser?(e.style.msTransform=t,e.style.msTransformOrigin="0% 0%"):(e.style.zoom=100*this.value+"%",e.style.OTransform=t,e.style.MozTransform=t,e.style.WebkitTransformOrigin="0 0",e.style.transformOrigin="0% 0%"),e.style.width="0px",e.style.height="0px"}}},fit:{type:"boolean"},autoReload:{type:"boolean",default:"true"},bodyBackgroundColor:{type:"color",update:function(){document.getElementsByTagName("body")[0].style.backgroundColor=this.value}},frameBackgroundColor:{type:"color",update:function(){this.component.element.style.backgroundColor=this.value}}}});