jsret=(function(owner){show_html= function(url){Ext.get('main').getUpdater().update({url:url})};Ext.BLANK_IMAGE_URL='/ext/resources/images/default/s.gif';Ext.onReady(function(){Ext.QuickTips.init();Rwt={};Rwt.register={};owner=Rwt;var errJs=function(response,options){alert('error');};var exeJs=function(xhttp){var ret=eval(xhttp.responseText);if(ret.id){Rwt.register[ret.id]=ret;}ret(Rwt);};var getJs=function(url,id){if(Rwt.register[id]){Rwt.register[id](Rwt)}else{Ext.Ajax.request({url: url,success: exeJs,failure: errJs});}};Rwt.getJs= getJs;Rwt.debug= function(text){if(!Rwt.debugWindow){Rwt.debugWindow=new Ext.Window({title:'Rwt debug window',width:200,height:200,x:document.body.getBoundingClientRect().right-200,y:0,autoScroll:true ,closeAction:'hide',tbar:[{text:'Clear',handler:function(){while(Rwt.debugWindow.body.first()){Rwt.debugWindow.body.first().remove()}}}]});Rwt.debugWindow.show();};var p=document.createElement('p');p.textContent= text;Rwt.debugWindow.body.appendChild(p);if(Rwt.debugWindow.hidden){Rwt.debugWindow.show()};};Rwt.message=function(title,message){Ext.Msg.alert(title,message)};var v3=new Ext.Button({autoWidth:true,text:'',v:'v3',iconCls:'US'});v3.on('click',function(){window.location='/desktop/language/en';});var v4=new Ext.Button({autoWidth:true,text:'',v:'v4',iconCls:'BR'});v4.on('click',function(){window.location='/desktop/language/pt-BR';});var v6={text:'What is this?',v:'v6',handler:function(){Ext.get('main').getUpdater().update({url:'/en_what_is_this.html'})}};var v7={text:'Getting started',v:'v7',handler:function(){show_html('/en_getting_started.html')}};var v8={text:'Examples',v:'v8',handler:function(){window.open('/desktop/examples')}};var v9={text:'User\'s manual',v:'v9',handler:function(){window.open('http://docs.google.com/Doc?id=dpmc7mb_5cf3wkjfp')}};var v10={text:'How to install this application',v:'v10',handler:function(){show_html('/en_install.html')}};var v5={menu:[v6,v7,v8,v9,v10],text:'Rwt',v:'v5'};var v12={text:'First window',v:'v12',handler:getJs.createCallback('/test/first')};var v11={menu:[v12],text:'Tests',v:'v11'};var tb=new Ext.Toolbar({items:[v3,v4,v5,v11],v:'v2'});if(!Ext.get('tb')){var div=document.createElement("div");div.setAttribute('id','tb');document.getElementsByTagName("body")[0].appendChild(div)}tb.render('tb');if(!owner.tb){owner.tb=tb}});});jsret();