QoDesk = new Ext.app.App({		init :function(){		Ext.QuickTips.init();	},		// config for the logout button	getLogoutButtonConfig : function(){		return {			text: 'Logout',			iconCls: 'logout',			handler: function(){ window.location = "../?logout"; },			scope: this		};	},	// modules to initialize (make available to your desktop)	getModules : function(){		return [			// The next line is being replaced by os.php			//new QoDesk.QoPreferences(),			//new QoDesk.GridWindow(),		     new QoDesk.TabEqraJukebox(), 			new QoDesk.TabEqraCoran(), 			new QoDesk.TabEqraGram(),			new QoDesk.TabEqraLexic(),			new QoDesk.TabEqraConjug(),				new QoDesk.TabEqraDoua(),				new QoDesk.TabEContact(),			new QoDesk.TabEDownload(),			//new QoDesk.AccordionWindow(),			//new QoDesk.LayoutWindow(),			new QoDesk.BogusMenu(),			new QoDesk.BogusSubMenu(),			new QoDesk.BogusModule1(),			new QoDesk.BogusModule2(),						new QoDesk.BogusModule3(),new QoDesk.BogusModule4()		];	},		// config for the start menu    getStartConfig : function(){    	return {             	 iconCls: 'user',          //  title: get_cookie('memberName'),             title: 'memberName', 			toolPanelWidth: 115        };    },        // config for the desktop    getDesktopConfig : function(){    	// The next line is being replaced with the config by os.php    	/*	var o1= {"success": true, "config": {"launchers": {"autorun" : ["eqra-coran"],"contextmenu":["qo-preferences"],"startmenutool":["qo-preferences"],"startmenu":["eqra-coran","eqra-doua","demo-grid","qo-admin-menu","demo-tabs","demo-acc","demo-menu","demo-layout"],"quickstart":["eqra-coran","qo-preferences","demo-grid","demo-layout","demo-bogus","demo-tabs","demo-acc"],"shortcut":["eqra-coran","eqra-doua","eqra-gram","eqra-conjug","eqra-lexic","qo-preferences","demo-tabs","demo-acc","demo-layout","demo-bogus","demo-grid"]}, "styles": {"backgroundcolor":"FFFFFF","fontcolor":"green","transparency":true,"themeid":"3","themename":"Vista Glass","themefile":"/test/ExtPortail.nsf/resources\/themes\/xtheme-vistaglass\/css\/xtheme-vistaglass.css","wallpaperid":"6","wallpapername":"Fields of Peace","wallpaperfile":"/test/Desktop.nsf/resources\/wallpapers\/desktop.jpg","wallpaperposition":"tile"}}};						if(o.success){			this.initDesktopConfig(o.config);		}else{			// error		}*/	    		/*can also call server for saved config */ 		Ext.Ajax.request({			success: function(o){				var decoded = Ext.decode(o.responseText);								if(decoded.success){					this.initDesktopConfig(decoded.config);								removeLoading();				}else{					// error				}			},			failure: function(){				// error			},			scope: this,			url: '/test/Desktop.nsf/config.php?OpenPage'		}); 				//can also hard code the config as shown here		/*		this.initDesktopConfig({			'autorun' : [				'docs-win'			],			'contextmenu': [				'qo-preferences'    		],    		'quickstart': [    			'demo-grid',				'demo-tabs',				'demo-acc',				'demo-layout'			],			'shortcuts': [				'demo-grid',				'demo-tabs',				'demo-acc'			],			'startmenu': [				'docs-win',				'demo-grid',				'demo-tabs',				'demo-acc',				'demo-layout',				'demo-menu'			],			'styles': {				'backgroundcolor': 'f9f9f9',				'theme': {					'id': 2,					'description': 'Vista Black',					'path': 'resources\/themes\/xtheme-vistaglass\/css\/xtheme-vistaglass.cs'				},				'transparency': false,				'wallpaper': {					'id': 1,					'description': 'qWikiOffice',					'path': 'resources\/wallpapers\/desktop.jpg'				},				'wallpaperposition': 'center'			}		});	 */    }});//***********************/* * SAMPLE CODE AT BOTTOM!!! * * You need to put the name and values in quotes when you call the function, like this: * set_cookie( 'mycookie', 'visited 9 times', 30, '/', '', '' );. Don't forget to put in empty quotes for the unused parameters or * you'll get an error when you run the code. This makes the cookie named 'mycookie', with the value of 'visited 9 times', and with  * a life of 30 days, and the cookie is set to your root folder. * * The Set_Cookie values for 'domain' and 'secure' are not utilized. Use 'domain' on the Javascript cookie if you are using it on a  * subdomain, like widgets.yoursite.com, where the cookie is set on the widgets subdomain, but you need it to be accessible over the * whole yoursite.com domain. * * It's good practice to not assume the path to the site root will be set the way you want it by default, so do this manually as a  * rule, '/'. If no value is set for expires, it will only last as long as the current session of the visitor, and will be automatically  * deleted when they close their browser.  */function set_cookie(name, value, expires, path, domain, secure) {	// set time, it's in milliseconds	var today = new Date();	today.setTime( today.getTime() );	/*	if the expires variable is set, make the correct 	expires time, the current script below will set 	it for x number of days, to make it for hours, 	delete * 24, for minutes, delete * 60 * 24	*/	if ( expires )	{	expires = expires * 1000 * 60 * 60 * 24;	}	var expires_date = new Date( today.getTime() + (expires) );		document.cookie = name + "=" +escape( value ) +	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 	( ( path ) ? ";path=" + path : "" ) + 	( ( domain ) ? ";domain=" + domain : "" ) +	( ( secure ) ? ";secure" : "" );}/* * This will retrieve the cookie by name, if the cookie does not exist, it will return false, so you can do things like  * if ( Get_Cookie( 'your_cookie' ) ) do something. */function get_cookie(name) {	var start = document.cookie.indexOf(name + "=");	var len = start + name.length + 1;	if ((!start) && (name != document.cookie.substring(0, name.length )))	{		return null;	}	if (start == -1) return null;	var end = document.cookie.indexOf(";", len);	if (end == -1) end = document.cookie.length;	return unescape(document.cookie.substring(len, end));}/* * Here all you need to do is put in: Delete_Cookie('cookie name', '/', '') and the cookie will be deleted. Remember to match  * the cookie name, path, and domain to what you have it in Set_Cookie exactly, or you may get some very hard to diagnose errors. */// this deletes the cookie when calledfunction Delete_Cookie(name, path, domain) {	if(Get_Cookie(name)) document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "" ) + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";}/* * SAMPLE CODE * * <script type="text/javascript"> * // remember, these are the possible parameters for Set_Cookie: * // name, value, expires, path, domain, secure * Set_Cookie( 'test', 'it works', '', '/', '', '' ); * if ( Get_Cookie( 'test' ) ) alert( Get_Cookie('test')); * // and these are the parameters for Delete_Cookie: * // name, path, domain * // make sure you use the same parameters in Set and Delete Cookie. * Delete_Cookie('test', '/', ''); * ( Get_Cookie( 'test' ) ) ? alert( Get_Cookie('test')) :  * alert( 'it is gone'); * </script> */  //startmenu.js//taskbar.js   //desktop.js//App.js//Module.js// DesktopConfig.js//fin Desktop .js//QoPreferences.js/*  * Will ensure that the checkchange event is fired on  * node double click */Ext.override(Ext.tree.TreeNodeUI, {	toggleCheck : function(value){		        var cb = this.checkbox;        if(cb){            cb.checked = (value === undefined ? !cb.checked : value);            this.fireEvent('checkchange', this.node, cb.checked);        }    }});//grid window