function welcome(){if(typeof startUpWindow!="undefined")showWindow(startUpWindow);else if(document.cookie.indexOf("welcomeWin")==-1){document.cookie="welcomeWin=1; path=/;";var n=desktopApp.getDesktop().createWindow({id:"welcome-win",title:"Bienvenido - Welcome - Bem-vindo",width:600,height:400,iconCls:"scientia",shim:!1,border:!1,layoutConfig:{animate:!0},html:'<iframe frameborder="0" width="100%" height="100%" src="Welcome.html"></iframe>'});n.show()}}var windowIndex,tutNewAccountWindow,tutOutlookWindow,tutOutExpWindow,tutFilezillaWindow,tutThunderWindow,HostingWindowInit,contactForm,mainPanel,clientsWin,coursesWin,CourseChooser,CourseChooserFirst;Ext.BLANK_IMAGE_URL="images/s.gif",windowIndex=0,MyDesktop=new Ext.app.App({init:function(){Ext.QuickTips.init()},getModules:function(){return tutNewAccountWindow=new MyDesktop.TutNewAccountWindow,tutOutlookWindow=new MyDesktop.TutOutlookWindow,tutOutExpWindow=new MyDesktop.TutOutExpWindow,tutFilezillaWindow=new MyDesktop.TutFilezillaWindow,tutThunderWindow=new MyDesktop.TutThunderWindow,[new MyDesktop.WeWindow,new MyDesktop.ServicesWindow,new MyDesktop.ContactWindow,new MyDesktop.HostingWindow,new MyDesktop.FeedWindow,new MyDesktop.ClientsWindow,new MyDesktop.TutorialsWindow,new MyDesktop.GlossaryWindow,new MyDesktop.CoursesWindow,new MyDesktop.DownloadsWindow]},getStartConfig:function(){return{title:resTitle,iconCls:"scientia",toolItems:[{text:resAdministrate,iconCls:"admin-sm",scope:this,handler:function(){soundManager.play("newwindow"),window.open("http://admin.scientia.com.ar")}},{text:"Webmail",iconCls:"webmail-sm",scope:this,handler:function(){soundManager.play("newwindow"),window.open("http://mail.scientia.com.ar")}},"-",{text:resForum,iconCls:"forum-sm",scope:this,handler:function(){soundManager.play("newwindow"),window.open("http://foro.scientia.com.ar")}},{text:resBlog,iconCls:"blog-sm",scope:this,handler:function(){soundManager.play("newwindow"),window.open("http://www.programandoamedianoche.com")}}]}}}),MyDesktop.WeWindow=Ext.extend(Ext.app.Module,{id:"we-win",init:function(){this.launcher={text:resWe,iconCls:"we-sm",handler:this.createWindow,scope:this}},createWindow:function(){var t=this.app.getDesktop(),n=t.getWindow("we-win");n||(n=t.createWindow({id:"we-win",title:resWe,width:550,height:400,iconCls:"we",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"accordion",border:!1,layoutConfig:{animate:!0},items:[{title:resWhoAreWe,lines:!1,autoScroll:!0,html:'<p class="we-who"><img src="images/s.gif" align="left" />'+resWhoAreWe_Content+'</p><p class="we-who">'+resContactSentence+"</p>",listeners:{beforeExpand:function(){soundManager.play("default")}}},{title:resQualityPolicy,html:'<p class="we-qp"><img src="images/s.gif" align="left" />'+resQualityPolicy_Content+"</p>",autoScroll:!0,listeners:{beforeExpand:function(){soundManager.play("default")}}},{title:resVision,html:'<p class="we-vision"><img src="images/s.gif" align="left" />'+resVision_Content+"</p>",autoScroll:!0,listeners:{beforeExpand:function(){soundManager.play("default")}}},{title:resScope,html:'<p class="we-scope"><img src="images/s.gif" align="left" />'+resScope_Content+"</p>",autoScroll:!0,listeners:{beforeExpand:function(){soundManager.play("default")}}},{title:resMission,html:'<p class="we-mission"><img src="images/s.gif" align="left" />'+resMission_Content+"</p>",autoScroll:!0,listeners:{beforeExpand:function(){soundManager.play("default")}}}]})),n.show()}}),MyDesktop.ServicesWindow=Ext.extend(Ext.app.Module,{id:"services-win",init:function(){this.launcher={text:resServices,iconCls:"services-sm",handler:this.createWindow,scope:this}},createWindow:function(){var t=this.app.getDesktop(),n=t.getWindow("services-win");n||(n=t.createWindow({id:"services-win",title:resServices,width:500,height:390,iconCls:"services",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"accordion",border:!1,layoutConfig:{animate:!0},items:[{title:resService_SoftwareDevelopment,lines:!1,autoScroll:!0,html:'<p class="services-development"><img src="images/s.gif" align="left" />'+resService_SoftwareDevelopment_Content+'</p><p class="services-development">'+resContactSentence+"</p>",listeners:{beforeExpand:function(){soundManager.play("default")}}},{title:resService_Training,html:'<p class="services-training"><img src="images/s.gif" align="left" />'+resService_Training_Content+'</p><p class="services-training">'+resCoursesSentence+'</p><p class="services-training">'+resContactSentence+"</p>",autoScroll:!0,listeners:{beforeExpand:function(){soundManager.play("default")}}},{title:resService_Hosting,html:'<p class="services-hosting"><img src="images/s.gif" align="left" />'+resService_Hosting_Content+'</p><p class="services-hosting">'+resContactSentence+"</p>",autoScroll:!0,listeners:{beforeExpand:function(){soundManager.play("default")}}}]})),n.show()}}),HostingWindowInit=!1,MyDesktop.HostingWindow=Ext.extend(Ext.app.Module,{id:"hosting-win",init:function(){this.launcher={text:resHosting,iconCls:"hosting-sm",handler:this.createWindow,scope:this}},createWindow:function(){var u=this.app.getDesktop(),t=u.getWindow("hosting-win");Ext.grid.RowExpander=function(n){Ext.apply(this,n),this.addEvents({beforeexpand:!0,expand:!0,beforecollapse:!0,collapse:!0}),Ext.grid.RowExpander.superclass.constructor.call(this),this.tpl&&(typeof this.tpl=="string"&&(this.tpl=new Ext.Template(this.tpl)),this.tpl.compile()),this.state={},this.bodyContent={}},Ext.grid.RowExpander=function(n){Ext.apply(this,n),this.addEvents({beforeexpand:!0,expand:!0,beforecollapse:!0,collapse:!0}),Ext.grid.RowExpander.superclass.constructor.call(this),this.tpl&&(typeof this.tpl=="string"&&(this.tpl=new Ext.Template(this.tpl)),this.tpl.compile()),this.state={},this.bodyContent={}},Ext.extend(Ext.grid.RowExpander,Ext.util.Observable,{header:"",width:20,sortable:!1,fixed:!0,menuDisabled:!0,dataIndex:"",id:"expander",lazyRender:!0,enableCaching:!0,getRowClass:function(n,t,i){i.cols=i.cols-1;var u=this.bodyContent[n.id];return u||this.lazyRender||(u=this.getBodyContent(n,t)),u&&(i.body=u),this.state[n.id]?"x-grid3-row-expanded":"x-grid3-row-collapsed"},init:function(n){this.grid=n;var t=n.getView();t.getRowClass=this.getRowClass.createDelegate(this),t.enableRowBody=!0;n.on("render",function(){t.mainBody.on("mousedown",this.onMouseDown,this)},this);HostingWindowInit=!0},getBodyContent:function(n){if(!this.enableCaching)return this.tpl.apply(n.data);var i=this.bodyContent[n.id];return i||(i=this.tpl.apply(n.data),this.bodyContent[n.id]=i),i},onMouseDown:function(n,t){if(t.className=="x-grid3-row-expander"){n.stopEvent();var i=n.getTarget(".x-grid3-row");this.toggleRow(i)}},renderer:function(n,t){return t.cellAttr='rowspan="2"','<div class="x-grid3-row-expander">&#160;</div>'},beforeExpand:function(n,t,i){return this.fireEvent("beforeexpand",this,n,t,i)!==!1?(this.tpl&&this.lazyRender&&(t.innerHTML=this.getBodyContent(n,i)),!0):!1},toggleRow:function(n){soundManager.play("default"),typeof n=="number"&&(n=this.grid.view.getRow(n)),this[Ext.fly(n).hasClass("x-grid3-row-collapsed")?"expandRow":"collapseRow"](n)},expandRow:function(n){typeof n=="number"&&(n=this.grid.view.getRow(n));var t=this.grid.store.getAt(n.rowIndex),i=Ext.DomQuery.selectNode("tr:nth(2) div.x-grid3-row-body",n);this.beforeExpand(t,i,n.rowIndex)&&(this.state[t.id]=!0,Ext.fly(n).replaceClass("x-grid3-row-collapsed","x-grid3-row-expanded"),this.fireEvent("expand",this,t,i,n.rowIndex))},collapseRow:function(n){typeof n=="number"&&(n=this.grid.view.getRow(n));var t=this.grid.store.getAt(n.rowIndex),i=Ext.fly(n).child("tr:nth(1) div.x-grid3-row-body",!0);this.fireEvent("beforcollapse",this,t,i,n.rowIndex)!==!1&&(this.state[t.id]=!1,Ext.fly(n).replaceClass("x-grid3-row-expanded","x-grid3-row-collapsed"),this.fireEvent("collapse",this,t,i,n.rowIndex))}});if(!t){var n=Ext.grid,f=new Ext.data.ArrayReader({},[{name:"service"},{name:"desc"}]),i=new n.RowExpander({tpl:new Ext.Template('<hr/><p style="line-height: 17px;padding-top: 0px;">{desc}</p>')}),r=new n.RowExpander({tpl:new Ext.Template('<hr/><p style="line-height: 17px;padding-top: 0px;">{desc}</p>')});t=u.createWindow({id:"hosting-win",title:resHosting,width:500,height:365,iconCls:"hosting",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"fit",border:!1,items:[new Ext.TabPanel({activeTab:0,width:600,height:250,plain:!0,defaults:{autoScroll:!0},listeners:{beforetabchange:function(){HostingWindowInit?HostingWindowInit=!1:soundManager.play("default")}},items:[{title:resDescription,html:'<p class="hosting-description"><img src="images/s.gif" align="left" />'+resHosting_Description+'</p><p class="hosting-description">'+resContactSentence+"</p>"},new n.GridPanel({title:"Windows",iconCls:"win",cls:"x-panel-grid",enableHdMenu:!1,store:new Ext.data.Store({reader:f,data:[["Windows Server 2003",resHosting_Win2k3],["ASP",resHosting_ASP],["ASP.NET",resHosting_ASPNET],["PHP",resHosting_PHP],["MySQL",resHosting_MySQL],["SQL Server",resHosting_SQLServer],["Webmail",resHosting_Webmail],["AntiSpam",resHosting_AntiSpam],[resCDOComponent,resHosting_CDO],[".NET Framework",resHosting_NET]]}),cm:new n.ColumnModel([i,{dataIndex:"service",header:resServices,sortable:!1}]),viewConfig:{forceFit:!0},plugins:i,collapsible:!0}),new n.GridPanel({title:"Linux",iconCls:"tux",cls:"x-panel-grid",enableHdMenu:!1,store:new Ext.data.Store({reader:f,data:[["Linux",resHosting_Linux],["ASP",resHosting_ASP],["PHP",resHosting_PHP],["MySQL",resHosting_MySQL],["SQL Server",resHosting_SQLServer],["Webmail",resHosting_Webmail],["AntiSpam",resHosting_AntiSpam]]}),cm:new n.ColumnModel([r,{dataIndex:"service",header:resServices,sortable:!1}]),viewConfig:{forceFit:!0},plugins:r,collapsible:!0})]})]})}t.show()}}),MyDesktop.ContactWindow=Ext.extend(Ext.app.Module,{id:"contact-win",init:function(){this.launcher={text:resContact,iconCls:"contact-sm",handler:this.createWindow,scope:this}},createWindow:function(){var t=this.app.getDesktop(),n=t.getWindow("contact-win");contactForm=new Ext.form.FormPanel({baseCls:"x-plain",url:"save-form.php",defaultType:"textfield",waitMsgTarget:!0,labelWidth:75,title:'<table border="0" class="contactTitle"><tr><td><img src="images/s.gif" class="contact-phone" /></td><td>'+resContactTitle+'</td><td><img src="images/s.gif" class="contact-email" height="40" width="40" /></td></tr></table><hr/>',items:[{fieldLabel:resName,name:"Name",anchor:"-18",allowBlank:!1,msgTarget:"side",blankText:resRequiredField},{fieldLabel:resCompany,name:"Company",anchor:"-18"},{fieldLabel:resPhone,name:"Phone",anchor:"-18"},{fieldLabel:resEmail,name:"email",vtype:"email",msgTarget:"side",anchor:"-18",vtypeText:resIncorrectEmail,allowBlank:!1,blankText:resRequiredField},{hideLabel:!0,name:"Body",xtype:"textarea",allowBlank:!1,anchor:"-18 -104",msgTarget:"side",blankText:resRequiredField}]}),n||(n=t.createWindow({id:"contact-win",title:resContact,width:500,height:350,minWidth:300,minHeight:250,iconCls:"contact",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"fit",border:!1,plain:!0,bodyStyle:"padding:5px;",buttonAlign:"center",layoutConfig:{animate:!0},items:contactForm,buttons:[{text:resSend,handler:function(){contactForm.getForm().isValid()?(Ext.MessageBox.show({msg:resSendingMail,progressText:resPleaseWait,width:300,wait:!0,waitConfig:{interval:200},icon:"ext-mb-sendMail"}),soundManager.play("default"),contactForm.getForm().submit({url:"Contact.ashx",success:function(){soundManager.play("process"),Ext.MessageBox.hide(),Ext.MessageBox.show({title:resTitle,msg:resMailSended,width:300,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.INFO,fn:function(){n.close()}})},failure:function(){soundManager.play("error"),Ext.MessageBox.hide(),Ext.MessageBox.show({title:resTitle,msg:resMailNotSended,width:300,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR})}})):soundManager.play("error")}},{text:resReset,handler:function(){soundManager.play("default"),contactForm.getForm().reset()}}]})),n.show()}}),MyDesktop.FeedWindow=Ext.extend(Ext.app.Module,{id:"feed-win",init:function(){this.launcher={text:resFeed,iconCls:"feed-sm",handler:this.createWindow,scope:this}},createWindow:function(){var t=this.app.getDesktop(),n=t.getWindow("feed-win");mainPanel=new MainPanel,n||(n=t.createWindow({id:"feed-win",title:resFeed,width:"90%",height:500,iconCls:"feed",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"fit",border:!1,items:[mainPanel],layoutConfig:{animate:!0}}),mainPanel.loadFeed({text:"Programando a medianoche"})),n.show()}}),MyDesktop.GlossaryTerms=function(n){var n=n||{};Ext.applyIf(n,{reader:new Ext.data.XmlReader({record:"Term",id:"Name",totalRecords:"@total"},["Name","Description"])}),MyDesktop.GlossaryTerms.superclass.constructor.call(this,n)},Ext.extend(MyDesktop.GlossaryTerms,Ext.data.Store),MyDesktop.GlossaryGrid=Ext.extend(Ext.grid.GridPanel,{initComponent:function(){Ext.apply(this,{columns:[{header:resTerm,dataIndex:"Name",sortable:!0}],enableHdMenu:!1,sm:new Ext.grid.RowSelectionModel({singleSelect:!0}),store:new MyDesktop.GlossaryTerms({storeId:"gridGlossaryTerms",url:desktopLang+"/Glossary.xml"}),viewConfig:{forceFit:!0}}),MyDesktop.GlossaryGrid.superclass.initComponent.call(this)}}),Ext.reg("GlossaryGrid",MyDesktop.GlossaryGrid),MyDesktop.GlossaryDetail=Ext.extend(Ext.Panel,{tplMarkup:["<b>"+resTerm+":</b> {Name}<br/>","<b>"+resDescription+":</b> {Description}"],startingMarkup:resSelectTerm,initComponent:function(){this.tpl=new Ext.Template(this.tplMarkup),Ext.apply(this,{bodyStyle:{background:"#ffffff",padding:"7px"},html:this.startingMarkup}),MyDesktop.GlossaryDetail.superclass.initComponent.call(this)},updateDetail:function(n){this.tpl.overwrite(this.body,n)}}),Ext.reg("GlossaryDetail",MyDesktop.GlossaryDetail),MyDesktop.GlossaryWindow=Ext.extend(Ext.app.Module,{id:"glossary-win",init:function(){this.launcher={text:resGlossary,iconCls:"glossary-sm",handler:this.createWindow,scope:this}},createWindow:function(){var i=this.app.getDesktop(),n=i.getWindow("glossary-win"),t;n||(glossaryFirst=!0,n=i.createWindow({id:"glossary-win",title:resGlossary,width:500,height:400,iconCls:"glossary",shim:!1,layout:"border",border:!1,layoutConfig:{animate:!0},items:[{xtype:"GlossaryGrid",itemId:"gridPanel",region:"north",height:210,split:!0},{xtype:"GlossaryDetail",itemId:"detailPanel",region:"center",cls:"sliding",autoScroll:!0}]})),n.show(),t=n.getComponent("gridPanel").getSelectionModel();t.on("rowselect",this.onRowSelect,this);Ext.StoreMgr.get("gridGlossaryTerms").load()},onRowSelect:function(n,t,i){soundManager.play("slide");var r=this.app.getDesktop().getWindow("glossary-win").getComponent("detailPanel");r.updateDetail(i.data),r.body.slideIn("t",{stopFx:!0,duration:.2})}}),MyDesktop.ClientsWindow=Ext.extend(Ext.app.Module,{id:"clients-win",init:function(){this.launcher={text:resClients,handler:this.createWindow,scope:this}},createWindow:function(){var t=this.app.getDesktop(),n=t.getWindow("clients-win");n||(n=t.createWindow({id:"clients-win",title:resClients,width:530,height:400,background:"#ffffff",html:'<p align="center" class="imagesBorder"><img src="images/clients/site/AFClassic.gif" title="AFClassic"/><img src="images/clients/site/BairesWeb.gif" title="BairesWeb"/><img src="images/clients/site/Banelco.gif" title="Banelco"/><img src="images/clients/site/Bimbo.gif" title="Bimbo de Argentina"/><img src="images/clients/site/BPScouts.gif" title="Baden Powell Scouts Argentina"/><img src="images/clients/site/Budweiser.gif" title="Budweiser"/><img src="images/clients/site/CajVal.gif" title="Caja de Valores"/><img src="images/clients/site/Canchallena.gif" title="Canchallena"/><img src="images/clients/site/CDA.gif" title="CDA"/><img src="images/clients/site/ClaudioG.gif" title="Claudio Guiragossian"/><img src="images/clients/site/Conpaini.gif" title="Conpaini"/><img src="images/clients/site/Cooperativa-Luz-y-Fuerza.gif" title="Cooperativa de Seguros Luz y Fuerza"/><img src="images/clients/site/Danone.gif" title="Danone"/><img src="images/clients/site/DGB.gif" title="Dobniewski & Garc?a Berros Abogados"/><img src="images/clients/site/ECPS.gif" title="Gesti&oacute;n Inform&aacute;tica ECPS"/><img src="images/clients/site/EfectivoSi.gif" title="Efectivo S&iacute;"/><img src="images/clients/site/ESR.gif" title="ESR & Asociados"/><img src="images/clients/site/ExCle.gif" title="Ex-Cl&eacute; Soluciones Biom&eacute;tricas"/><img src="images/clients/site/FAPEDEC.gif" title="Fundaci&oacute;n Argentina para el Desarrollo de la Educaci&oacute;n y la Cultura"/><img src="images/clients/site/Fiat.gif" title="Fiat Argentina"/><img src="images/clients/site/GeoExplora.gif" title="GeoExplora"/><img src="images/clients/site/ImagenGrafica.gif" title="Imagen Gr&aacute;fica"/><img src="images/clients/site/LG.gif" title="LG"/><img src="images/clients/site/Loreal.gif" title="L\'Or&eacute;al"/><img src="images/clients/site/Maybelline.gif" title="Maybelline"/><img src="images/clients/site/Medcenter.gif" title="Medcenter"/><img src="images/clients/site/Nestle.gif" title="Nestle"/><img src="images/clients/site/KraftFoods.gif" title="Kraft Foods"/><img src="images/clients/site/OpticasLam.gif" title="&Oacute;pticas Lam"/><img src="images/clients/site/PagoMisCuentas.gif" title="Pago mis cuentas"/><img src="images/clients/site/PaseosImaginarios.gif" title="Paseos imaginarios"/><img src="images/clients/site/Pedigree.gif" title="Pedigree"/><img src="images/clients/site/PoscastVision.gif" title="Podcast Vision"/><img src="images/clients/site/SanofiAventis.gif" title="Sanofi-Aventis"/><img src="images/clients/site/Schick.gif" title="Schick"/><img src="images/clients/site/Ser.gif" title="Ser"/><img src="images/clients/site/Smartfield.gif" title="Smartfield"/><img src="images/clients/site/SPC.gif" title="Sanatorio Privado del Centro"/><img src="images/clients/site/TripleD.gif" title="DDD S.A."/></p>',iconCls:"clients",shim:!1,border:!1,autoScroll:!0,layoutConfig:{animate:!0}})),n.show()}}),MyDesktop.TutorialsWindow=Ext.extend(Ext.app.Module,{id:"tut-win",init:function(){this.launcher={text:resTutorials,iconCls:"tut-sm",handler:this.createWindow,scope:this,windowId:windowIndex,menu:{cls:"whiteBack",items:[{text:resCreateEmailAccount,iconCls:"tut-newaccount-sm",handler:tutNewAccountWindow.createWindow,scope:this,windowId:windowIndex++},{text:"Filezilla",iconCls:"tut-filezilla-sm",handler:tutFilezillaWindow.createWindow,scope:this,windowId:windowIndex++},{text:"Outlook",iconCls:"tut-outlook-sm",handler:tutOutlookWindow.createWindow,scope:this,windowId:windowIndex++},{text:"Outlook Express",iconCls:"tut-outlookexp-sm",handler:tutOutExpWindow.createWindow,scope:this,windowId:windowIndex++},{text:"Thunderbird",iconCls:"tut-thunderbird-sm",handler:tutThunderWindow.createWindow,scope:this,windowId:windowIndex++}]}}},createWindow:function(){var i=this.app.getDesktop(),t=i.getWindow("tut-win"),n;t||(t=i.createWindow({id:"tut-win",title:resTutorials,width:400,height:120,iconCls:"tut",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"fit",border:!1,layoutConfig:{animate:!0},items:[{region:"center",autoScroll:!0,html:'<div id="tut-shortcuts"><div class="tutorial tut-newaccount-win" id="tutNewAccount-shortcut"><a onfocus="this.blur();" href="#"><img src="images/s.gif"/><br/>'+resCreateEmailAccount+'</a></div><div class="tutorial tut-filezilla-win" id="tutFilezilla-shortcut"><a onfocus="this.blur();" href="#"><img src="images/s.gif"/><br/>FileZilla</a></div><div class="tutorial tut-outlook-win" id="tutOutlook-shortcut"><a onfocus="this.blur();" href="#"><img src="images/s.gif"/><br/>Outlook</a></div><div class="tutorial tut-outexp-win" id="tutOutExp-shortcut"><a onfocus="this.blur();" href="#"><img src="images/s.gif"/><br/>Outlook Express</a></div><div class="tutorial tut-thunder-win" id="tutThunder-shortcut"><a onfocus="this.blur();" href="#"><img src="images/s.gif"/><br/>Thunderbird</a></div></div>'}]})),t.show(),n=Ext.get("tut-shortcuts");n.on("click",function(t,i){if(i=t.getTarget("div",n)){t.stopEvent();var r=eval(i.id.replace("-shortcut","")+"Window");r&&r.createWindow()}})}}),MyDesktop.TutNewAccountWindow=Ext.extend(Ext.app.Module,{id:"tut-newaccount",init:function(){this.launcher={handler:this.createWindow}},createWindow:function(){var t=desktopApp.getDesktop(),n=t.getWindow("tut-newaccount-win");n||(n=t.createWindow({id:"tut-newaccount-win",title:resTutorial+": "+resCreateEmailAccount,width:750,height:500,iconCls:"tut-newaccount",border:!1,layoutConfig:{animate:!0},html:'<iframe frameborder="0" width="100%" height="100%" src="'+desktopLang+'/Tutorial/NewAccount.html"></iframe>'})),n.show()}}),MyDesktop.TutOutlookWindow=Ext.extend(Ext.app.Module,{id:"tut-outlook",init:function(){this.launcher={handler:this.createWindow}},createWindow:function(){var t=desktopApp.getDesktop(),n=t.getWindow("tut-outlook-win");n||(n=t.createWindow({id:"tut-outlook-win",title:resTutorial+": Outlook",width:700,height:500,iconCls:"tut-outlook",border:!1,layoutConfig:{animate:!0},html:'<iframe frameborder="0" width="100%" height="100%" src="'+desktopLang+'/Tutorial/Outlook.html"></iframe>'})),n.show()}}),MyDesktop.TutOutExpWindow=Ext.extend(Ext.app.Module,{id:"tut-outexp",init:function(){this.launcher={handler:this.createWindow}},createWindow:function(){var t=desktopApp.getDesktop(),n=t.getWindow("tut-outexp-win");n||(n=t.createWindow({id:"tut-outexp-win",title:resTutorial+": Outlook Express",width:730,height:500,iconCls:"tut-outlookexp",border:!1,layoutConfig:{animate:!0},html:'<iframe frameborder="0" width="100%" height="100%" src="'+desktopLang+'/Tutorial/OutlookExpress.html"></iframe>'})),n.show()}}),MyDesktop.TutFilezillaWindow=Ext.extend(Ext.app.Module,{id:"tut-filezilla",init:function(){this.launcher={handler:this.createWindow}},createWindow:function(){var t=desktopApp.getDesktop(),n=t.getWindow("tut-filezilla-win");n||(n=t.createWindow({id:"tut-filezilla-win",title:resTutorial+": Filezilla",width:700,height:500,iconCls:"tut-filezilla",border:!1,layoutConfig:{animate:!0},html:'<iframe frameborder="0" width="100%" height="100%" src="'+desktopLang+'/Tutorial/Filezilla.html"></iframe>'})),n.show()}}),MyDesktop.TutThunderWindow=Ext.extend(Ext.app.Module,{id:"tut-thunder",init:function(){this.launcher={handler:this.createWindow}},createWindow:function(){var t=desktopApp.getDesktop(),n=t.getWindow("tut-thunder-win");n||(n=t.createWindow({id:"tut-thunder-win",title:resTutorial+": Thunderbird",width:670,height:500,iconCls:"tut-thunderbird",border:!1,layoutConfig:{animate:!0},html:'<iframe frameborder="0" width="100%" height="100%" src="'+desktopLang+'/Tutorial/Thunderbird.html"></iframe>'})),n.show()}}),MyDesktop.CoursesWindow=Ext.extend(Ext.app.Module,{id:"courses-win",init:function(){this.launcher={text:resCourses,iconCls:"courses-sm",handler:this.createWindow,scope:this}},createWindow:function(){coursesWin&&coursesWin.view.store?coursesWin.win.show():(coursesWin=new CourseChooser({url:desktopLang+"/Courses.txt",width:650,height:530}),coursesWin.show(this.app.getDesktop()))}}),CourseChooser=function(n){this.config=n},CourseChooserFirst=!1,CourseChooser.prototype={lookup:{},show:function(n){var i,t;this.win||(this.initTemplates(),this.store=new Ext.data.JsonStore({url:this.config.url,root:"courses",fields:["id","name","pdf","xps","xpsSize","pdfSize","duration","note","prerequisite","details"],listeners:{load:{fn:function(){this.view.select(0)},scope:this,single:!0}}}),this.store.load(),CourseChooserFirst=!0,i=function(n){return n.shortName=n.name.ellipse(14),this.lookup[n.name]=n,n},this.view=new Ext.DataView({tpl:this.thumbTemplate,singleSelect:!0,overClass:"x-view-over",itemSelector:"div.thumb-wrap",emptyText:'<div style="padding:10px;">'+resNoCoursesFound+"</div>",store:this.store,listeners:{selectionchange:{fn:this.showDetails,scope:this,buffer:100},dblclick:{fn:this.doCallback,scope:this},loadexception:{fn:this.onLoadException,scope:this},beforeselect:{fn:function(n){return n.store.getRange().length>0}}},prepareData:i.createDelegate(this)}),t={title:resCourses,id:"course-chooser-dlg",layout:"border",width:650,height:530,minWidth:650,minHeight:300,border:!1,items:[{region:"north",html:'<div class="coursesHeader"><table width="88%" border="0"><tr><td>'+resCoursesHeader+"</td></tr></table></div>",height:100,autoScroll:!0},{id:"course-chooser-view",region:"west",autoScroll:!0,items:this.view,width:290},{id:"course-detail-panel",region:"center",cls:"sliding",autoScroll:!0}],iconCls:"courses"},Ext.apply(t,this.config),this.win=n.createWindow(t)),this.win.show()},initTemplates:function(){this.thumbTemplate=new Ext.XTemplate('<tpl for=".">','<div class="thumb-wrap" id="{name}">','<div class="thumb"><img src="Images/Courses/{id}.png" title="{name}"></div>',"<span>{name}</span></div>","</tpl>"),this.thumbTemplate.compile(),this.detailsTemplate=new Ext.XTemplate('<div class="details">','<table border="0"><tr><td><img src="Images/Courses/{id}.gif" title="{name}"></td>','<td class="courseTitle">{name}</td></tr></table>','<div class="details-info">',"<b>"+resCourseDuration+":</b>",'<span><ul class="courseList"><tpl for="duration"><li>{.}</li></tpl></ul></span>','<tpl if="prerequisite">',"<b>"+resPrerequisites+":</b>",'<span><ul class="courseList"><tpl for="prerequisite">',"<li>{.}</li>","</tpl></ul></span>","</tpl>",'<tpl if="note">',"<b>"+resNote+":</b>","<span>{note}</span>","</tpl>","<b>"+resDownloadTopics+":</b>",'<table align="center"><tr><td align="center">','<a href="Download.ashx?id={pdf}" target="_blank" onfocus="this.blur();"><img src="images/s.gif" class="iconPDF" /></a>','</td><td align="center">','<a href="Download.ashx?id={xps}" target="_blank" onfocus="this.blur();"><img src="images/s.gif" class="iconXPS" /></a>','</td></tr><tr><td align="center">','<a href="Download.ashx?id={pdf}" target="_blank" onfocus="this.blur();" class="fileDescription">Adobe Acrobat (PDF)<br/>({pdfSize})</a>','</td><td align="center">','<a href="Download.ashx?id={xps}" target="_blank" onfocus="this.blur();" class="fileDescription">XML Paper Specification (XPS)<br/>({xpsSize})</a>',"</td></tr></table>","<b>"+resCourseTopics+":</b>",'<span><ul class="courseList"><tpl for="details">',"<li>{item}</li>",'<tpl if="detail">','<ul class="courseList"><tpl for="detail">',"<li>{.}</li>","</tpl></ul>","</tpl>","</tpl></ul></span>","</div>","</div>"),this.detailsTemplate.compile()},showDetails:function(){var n,t,i;CourseChooserFirst?CourseChooserFirst=!1:soundManager.play("slide"),n=this.view.getSelectedNodes(),t=Ext.getCmp("course-detail-panel").body,n&&n.length>0?(n=n[0],i=this.lookup[n.id],t.hide(),this.detailsTemplate.overwrite(t,i),t.slideIn("l",{stopFx:!0,duration:.2})):t.update("")},onLoadException:function(){this.view.getEl().update('<div style="padding:10px;">Error loading images.</div>')}},String.prototype.ellipse=function(n){return this.length>n?this.substr(0,n-2)+"...":this},MyDesktop.DownloadsWindow=Ext.extend(Ext.app.Module,{id:"down-win",init:function(){this.launcher={text:resDownloads,iconCls:"down-sm",handler:this.createWindow,scope:this,windowId:windowIndex,menu:{cls:"whiteBack",items:[{text:"Scientia&reg; Resource Translator (606 KB)",iconCls:"down-srt-sm",handler:function(){window.open("download.ashx?id=1")},scope:this,windowId:windowIndex++}]}}},createWindow:function(){var t=this.app.getDesktop(),n=t.getWindow("down-win");n||(n=t.createWindow({id:"down-win",title:resDownloads,width:200,height:150,iconCls:"down",shim:!1,animCollapse:!0,constrainHeader:!0,layout:"fit",border:!1,layoutConfig:{animate:!0},items:[{region:"center",autoScroll:!0,html:'<div id="down-shortcuts"><div class="downloads down-srt-win" id="SRT-shortcut"><a onfocus="this.blur();" href="download.ashx?id=1"><img src="images/s.gif"/><br/>Scientia&reg; Resource Translator (606 KB)</a></div></div>'}]})),n.show()}})
