QoDesk.TabEqraJukebox = Ext.extend(Ext.app.Module, {		moduleType : 'eqra',    moduleId : 'eqra-jukebox',        init : function(){        this.launcher = {            handler : this.createWindow,            iconCls:'jukebox',   //'tabs',            scope: this,            shortcutIconCls: 'demo-jukebox-shortcut', //'demo-tab-shortcut',            text: 'e-Voice',            tooltip: 'e-Jukebox'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();        var win = desktop.getWindow('jukebox');        if(!win){              win = desktop.createWindow({               id: 'jukebox',               title:'e-Voice',               pageX :10,              width:900,              height:480,               iconCls:'demo-jukebox-shortcut', // 'icon-grid',          //      shim:false,                animCollapse:false,                border:false,                constrainHeader:true,				 //closable : false,			 layoutOnTabChange:true,                layout: 'fit',                items:                new Ext.TabPanel({                                 	html: '<IFRAME src="/test/ExtMedia.nsf/example_js_dynamic?OpenPage" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',				            	    autoScroll: true,                   margins:'0 0 0 0',							    border:false                             	  }),                taskbuttonTooltip: 'Recitation du coran'            });        }        win.show();}});QoDesk.TabEqraCoran = Ext.extend(Ext.app.Module, {		moduleType : 'eqra',    moduleId : 'eqra-coran',        init : function(){        this.launcher = {            handler : this.createWindow,            iconCls:'coran',     //'tabs',            scope: this,            shortcutIconCls:  'demo-coran-shortcut', //'demo-tab-shortcut',             text: 'e-Coran',            tooltip: 'e-Coran'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();        var win = desktop.getWindow('eqra1');        if(!win){            win = desktop.createWindow({                id: 'eqra1',                title:'e-coran',               width:940,                height:500, //480,               iconCls: 'icon-grid',                shim:false,                animCollapse:false,                border:false,               constrainHeader:true,				//closable : false,			    layoutOnTabChange:true,                layout: 'fit',                 items:                    new Ext.TabPanel({                                         	autoScroll: true,                            title: 'Tab Text 1',                      //      header:false,                           // html: '<IFRAME src="/test/fth.nsf/ExtPanelCoran4?openpage" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>', 					//	html: '<IFRAME src="/test/fth.nsf/e-Coran3?openpage" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',					html: '<IFRAME src="/test/fth.nsf/e-Coran9c?openpage" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',					//	html: '<IFRAME src="/test/fth.nsf/viewport?openpage" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',									 split:true,                    //collapsible: true,                    title:'South',                    margins:'0 0 0 0',										border:false                             		        }),                            taskbuttonTooltip: 'Apprentissage du coran'            });        }        win.show();}});// **************************************************  INVOCATIONQoDesk.TabEqraDoua = Ext.extend(Ext.app.Module, {		moduleType : 'eqra',    moduleId : 'eqra-doua',        init : function(){        this.launcher = {            handler : this.createWindow,             iconCls:'doua',            scope: this,          shortcutIconCls: 'demo-doua-shortcut',            text: 'e-Invocation',            tooltip: 'e-Backoffic services'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();     var win = desktop.getWindow('eqra2');        if(!win){            win = desktop.createWindow({                id: 'eqra2',                title:'e-Invocation',                width:740,                height:480,               iconCls: 'icon-grid',                shim:false,                animCollapse:false,                border:false,                constrainHeader:true,                layout: 'fit',                items:                    new Ext.TabPanel({                      	autoScroll: true,                    html: '<IFRAME src="/test/Fth.nsf/ExtPanelDoua?OpenPage" width="100%" height="100%" frameborder=0 scrolling="auto"> </IFRAME>',                    									 split:true,                    //height: 110,                    //minSize: 100,                    //maxSize: 200,                    //collapsible: true,                    title:'South',                    margins:'0 0 0 0'                    })            });        }        win.show();    }});// *******************************************************  GRAMMAIREQoDesk.TabEqraGram= Ext.extend(Ext.app.Module, {			moduleType : 'eqra',	moduleId : 'eqra-gram',        init : function(){        this.launcher = {            handler : this.createWindow,             iconCls: 'gram',               scope: this,          shortcutIconCls:'demo-gram-shortcut',         // 'demo-grid-shortcut',            text: 'e-Grammaire',            tooltip: 'e-Grammaire'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();     var win = desktop.getWindow('eqra3');        if(!win){            win = desktop.createWindow({                id: 'eqra3',                title:'e-Grammaire',                width:740,                height:480,               iconCls: 'icon-grid',                shim:false,                animCollapse:false,                border:false,                constrainHeader:true,     	                layout: 'fit',                items:                    new Ext.TabPanel({                 autoScroll: true,                    html: '<IFRAME src="/test/e-nahl2.nsf/Ext_TabGrammaire?OpenPage" width="100%" height="100%"  frameborder=0 scrolling="auto"> </IFRAME>',                   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    //collapsible: true,                    title:'South',                    margins:'0 0 0 0'                    })            });        }        win.show();    }});// ************************************************************************   CONJUGQoDesk.TabEqraConjug= Ext.extend(Ext.app.Module, {			moduleType : 'eqra',	moduleId : 'eqra-conjug',        init : function(){        this.launcher = {            handler : this.createWindow,             iconCls: 'conjug', //'icon-grid',            scope: this,          shortcutIconCls: 'demo-conjug-shortcut',            text: 'e-Conjuguaison',            tooltip: 'e-Conjuguaison'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();     var win = desktop.getWindow('eqra4');        if(!win){            win = desktop.createWindow({                id: 'eqra4',                title:'e-Conjuguaison',                width:740,                height:480,               iconCls: 'icon-grid',                shim:false,                animCollapse:false,                border:false,                constrainHeader:true,                layout: 'fit',                items:                    new Ext.TabPanel({                    autoScroll: true,                    html: '<IFRAME src="/test/e-dico.nsf/Ext_TabConjuguaison?OpenPage&link=/test/e-dico.nsf/ExtConjug!OpenPage" width="100%" height="100%"  frameborder=0 scrolling="auto"> </IFRAME>',   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    //collapsible: true,                    title:'South',                    margins:'0 0 0 0'                    })            });        }        win.show();    }});// ************************************************************************   LEXIQUEQoDesk.TabEqraLexic= Ext.extend(Ext.app.Module, {			moduleType : 'eqra',			moduleId : 'eqra-lexic',	        init : function(){        this.launcher = {            handler : this.createWindow,             iconCls: 'tabs',            scope: this,          shortcutIconCls: 'demo-tab-shortcut',            text: 'e-Lexique',            tooltip: 'e-Lexique'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();     var win = desktop.getWindow('eqra5');        if(!win){            win = desktop.createWindow({                id: 'eqra5',                title:'e-Lexique',                width:740,                height:480,               iconCls: 'icon-grid',                shim:false,                animCollapse:false,                border:false,                constrainHeader:true,                layout: 'fit',                items:                    new Ext.TabPanel({                    autoScroll: true,                    html: '<IFRAME src="/test/e-dico.nsf/Ext_TabLexique?OpenPage" width="100%" height="100%"  frameborder=0 scrolling="auto"> </IFRAME>',                   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    //collapsible: true,                    title:'South',                    margins:'0 0 0 0'                    })            });        }        win.show();    }});//********************************************** EQRA 2//**********************************  CONTACTQoDesk.TabEContact = Ext.extend(Ext.app.Module, {		moduleType : 'eqra',    moduleId : 'eqra-contact',        init : function(){        this.launcher = {            handler : this.createWindow,             iconCls: 'contact',            scope: this,            shortcutIconCls: 'demo-contact-shortcut',            text: 'e-Contact',            tooltip: 'e-Contact'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();        var win = desktop.getWindow('contact');        if(!win){            win = desktop.createWindow({                id: 'contact',                title:'e-contact',               width:940,                height:480,                 iconCls: 'bogus',                shim:false,                animCollapse:false,                border:false,                constrainHeader:true,	                layout: 'fit',                 items:                    new Ext.TabPanel({                                         	autoScroll: true,                            title: 'Contact',                            header:false,                             html: '<IFRAME src="/test/e-Base.nsf/Extcontact?openform" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',							border:false                             		        }),                            taskbuttonTooltip: 'Apprentissage du coran'            });        }        win.show();}});//**********************************  DOWNLOADQoDesk.TabEDownload = Ext.extend(Ext.app.Module, {		moduleType : 'eqra',    moduleId : 'eqra-download',        init : function(){        this.launcher = {            handler : this.createWindow,            iconCls:'download',            scope: this,            shortcutIconCls: 'demo-download-shortcut',            text: 'e-Download',            tooltip: 'e-Download'        }    },     createWindow : function(){        var desktop = this.app.getDesktop();        var win = desktop.getWindow('download');        if(!win){            win = desktop.createWindow({                id: 'download',                title:'e-contact',               width:940,                height:480,               iconCls: 'bogus',                shim:false,                animCollapse:false,                border:false,                constrainHeader:true,	                layout: 'fit',                 items:                    new Ext.TabPanel({                                         	autoScroll: true,                            title: 'Contact',                            header:false,                             html: '<IFRAME src="/test/e-Base.nsf/e-download?readForm" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',							border:false                             		        }),                            taskbuttonTooltip: 'Apprentissage du coran'            });        }        win.show();}});//******************************************  OTHERSQoDesk.BogusMenu = Ext.extend(Ext.app.Module, {	moduleType : 'menu', // required appType for a menu module	moduleId : 'demo-menu', // must match id in module.xml		menu : new Ext.menu.Menu(),	// id's of modules to add to this menu,  can't hard code them in directly.	// desktop needs to initialize them first	items : [	//	'demo-submenu',		'demo-bogus1',		'demo-bogus2','demo-bogus3','demo-bogus4'	],	init : function(){		this.launcher = {			text: 'Programmes du coran',			iconCls: 'bogus',			handler: function(){				return false;			},			menu: this.menu		}	}});QoDesk.BogusSubMenu = Ext.extend(Ext.app.Module, {	moduleType : 'menu', // required appType for a menu module	moduleId : 'demo-submenu', // must match id in module.xml		menu : new Ext.menu.Menu(),	// Id's of modules to add to this menu,  can't hard code them in directly.	// Desktop needs to initialize them first.	items : [		'demo-bogus'	],	init : function(){		this.launcher = {			text: 'Bog Sub-Menu',			iconCls: 'bogus',			handler: function(){				return false;			},			menu: this.menu		}	}});//*********************** ACCORDIONQoDesk.AccordionWindow = Ext.extend(Ext.app.Module, {    	moduleType : 'demo',	moduleId : 'demo-acc',	init : function(){		this.launcher = {            handler : this.createWindow,            iconCls:'accordion',            scope: this,            shortcutIconCls: 'demo-acc-shortcut',            text: 'Accordion Window',            tooltip: '<b>Accordion Window</b><br />A window with an accordion layout'		}	},    createWindow : function(){        var desktop = this.app.getDesktop();        var win = desktop.getWindow('acc-win');        if(!win){            win = desktop.createWindow({                id: 'acc-win',                title: 'Accordion Window',                width:250,                height:400,                iconCls: 'accordion',                shim:false,                animCollapse:false,                constrainHeader:true,                maximizable: false,                taskbuttonTooltip: '<b>Accordion Window</b><br />A window with an accordion layout',                tbar:[{                    tooltip:'<b>Rich Tooltips</b><br />Let your users know what they can do!',                    iconCls:'demo-acc-connect'                },'-',{                    tooltip:'Add a new user',                    iconCls:'demo-acc-user-add'                },' ',{                    tooltip:'Remove the selected user',                    iconCls:'demo-acc-user-delete'                }],                layout:'accordion',                layoutConfig: {                    animate:false                },                items: [                    new Ext.tree.TreePanel({                        id:'im-tree',                        title: 'Online Users',                        loader: new Ext.tree.TreeLoader(),                        rootVisible:false,                        lines:false,                        autoScroll:true,                        useArrows: true,                        tools:[{                            id:'refresh',                            on:{                                click: function(){                                    var tree = Ext.getCmp('im-tree');                                    tree.body.mask('Loading', 'x-mask-loading');                                    tree.root.reload();                                    tree.root.collapse(true, false);                                    setTimeout(function(){ // mimic a server call                                        tree.body.unmask();                                        tree.root.expand(true, true);                                    }, 1000);                                }                            }                        }],                        root: new Ext.tree.AsyncTreeNode({                            text:'Online',                            children:[{                                text:'Friends',                                expanded:true,                                children:[{                                    text:'Jack',                                    iconCls:'user',                                    leaf:true                                },{                                    text:'Brian',                                    iconCls:'user',                                    leaf:true                                },{                                    text:'Jon',                                    iconCls:'user',                                    leaf:true                                },{                                    text:'Tim',                                    iconCls:'user',                                    leaf:true                                },{                                    text:'Nige',                                    iconCls:'user',                                    leaf:true                                },{                                    text:'Fred',                                    iconCls:'user',                                    leaf:true                                },{                                    text:'Bob',                                    iconCls:'user',                                    leaf:true                                }]                            },{                                text:'Family',                                expanded:true,                                children:[{                                    text:'Kelly',                                    iconCls:'user-girl',                                    leaf:true                                },{                                    text:'Sara',                                    iconCls:'user-girl',                                    leaf:true                                },{                                    text:'Zack',                                    iconCls:'user-kid',                                    leaf:true                                },{                                    text:'John',                                    iconCls:'user-kid',                                    leaf:true                                }]                            }]                        })                    }), {                        title: 'Settings',                        html:'<p>Something useful would be in here.</p>',                        autoScroll:true                    },{                        title: 'Even More Stuff',                        html : '<p>Something useful would be in here.</p>'                    },{                        title: 'My Stuff',                        html : '<p>Something useful would be in here.</p>'                    }                ]            });        }        win.show();    }});//   program 1 QoDesk.BogusModule1= Ext.extend(Ext.app.Module, {	moduleType : 'demo',	moduleId : 'demo-bogus1',		detailModule : null,		init : function(){				this.launcher = {			handler: this.createWindow,			iconCls: 'bogus',			scope: this,			shortcutIconCls: 'demo-bogus-shortcut',			text: 'quranexplorer.com',			tooltip: 'quranexplorer.com'		}				this.detailModule1 = new QoDesk.BogusDetailModule();	},	createWindow : function(){		var desktop = this.app.getDesktop();		var win = desktop.getWindow('bogus-win');		if(!win){            win = desktop.createWindow({                autoScroll: true,                id: 'bogus-win',                title:'quranexplorer.com',                width:640,                height:480,                iconCls: 'bogus',                   items:                    new Ext.TabPanel({                    html: '<IFRAME src="http://quranexplorer.com/quran" width="100%" height="100%"  frameborder=0 scrolling="auto"> </IFRAME>',                   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    margins:'0 0 0 0'                    }),                //items: new QoDesk.BogusModule1.NavPanel({owner: this, id: 'nav-panel'}),                shim:false,                animCollapse:false,                constrainHeader:true,              //  maximizable: false,                tbar: [{                	handler: this.showDialog,                	scope: this,                	text: 'Open Dialog'                }],                taskbuttonTooltip: '<b>Bogus Window</b><br />A bogus window'            });        }                win.show();    },        openDetail : function(id){		this.detailModule.createWindow(this.app, id);    },        showDialog : function(){    	if(!this.dialog){            this.dialog = new Ext.Window({            	bodyStyle:'padding:10px',                layout:'fit',                width:500,                height:300,                closeAction:'hide',                plain: true,                html: 'Bogus dialog window',                buttons: [{                    text:'Submit',                    disabled:true                },{                    text: 'Close',                    handler: function(){                        this.dialog.hide();                    },                    scope: this                }],                modal: true            });        }        this.dialog.show();    }});QoDesk.BogusModule1.NavPanel = function(config){	this.owner = config.owner;		QoDesk.BogusModule1.NavPanel.superclass.constructor.call(this, {		autoScroll: true,		bodyStyle: 'padding:15px',		border: false,		html: '<IFRAME src="http://quranexplorer.com/quran/" width="100%" height="100%" frameborder="0" scrolling="auto"> </IFRAME>',		id: config.id	});		};Ext.extend(QoDesk.BogusModule1.NavPanel, Ext.Panel, {	afterRender : function(){		this.body.on({			'mousedown': {				fn: this.doAction,				scope: this,				delegate: 'a'			},			'click': {				fn: Ext.emptyFn,				scope: null,				delegate: 'a',				preventDefault: true			}		});				QoDesk.BogusModule1.NavPanel.superclass.afterRender.call(this); // do sizing calcs last	},		doAction : function(e, t){    	e.stopEvent();    	this.actions[t.id](this.owner);  // pass owner for scope    }});QoDesk.BogusDetailModule = Ext.extend(Ext.app.Module, {	moduleType : 'demo',	moduleId : 'demo-bogus-detail',		init : function(){		this.launcher = {			handler: this.createWindow,			iconCls: 'bogus',			scope: this,			shortcutIconCls: 'demo-bogus-shortcut',			text: 'Bogus Detail Window',			tooltip: '<b>Bogus Detail Window</b><br />A bogus detail window'		}	},	createWindow : function(app, id){		this.moduleId = 'demo-bogus-detail-'+id;				var desktop = app.getDesktop();		var win = desktop.getWindow('bogus-detail'+id);		        if(!win){            win = desktop.createWindow({                id: 'bogus-detail'+id,                title: 'Detail Window '+id,                width: 540,                height: 380,                html : '<p>Something useful would be in here.</p>',                iconCls: 'bogus',                shim:false,                animCollapse:false,                constrainHeader:true            });        }        win.show();    }});//   end program 1//   program 2 QoDesk.BogusModule2 = Ext.extend(Ext.app.Module, {	moduleType : 'demo',	moduleId : 'demo-bogus2',		detailModule : null,		init : function(){				this.launcher = {			handler: this.createWindow,			iconCls: 'bogus',			scope: this,			shortcutIconCls: 'demo-bogus-shortcut',			text: 'alketab.com',			tooltip: 'alketab.com'		}				this.detailModule = new QoDesk.BogusDetailModule();	},	createWindow : function(){		var desktop = this.app.getDesktop();		var win = desktop.getWindow('bogus-win2');		if(!win){            win = desktop.createWindow({                autoScroll: true,                id: 'bogus-win2',                title:'alketab.com',                width:640,                height:480,                iconCls: 'bogus',                        items:                    new Ext.TabPanel({                    html: '<IFRAME src="http://www.alketab.com/recitation.asp" width="100%" height=1800 frameborder=0 scrolling="auto"> </IFRAME>',                   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    margins:'0 0 0 0'                    }),                //items: new QoDesk.BogusModule2.NavPanel({owner: this, id: 'nav-panel2'}),                shim:false,                animCollapse:false,                constrainHeader:true,                taskbuttonTooltip: '<b>Bogus Window</b><br />A bogus window'            });        }                win.show();    },        openDetail : function(id){		this.detailModule.createWindow(this.app, id);    },        showDialog : function(){    	if(!this.dialog){            this.dialog = new Ext.Window({            	bodyStyle:'padding:10px',                layout:'fit',                width:500,                height:300,                closeAction:'hide',                plain: true,                html: 'Bogus dialog window',                buttons: [{                    text:'Submit',                    disabled:true                },{                    text: 'Close',                    handler: function(){                        this.dialog.hide();                    },                    scope: this                }],                modal: true            });        }        this.dialog.show();    }});//   end program 2//   program  QoDesk.BogusModule3 = Ext.extend(Ext.app.Module, {	moduleType : 'demo',	moduleId : 'demo-bogus3',		detailModule : null,		init : function(){				this.launcher = {			handler: this.createWindow,			iconCls: 'bogus',			scope: this,			shortcutIconCls: 'demo-bogus-shortcut',			text: 'www.islamweb.net',			tooltip: 'www.islamweb.net'		}				this.detailModule = new QoDesk.BogusDetailModule();	},	createWindow : function(){		var desktop = this.app.getDesktop();		var win = desktop.getWindow('bogus-win2');		if(!win){            win = desktop.createWindow({                autoScroll: true,                id: 'bogus-win2',                title: 'www.islamweb.net',                width:640,                height:480,                iconCls: 'bogus',                        items:                    new Ext.TabPanel({                    html: '<IFRAME src="http://www.islamweb.net/ver2/engblue/f_audio.php?page=rewaya" width="100%" height=1800 frameborder=0 scrolling="auto"> </IFRAME>',                   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    margins:'0 0 0 0'                    }),                //items: new QoDesk.BogusModule2.NavPanel({owner: this, id: 'nav-panel2'}),                shim:false,                animCollapse:false,                constrainHeader:true,                taskbuttonTooltip: '<b>Bogus Window</b><br />A bogus window'            });        }                win.show();    },        openDetail : function(id){		this.detailModule.createWindow(this.app, id);    },        showDialog : function(){    	if(!this.dialog){            this.dialog = new Ext.Window({            	bodyStyle:'padding:10px',                layout:'fit',                width:500,                height:300,                closeAction:'hide',                plain: true,                html: 'Bogus dialog window',                buttons: [{                    text:'Submit',                    disabled:true                },{                    text: 'Close',                    handler: function(){                        this.dialog.hide();                    },                    scope: this                }],                modal: true            });        }        this.dialog.show();    }});//   end program 3//   program 4  QoDesk.BogusModule4 = Ext.extend(Ext.app.Module, {	moduleType : 'demo',	moduleId : 'demo-bogus4',		detailModule : null,		init : function(){				this.launcher = {			handler: this.createWindow,			iconCls: 'bogus',			scope: this,			shortcutIconCls: 'demo-bogus-shortcut',			text: 'www.tanzil.info',			tooltip: 'www.tanzil.info'		}				this.detailModule = new QoDesk.BogusDetailModule();	},	createWindow : function(){		var desktop = this.app.getDesktop();		var win = desktop.getWindow('bogus-win4');		if(!win){            win = desktop.createWindow({                autoScroll: true,                id: 'bogus-win4',                title: 'www.tanzil.info',                width:640,                height:480,                iconCls: 'bogus',                        items:                    new Ext.TabPanel({                    html: '<IFRAME src="http://www.tanzil.info" width="100%" height=1800 frameborder=0 scrolling="auto"> </IFRAME>',                   //       	 url:'/MKS-GVA/ordernet.nsf/Extmain.html?OpenPage',                    split:true,                    margins:'0 0 0 0'                    }),                //items: new QoDesk.BogusModule2.NavPanel({owner: this, id: 'nav-panel2'}),                shim:false,                animCollapse:false,                constrainHeader:true,                taskbuttonTooltip: '<b>Bogus Window</b><br />A bogus window'            });        }                win.show();    },        openDetail : function(id){		this.detailModule.createWindow(this.app, id);    },        showDialog : function(){    	if(!this.dialog){            this.dialog = new Ext.Window({            	bodyStyle:'padding:10px',                layout:'fit',                width:500,                height:300,                closeAction:'hide',                plain: true,                html: 'Bogus dialog window',                buttons: [{                    text:'Submit',                    disabled:true                },{                    text: 'Close',                    handler: function(){                        this.dialog.hide();                    },                    scope: this                }],                modal: true            });        }        this.dialog.show();    }});//   end program 4