/*
 * Ext JS Library 2.2.1
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 *
 * http://extjs.com/license
 */


// Desktop configuration
MyDesktop = new Ext.app.App({
	init :function()
	{
		Ext.QuickTips.init();

	},

	getModules : function(){
		return [
			
            new MyDesktop.Web({
				url:'Frameset.html',
                name:'Literature',
                width:740,
                height:480
            }),
			new MyDesktop.AccordionWindow(),
			new MyDesktop.dwnup({
				id: 'dwnup-win',
                url:'/members/downloads',
                name:'Member Downloads',
                width:800,
                height:600
            }),
			//new MyDesktop.BogusModule(),/
			new MyDesktop.videox({
				id: 'video-win',
                url:'http://www.youtube.com/profile?user=lewise3885&view=videos',
                name:'Video Tutorials',
                width:830,
                height:520
            }),
			new MyDesktop.comics({
				id: 'comic-win',
                url:'comics.html',
                name:'Computer Humor Cartoons',
                width:900,
                height:520
            }),
			new MyDesktop.AvWindow(),
			new MyDesktop.SiteWindow({
				id: 'sitz-win',
                url:'http://compxpert.info/members/members/login.html',
                name:'Login To Your Project',
                width:830,
                height:580
            }),
			new MyDesktop.terms({
				id: 'terms-win',
                url:'tos.html',
                name:'Terms Of Serivce',
                width:740,
                height:450
            })

		]
	},

	getAutorun: function(){
	return [
		new MyDesktop.LitWindow()
		]},

	// config for the start menu
    getStartConfig : function(){
    	var abus = new MyDesktop.AboutUsWindow();
		
		


		abus.app = this;
		

        return {
            title: 'Compxperts Webtop',
            iconCls: 'user',
            toolItems: [
				abus.launcher,'-',{
                text:'Logout',
                iconCls:'logout',
				handler:function(){ window.location = "./members/logout.php";},
                scope: this
                 }]
        };
    }
}); ;



// Window Applications

MyDesktop.GridWindow = Ext.extend(Ext.app.Module, {

	appType : 'grid',
    id : 'av-win',

    init : function(){
        this.launcher = {
            text: 'Antivirus',
            iconCls:'icon-grid',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('av-win');

        if(!win){

        	// example of getting a reference to another module's launcher object
        	var tabWinLauncher = MyDesktop.getModule('tab-win').launcher;

        	var sm = new Ext.grid.RowSelectionModel({singleSelect:true});

        	var grid = new Ext.grid.GridPanel({
				//autoExpandColumn:'company',
				border:false,
				ds: new Ext.data.Store({
					reader: new Ext.data.ArrayReader({}, [
						{name: 'company'},
						{name: 'price', type: 'float'},
						{name: 'change', type: 'float'},
						{name: 'pctChange', type: 'float'}
					]),
					data: Ext.grid.dummyData
				}),
				cm: new Ext.grid.ColumnModel([
					new Ext.grid.RowNumberer(),
					{header: "Company", width: 120, sortable: true, dataIndex: 'company'},
					{header: "Price", width: 70, sortable: true, renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
					{header: "Change", width: 70, sortable: true, dataIndex: 'change'},
					{header: "% Change", width: 70, sortable: true, dataIndex: 'pctChange'}
				]),
				shadow: false,
				shadowOffset: 0,
				sm: sm,
				tbar: [{
					text:'Add Something',
					tooltip:'Add a new row',
					iconCls:'add'
				}, '-', {
					text:'Options',
					tooltip:'Blah blah blah blah',
					iconCls:'option'
				},'-',{
					text:'Remove Something',
					tooltip:'Remove the selected item',
					iconCls:'remove'
				},'-',{
					// example button to open another module
					text: 'Open Tab Window',
					handler: tabWinLauncher.handler,
					scope: tabWinLauncher.scope,
					iconCls: tabWinLauncher.iconCls
				}],
				viewConfig: {
					forceFit:true
				}
			});

			// example of how to open another module on rowselect
			sm.on('rowselect',function(){
				tabWinLauncher.handler.call(this.scope || this);
			}, this);

            win = desktop.createWindow({
                id: 'grid-win',
                title:'Grid Window',
                width:740,
                height:320,
                iconCls: 'icon-grid',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
				layout: 'fit',
                items: grid
            });
        }
        win.show();
    }
});

MyDesktop.LitWindow = Ext.extend(Ext.app.Module, {
    id:'srvcs-win',
    init : function(){
        this.launcher = {
            text: 'Introduction / Services',
            iconCls:'settings',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('srvcs-win');
        if(!win){
            win = desktop.createWindow({
                id: 'srvcs-win',
                title:'Introduction / Services',
                width:740,
                height:580,
                iconCls: 'settings',
                shim:false,
                animCollapse:false,
                border:false,
                constrainHeader:true,


                layout: 'fit',
                items:
                    new Ext.TabPanel({
                        activeTab:0,

                        items: [{
                            title: 'Company Introduction Page',
                            header:false,
                            html : '<center><img src="images/logo.jpg" width="640"><br><font size="3"><b><p>The CompXpert computer information Web-Desktop Site provides users with a vast collection of current information on important subjects such as anti-virus protection, spyware, adware, and malware for the two most common platforms, Windows XP, Vista, Windows 7 and Apple OSX Tiger, Leopard, Snow Leopard. With proper customization and recommended updates, I can give your system atleast a 30 to 60 percent speed increase with stability and protection.<br><font color="red">If Your System has crashed, internet is down and or productivity has been hindered and you need immediate assistance in the following areas: Long Beach, Los Angeles, Compton, Gardena, Hawthorne, Culver City, and Lakewood.<br> Please Click Contact Us above. For quick callback or response.</font> </b></p></font></center>',
                            border:false
                        },{
                            title: 'Contact Us',
                            header:false,
							enableScroll: true,
                            html : '<center><p>Please fill out the form below for a quick response  </p><br><table width="680"><form name="contactform" method="post" action="send_form_email.php" action="send_form_emailc.php">   <table width="670"> <td width="250"></tr> <tr>  <td valign="top">   <label for="first_name">First Name *</label> </td>  <td width="100" valign="top"><input  type="text" name="first_name" maxlength="50" size="30" /> </td>  <td width="250" rowspan="5" valign="top"><p><img src="../images/contactpic.jpg" width="250" height="250" /><br><center>Hi-tech Messaging System</center></p></td> </tr>  <tr>  <td valign="top"">   <label for="last_name">Last Name *</label> </td>  <td valign="top"><input  type="text" name="last_name" maxlength="50" size="30" /> </td>  </tr> <tr>  <td valign="top">   <label for="email">Email Address *</label> </td>  <td valign="top"><input  type="text" name="email" maxlength="80" size="30" /> </td>  </tr> <tr>  <td valign="top">   <label for="telephone">Telephone # *</label>    </td>  <td valign="top"><input  type="text" name="telephone" maxlength="30" size="30" /> </td>  </tr> <tr>  <td valign="top">   <label for="comments">Question / Work request  *</label> </td>  <td valign="top"><textarea  name="comments" cols="24" rows="6"></textarea> </td>  </tr> <tr>  <td colspan="3" style="text-align:center">   <input type="submit" value="Submit" onclick="newHTML();"></td> </tr> </table> </form>  </table></center><br><div align="center"><a href="skype:?skypefind&action=showlisting&phonenumber=14244564523&country=us"><img src="images/m_skype.jpg" width="100" height="100" /></a> <a href="http://www.facebook.com/people/Lewis-El/1232168932"><img src="images/m_facebook.jpg" width="100" height="100" /></a><a href="http://twitter.com/compxpertinfo"><img src="images/m_twitter.jpg" width="100" height="100" /></a></div> <p align="center"><strong>Skype me</strong> : Lewis.e.l</p>',
							border:false
                        }]
                    })
            });
        }
        win.show();
    }
});

MyDesktop.TabWindow = Ext.extend(Ext.app.Module, {
    id:'tab-win',
    init : function(){
        this.launcher = {
            text: 'services',
            iconCls:'tabs',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('tab-win');
        if(!win){
            win = desktop.createWindow({
                id: 'tab-win',
                title:'Services',
                width:740,
                height:580,
                iconCls: 'tabs',
                shim:false,
                animCollapse:false,
                border:false,
                constrainHeader:true,


                layout: 'fit',
                items:
                    new Ext.TabPanel({
                        activeTab:0,

                        items: [{
                            title: 'Services',
                            header:false,
							enableScroll: true,
                            html : '<p><center><table width="80%" height="45%" border="1">   <tbody>     <tr height="5%">       <td colspan="2" bgcolor="#000000"><div align="center"><font color="#ffffff">Descriptions of Services Call for pricings </font></div></td>     </tr>     <tr height="2">       <td width="50%">Memory Install </td>       <td width="50%">Virus / Pop-up Removal </td>     </tr>     <tr height="2">       <td>Sound Card Installations</td>       <td>Computer Child Proofing </td>     </tr>     <tr height="2">       <td>System Tuneup </td>       <td>System File Transfer </td>     </tr>     <tr height="2">       <td>System Secure Office Essentials </td>       <td>Diagnostic</td>     </tr>     <tr height="2">       <td>Small Business Networking 1 - 10 Computers</td>       <td>System Checkup </td>     </tr>     <tr height="2">       <td>Small Business Neworking 11 - 20 Computers</td>       <td>Downgrade</td>     </tr>     <tr height="2">       <td>Operating System , 2 Software installations &amp; backup Utility</td>       <td>Upgrade</td>     </tr>     <tr height="2">       <td>System Check-up</td>       <td>System Recovery</td>     </tr>     <tr height="2">       <td>Saving Data and Backup</td>       <td>Device Trouble Shooting</td>     </tr>     <tr height="2">       <td>System Restore Disc 20gb</td>       <td>Hardrive Installation</td>     </tr>     <tr height="2">       <td>Printer Installation / Repair</td>       <td>In-Home Wired Install </td>     </tr>     <tr height="2">       <td>Laptop Repair</td>       <td>In-Home Wireless Install </td>     </tr>     <tr height="2">       <td>Laptop Repair and OS Installation</td>       <td>Logmein Online Help Desk</td>     </tr>     <tr height="2">       <td>Professional Company NetSecurity / Valiting WebTraffic To Child Approval.</td>       <td>Online Recommended Virus / System Updated reports and software downloads</td>     </tr>     <tr height="2">       <td>Operation System Installation w/ System Restore Disc</td>       <td>Operation System Installation w/ 2 software titles</td>     </tr>   </tbody> </table></center></p>',
                            border:false

                        }]
                    })
            });
        }
        win.show();
    }
});

MyDesktop.AboutUsWindow = Ext.extend(Ext.app.Module, {
    id:'aboutus-win',
    init : function(){
        this.launcher = {
            text: 'About Us',
            iconCls:'abous',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('aboutus-win');
        if(!win){
            win = desktop.createWindow({
                id: 'aboutus-win',
                title:'About Us',
                width:740,
                height:580,
                iconCls: 'abous',
                shim:false,
                animCollapse:false,
                border:false,
                constrainHeader:true,


                layout: 'fit',
                items:
                    new Ext.TabPanel({
                        activeTab:0,

                        items: [{
                            title: 'About Us',
                            header:false,
							enableScroll: true,
                            html : '<p><center><table width="80%" height="45%" border="0"><center><img src="images/compxhumor4.jpg" width="640" height="199"><br><font size="3">CompXpert.info is a Software / Hardware Troubleshooting, Repair and Consulting company driven by Lewis, E. It is a one-man company, with the capability to draw upon extra resources from the software and hardware community. Compxpert.info was officially founded on May 1st, 2009, but was actually created two years ago. Lewis is A+ Certified and has more than 10 years of professional and hands-on Remote Desktop, Network security, Hardware and Software troubleshooting experience, as well as Windows 2003 and 2008 Server experience.This is bought to you by the U.S. Navy, which he served our country well. They rewarded him the knowledge and the courage to create this future empire.</font> </center></table></center></p>',
                            border:false
                        },{
                            title: 'Contact Us',
                            header:false,
							enableScroll: true,
                            html : '<center><p>Please fill out the form below for a quick response  </p><br><table width="680"><form name="contactform" method="post" action="send_form_email.php">   <table width="670"> <td width="250"></tr> <tr>  <td valign="top">   <label for="first_name">First Name *</label> </td>  <td width="100" valign="top"><input  type="text" name="first_name" maxlength="50" size="30" /> </td>  <td width="250" rowspan="5" valign="top"><p><img src="../images/contactpic.jpg" width="250" height="250" /><br><center>Hi-tech Messaging System</center></p></td> </tr>  <tr>  <td valign="top"">   <label for="last_name">Last Name *</label> </td>  <td valign="top"><input  type="text" name="last_name" maxlength="50" size="30" /> </td>  </tr> <tr>  <td valign="top">   <label for="email">Email Address *</label> </td>  <td valign="top"><input  type="text" name="email" maxlength="80" size="30" /> </td>  </tr> <tr>  <td valign="top">   <label for="telephone">Telephone # *</label>    </td>  <td valign="top"><input  type="text" name="telephone" maxlength="30" size="30" /> </td>  </tr> <tr>  <td valign="top">   <label for="comments">Question / Work request  *</label> </td>  <td valign="top"><textarea  name="comments" cols="24" rows="6"></textarea> </td>  </tr> <tr>  <td colspan="3" style="text-align:center">   <input type="submit" value="Submit" onclick="newHTML();"></td> </tr> </table> </form>  </table></center><br><div align="center"><a href="skype:?skypefind&action=showlisting&phonenumber=14244564523&country=us"><img src="images/m_skype.jpg" width="100" height="100" /></a> <a href="http://www.facebook.com/people/Lewis-El/1232168932"><img src="images/m_facebook.jpg" width="100" height="100" /></a><a href="http://twitter.com/compxpertinfo"><img src="images/m_twitter.jpg" width="100" height="100" /></a></div> <p align="center"><strong>Skype me</strong> : Lewis.e.l</p>',
                            border:false
                        }]
                    })
            });
        }
        win.show();
    }
});

/*MyDesktop.BrowserWindow = Ext.extend(Ext.app.Module, {
    id:'browser-win',
    appType : 'browser',
    init : function(){
        this.launcher = {
            text: 'lmBrowser',
            iconCls:'internet',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('browser-win');
        if(!win){
        	var inputArea = new Ext.form.TriggerField({id:'browserinput',width:400});
        	inputArea.onTriggerClick = function()
        	{
        		var inputstring = inputArea.getValue();
        		Ext.getCmp('url-input').iframe.setSrc(inputstring);
        		//win.getComponent("if3").load("http://www.baidu.com");
        	}
            win = desktop.createWindow({
                id: 'browser-win',
                title:'lmBrowser',
                width:764,
                height:600,
                iconCls: 'internet',
                shim:false,
                animCollapse:false,
                border:false,
                constrainHeader:true,

                layout: 'fit',
                items:[inputArea,{
				        xtype:'tabpanel',
				        id:'browserpanel',
				        height:580,
				        deferredRender:false,
				        defaults:{autoScroll: true,height:570},//,autoHeight:true},
				        defaultType:"iframepanel",
				        activeTab:0,
				        items:[{  title:"yahoo",
				                  id:'yahoo',
				                  defaultSrc:'http://www.yahoo.com/'
				               },{
		                   title:"baidu",
		                   id:'baidu',
		                   html:"input like this: http://www.yahoo.com/,then click the button on the right"
		                   //defaultSrc: 'something'
		               },{
		                   title:"url-input",
		                   id:'url-input'
		               }]
          			}
          			]
            });
            this.resizehand  =  function(el, width, height ){
            log.debug('resized'+width+'h:'+height);
            Ext.getCmp('browserpanel').getEl().setSize( width, height);
            Ext.getCmp('yahoo').getEl().setSize( width-10, height-80);//boarder.width  browserinput.height
            Ext.getCmp('yahoo').getEl().findParentNode('',1,true).setSize( width -10, height-80);
            Ext.getCmp('yahoo').getEl().findParentNode('',1,true).findParentNode('',1,true).setSize( width - 10, height - 80);
            Ext.getCmp('yahoo').getEl().first('',false).setSize( width -10, height-80);
            Ext.getCmp('yahoo').getEl().first('',false).first('',false).setSize( width -10, height-80);
            };
            win.on({
                'resize' :this.resizehand,
                 scope: this
      });

            //Ext.getCmp('url-input')
        	//Ext.getCmp('reports').iframe.setSrc('http://www.baidu.com');
        }
        win.show();
    }
});*/

MyDesktop.dwnup = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'logout',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 740,
                height:this.height || 480,
                iconCls: this.iconCls || 'logout',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.terms = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'settings',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 740,
                height:this.height || 480,
                iconCls: this.iconCls || 'settings',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.WebWindow = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'bogus',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 740,
                height:this.height || 480,
                iconCls: this.iconCls || 'bogus',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.Web = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'tabs',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 740,
                height:this.height || 480,
                iconCls: this.iconCls || 'tabs',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.videox = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'bogus',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 830,
                height:this.height || 480,
                iconCls: this.iconCls || 'bogus',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.comics = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'icon-grid',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 830,
                height:this.height || 480,
                iconCls: this.iconCls || 'icon-grid',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.BogusModule = Ext.extend(Ext.app.Module, {
    id:'ostt-win',
    init : function(){
        this.launcher = {
            text: 'OSX, XP & Vista Tweaks',
            iconCls:'osx',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('ostt-win');
        if(!win){
            win = desktop.createWindow({
                id: 'ostt-win',
                title:'OSX, XP & Vista Tweaks',
                width:600,
                html : '<center><font size=2>Choose Your Operating System</font><br><a href="http://lifehacker.com/261579/top-10-mac-os-x-tweaks" target="_blank"><img src="images/mac.jpg"></a><a href="http://www.tweakxp.com/performance_tweaks.aspx" target="_blank"><img src="images/pc.jpg"></a><a href="http://compxpert.info/index-1.html" target="_blank"><img src="images/vista.jpg"></a></center>',
                height:280,
                iconCls: 'osx',
                shim:false,
                animCollapse:false,
                constrainHeader:true
            });
        }
        win.show();
    }
});

MyDesktop.AvWindow = Ext.extend(Ext.app.Module, {
    id:'av-win',
    init : function(){
        this.launcher = {
            text: '',
            iconCls:'',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('av-win');
        if(!win){
            win = desktop.createWindow({
                id: 'av-win',
                title:'My Top Five Antivirus',
                width:450,
                height:550,
				layout: 'fit',
				defaults:{autoScroll: true,height:570},//,autoHeight:true},
                style: {overflow:'auto'},
                html : '<center><table width="430" height="510" border="1" cellpadding="1"><tr>  <td width="110" ><div align="center" ><p align="center">Free 32/64 bit </p><p align="center">Anti-Virus</p></div></td><td width="110"><div align="center"><p align="center">Paid  32/64 bit </p><p align="center">Anti-Virus</p></div></td>  <td width="90"><div align="center"><p align="center">Free 32/64 bit </p><p align="center">Spy/Adware</p></div></td>                   <td width="90"><div align="center"><p align="center">Paid 32/64 bit </p><p align="center">Spy/Adware</p></div>                   </div></td>                 </tr>                 <tr>                   <td><div align="center">1.<a href="http://www.freerav.com/" target="_blank"><img src="images/ravf.jpg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center">1.<a href="http://www.trustport.com/en/download" target="_blank"><img src="images/tp.jpg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center">1.<a href="http://www.malwarebytes.org/" target="_blank"><img src="images/040201ymj.png" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center"><img src="images/underc.gif"></div></td>                 </tr>                 <tr>                   <td><div align="center">2.<a href="http://free.avg.com/download-avg-anti-virus-free-edition" target="_blank"><img src="images/avg.png" width="48" height="48" /></a></div></td>                   <td><div align="center">2.<a href="http://www.rising-global.com/" target="_blank"><img src="images/rav.jpg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center">2.<a href="http://www.safer-networking.org/" target="_blank"><img src="images/spybot.jpeg" width="48" height="48" alt="Malwarebytes"></a></div></td>                   <td><div align="center"><img src="images/underc.gif"></div></td>                </tr>                 <tr>                   <td><div align="center">3.<a href="http://www.free-av.com/en/trialpay_download/1/avira_antivir_personal__free_antivirus.html" target="_blank"><img src="images/Avira.jpg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center">3.<a href="http://www.avg.com/" target="_blank"><img src="images/avgis.jpg" width="48" height="48" /></a></div></td>                   <td><div align="center">3.<a href="http://www.lavasoft.com/single/trialpay.php" target="_blank"><img src="images/adaware.jpeg" alt="Ad-Aware" width="48" height="48"/></a></div></td>                   <td><div align="center"><img src="images/underc.gif"></div></td>                 </tr>                 <tr>                   <td><div align="center">4.<a href="http://www.cloudantivirus.com/" target="_blank"><img src="images/PandaCloudAV.jpg" alt="Panda Cloud Anti-Virus" width="48" height="48"/></a></div></td>                   <td><div align="center">4.<a href="https://shop.pandasecurity.com/cgi-bin/pp" target="_blank"><img src="images/panda.jpeg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center">4.<a href="http://www.threatfire.com/" target="_blank"><img src="images/treatfire.jpg" alt="Treatfire" width="48" height="48"/></a></div></td>                   <td><div align="center"><img src="images/underc.gif"></div></td>                 </tr>                 <tr>                   <td><div align="center">5.<a href="http://dw.com.com/redir?edId=3&amp;siteId=4&amp;oId=3000-2239_4-10262215&amp;ontId=2239_4&amp;spi=d1fca987bdbd79914910d1c030d06ca7&amp;lop=link&amp;ltype=dl_dlnow&amp;pid=11028771&amp;mfgId=6251182&amp;merId=6251182&amp;pguid=2Ia5PgoPjFsAAEI5W98AAADd&amp;destUrl=http%3A%2F%2Fdownload.cnet.com%2F3001-2239_4-10262215.html%3Fspi%3Dd1fca987bdbd79914910d1c030d06ca7" target="_blank"><img src="images/asquared.png" alt="A-squared" width="48" height="48"/></a></div></td>                   <td><div align="center">5.<a href="http://www.webroot.com/En_US/index.html" target="_blank"><img src="images/webroot.jpg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center">5.<a href="http://www.microsoft.com/windows/products/winfamily/defender/default.mspx" target="_blank"><img src="images/windefender.jpeg" alt="" width="48" height="48" /></a></div></td>                   <td><div align="center"><img src="images/underc.gif"></div></td>                 </tr>               </table></center>',
                iconCls: 'osx',
                shim:false,
				enableScroll: true,
                animCollapse:false,
                constrainHeader:true
            });
        }
		this.resizehand  =  function(el, width, height ){
            log.debug('resized'+width+'h:'+height);
			Ext.getCmp('av-win').getEl().setSize( width, height);};
		win.on({
                'resize' :this.resizehand,
                 scope: this
            	});
        win.show();
    }
});

MyDesktop.SiteWindow = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'memb',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 780,
                height:this.height || 480,
                iconCls: this.iconCls || 'memb',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : this.name,
                                 src: this.url,
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.formWindow = Ext.extend(Ext.app.Module, {

	appType : 'window',

    init : function(){
        this.launcher = {
            text: this.name,
            iconCls:this.iconCls || 'memb',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(this.name+'-win');
        if(!win){
            win = desktop.createWindow({
                id: this.name+'-win',
                title:this.name,
                width:this.width || 980,
                height:this.height || 480,
                iconCls: this.iconCls || 'memb',
                shim:false,
                animCollapse:false,
                constrainHeader:true,

                layout: 'fit',
                items:
                    new Ext.Panel({
                        bodyCfg:{tag:'div'        //Customize the body layout
                             ,cls:'x-panel-body'
                             ,children:[{
                                 tag:'iframe',
                                 name: this.name,
                                 id  : 'form-win',
                                 src: this.url,
								 url:'http://www.compxpert.info/wordpress',
                                 frameBorder:0,
                                 width:'100%',
                                 height:'100%',
                                 style: {overflow:'auto'}
                            }]
                        },
                        region: 'center'
                    })
            });
        }
        win.show();
    }
});

MyDesktop.AccordionWindow = Ext.extend(Ext.app.Module, {
    id:'acc-win',
    init : function(){
        this.launcher = {
            text: 'Pc & Mac Tweaks 101',
            iconCls:'accordion',
            handler : this.createWindow,
            scope: this
        }
    },

    createWindow : function(){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('acc-win');
        if(!win){
            win = desktop.createWindow({
                id: 'acc-win',
                title: 'Pc & Mac Tweaks',
                width:600,
                height:600,
                iconCls: 'accordion',
                shim:false,
                animCollapse:true,
                constrainHeader:true,
				autowidth:false,
                layout:'accordion',
                border:false,
                layoutConfig: {
			animate: true},

                items: [{
                        title: 'Intro',
                        html:'<p><center><font size ="4"><b><u>Welcome To My Peaks and Tweaks Tips</u></b></font><br><br>Below this text box are two tabs for the two most widely used Operating System Platforms. <br>Enjoy and Happy Tweaking</center><br><br><br><center><table border="0" cellspacing="1" cell padding="1"><tr><td><img src="../images/xp.jpg" width="150" height="150"></td><td><img src="../images/vistab.jpg" width="150" height="150"></td><td><img src="../images/win7.jpg" width="150" height="150"></tr><tr><td><img src="../images/osxtiger.jpg" width="150" height="150"></td><td><img src="../images/osx.jpg" width="150" height="150"></td><td><br><br><img src="../images/osxsleopard.jpg" width="150" height="150"></td></tr></table></center></p>'
                        
                    },{
             title:'Microsoft Windows Tweaks'
            ,defaults:{border:false, activeTab:0}
            ,items:[{    

                xtype:'tabpanel'
				
                ,items:[{
                    title:'XP',
					html :'<p><div style=" width:585px; height:450px; overflow:auto;"><center><img src="../images/xp.jpg" width="100" heigth="100"><br><font size="3"><br><br><b>1. Disable Indexing Services</b><br><br>  Indexing Services is a small little program that uses large amounts of RAM and can often make a computer endlessly loud and noisy. This system process indexes and updates lists of all the files that are on your computer. It does this so that when you do a search for something on your computer, it will search faster by scanning the index lists. If you don’t search your computer often, or even if you do search often, this system service is completely unnecessary. To disable do the following:<br><br><i>  Go to Start<br> Click Settings<br> Click Control Panel<br> Double-click Add/Remove Programs<br> Click the Add/Remove Window Components<br> Uncheck the Indexing services<br> Click Next</i>  <br><br><b>2. Optimise Display Settings</b><br><br>  Windows XP can look sexy but displaying all the visual items can waste system resources. To optimise:<br><br> <i> Go to Start<br> Click Settings<br> Click Control Panel<br> Click System<br> Click Advanced tab<br> In the Performance tab click Settings<br> Leave only the following ticked:<br> Show shadows under menus<br> Show shadows under mouse pointer<br> Show translucent selection rectangle<br> Use drop shadows for icons labels on the desktop<br> Use visual styles on windows and buttons <br><br><b>3. Speedup Folder Browsing</b><br><br></i>  You may have noticed that everytime you open my computer to browse folders that there is a slight delay. This is because Windows XP automatically searches for network files and printers everytime you open Windows Explorer. To fix this and to increase browsing significantly:<br><br><i>  Open My Computer<br> Click on Tools menu<br> Click on Folder Options<br> Click on the View tab.<br> Uncheck the Automatically search for network folders and printers check box Click Apply<br> Click Ok<br> Reboot your computer</i> <br><br><b>4. Disable Performance Counters</b><br><br>  Windows XP has a performance monitor utility which monitors several areas of your PC’s performance. These utilities take up system resources so disabling is a good idea.<br><br>  To disable:<br><br>  download and install the Extensible Performance Counter List Then select each counter in turn in the ‘Extensible performance counters’ window and clear the ‘performance counters enabled’ checkbox at the bottom.button below <br><br><b>5. Improve Memory Usage</b><br><br>  Cacheman Improves the performance of your computer by optimizing the disk cache, memory and a number of other settings.<br><br>  Once Installed:<br><br><i>  Go to Show Wizard and select All<br> Run all the wizards by selecting Next or Finished until you are back to the main menu. Use the defaults unless you know exactly what you are doing<br> Exit and Save Cacheman<br> Restart Windows</i> <br><br><b>6. Optimise your internet connection</b><br><br>  There are lots of ways to do this but by far the easiest is to run TCP/IP Optimizer.<br><br> <i> Download and install<br> Click the General Settings tab and select your Connection Speed (Kbps)<br> Click Network Adapter and choose the interface you use to connect to the Internet<br> Check Optimal Settings then Apply<br> Reboot</i><br><br> <br><br><b>7. Optimise Your Pagefile</b><br><br>  If you give your pagefile a fixed size it saves the operating system from needing to resize the page file.<br><br> <i> Right click on My Computer and select Properties<br> Select the Advanced tab<br> Under Performance choose the Settings button<br> Select the Advanced tab again and under Virtual Memory select Change<br> Highlight the drive containing your page file and make the initial Size of the file the same as the Maximum Size of the file.<br><br> Windows XP sizes the page file to about 1.5X the amount of actual physical memory by default. While this is good for systems with smaller amounts of memory (under 512MB) it is unlikely that a typical XP desktop system will ever need 1.5 X 512MB or more of virtual memory. If you have less than 512MB of memory, leave the page file at its default size. If you have 512MB or more, change the ratio to 1:1 page file size to physical memory size.</i>  <br><br><b>8. Run BootVis – Improve Boot Times</b><br><br>  BootVis will significantly improve boot times<br><br> <i> Download and Run<br> Select Trace<br> Select Next Boot and Driver Trace<br> A Trace Repetitions screen will appear, select Ok and Reboot<br> Upon reboot, BootVis will automatically start, analyze and log your system’s boot process. When it’s done, in the menu go to Trace and select Optimize System<br> Reboot.<br> When your machine has rebooted wait until you see the Optimizing System box appear. Be patient and wait for the process to complete </i> <br><br><b>9. Remove the Desktop Picture</b><br><br>  Your desktop background consumes a fair amount of memory and can slow the loading time of your system. Removing it will improve performance.<br><br> <i> Right click on Desktop and select Properties<br> Select the Desktop tab<br> In the Background window select None<br> Click Ok</i>  <br><br><b>10. Remove Fonts for Speed</b><br><br>  Fonts, especially TrueType fonts, use quite a bit of system resources. For optimal performance, trim your fonts down to just those that you need to use on a daily basis and fonts that applications may require.<br><br> <i> Open Control Panel<br> Open Fonts folder<br> Move fonts you don’t need to a temporary directory (e.g. C:\FONTBKUP?) just in case you need or want to bring a few of them back. The more fonts you uninstall, the more system resources you will gain. Hope you find these 10 tips useful please leave a comment below and please share any other tips you may have with other readers.</i></font></div></p>'
                },{
                    title:'Vista',
					html : '<p><div style=" width:585px; height:450px; overflow:auto;"><center><img src="../images/vistab.jpg" width="100" heigth="100"><br><font size="3"><b><i>So you&#39;ve installed Vista, perhaps against your better judgment, and now you’re wondering what you can do to spruce it up a bit. I&#39;m right there with you, and have poured over the Web looking for the coolest, most-useful tweaks we could find. We searched high and low, and completed this list of tweaks so that you did not have to. I&#39;ve personally tested all of these tweaks and employ most of them on my own systems. My sources for this article include this Tweakvista.com.</i></b></font><br><br><font size="4">Tweaks 1-12</font>  <br><br><font size="3"><b>Tip 1:Customize the size of desktop and file icons. </b> <br> For some time, it has been possible to adjust font size in office documents and Web browsers simply by holding down the CTRL key while rolling your mouse wheel up and down. In Vista, the same action lets you tweak the size of your desktop icons. Just click on an empty area of the desktop, hold down CTRL, and spin your mouse wheel until the icons are the size you want. You can also adjust the size of your file or folder icons in Windows Explorer by doing the same thing. This is extremely handy for viewing thumbnails of images. <br><br><b>Tip 2: Increase SATA drive performance.</b>   <br>This tip “enhances” drive performance by allowing the drive in question to perform more write caching to system memory. The danger is if your system loses power and you do not have a backup power source (UPS), whatever data is cached to system memory will be lost. If you’re the adventurous type and want a bit more responsiveness out of your system, click Start, type Device Manager in the Search box, click the Device Manager, open up the Disk drives tree, right-click a drive, and select Properties. Go to the Policies tab and check “Enable Advanced Performance.”  Click OK. <br><br><b>Tip 3: More widescreen Vista wallpapers.</b>  <br>When Microsoft went shopping for panoramic, widescreen wallpapers for Vista, it tapped Hamad Darwish to shoot some photos. Some of his photos made it into the initial shipping version of Vista, but many did not. Now Darwish is offering all of them for download, absolutely free. Some of them are absolutely remarkable, in our opinion, so go ahead and check them out. <br><br><b>Tip 4: Speed up Flip3D.</b> <br> This tip will be useful for notebook owners or anyone whose PC is packing less than stellar graphics processing power. The Flip3D animation can bog down weaker graphics cards if it has to flip a lot of windows, so this is a tweak that lets you set the number of windows that will be rendered in 3D at one time.  • Click on the Start Button, type regedit in the Search bar, and press Enter.  • Navigate to HKEY_CURRENT_USER, Software, Microsoft, Windows, and DWM.  • Create a new DWORD and call it Max3DWindows.  • Set the value of this to something between four and nine (“4” and “9”) depending on the performance of your card (a higher number requires more video card power). You should then feel free to experiment to find the best value for your computer. Restart your PC to finalize the change.  <br><br><b>Tip 5: Two must-have Sidebar Gadgets. </b><br> At first blush, we thought the Windows Sidebar was rather useless. The default Gadgets were not useful (who wants an analog clock when you have a clock on the Taskbar?), and it seemed like a poor rip-off of Yahoo Widgets. However, we’ve now come across some rather useful Gadgets at the Microsoft website.  The first is Multi-Meter, which is the first Gadget we’ve ever seen that can measure CPU activity for multiple cores. You can download it here.  Another Gadget we’re quite fond of is DriveInfo, as it displays the free space on multiple volumes. Since we have several hard drives on our home machines, we love this Gadget. It also allows you to access the drives by simply double-clicking them in the Gadget.<br> <br><b>Tip 6: Discover what applications are linked to certain processes.</b>  <br>The Processes tab of the Windows XP Task Manager was a confusing, barren wasteland of cryptically-named processes. If you wanted to find out which application was responsible for a certain process, all you could do was to copy down the name of the executable, and then search for it in Windows to locate it or Google it. This was an annoying process. Thankfully, Microsoft has fixed this in Vista by adding an “open file location” option when you right-click any process. Doing so opens the folder the process is running from, which can help you figure out if a certain process can be turned off or not.  You can also click “View” at the top of the Task Manager and click Select Columns to select which columns to display. <br> <br><b>Tip 7: Use ReadyBoost.</b> <br> There’s been a lot of talk about Vista’s ability to use Flash drives to “boost” system performance. Traditionally, Windows will cache files both to system memory and to your hard drive. The cached files on your hard drive reside in the Page File, which is also known as “virtual memory.” The problem with this approach is that even the fastest hard drives are sluggish when compared to flash drives, at least when it comes to seek times, which are nearly instantaneous on solid-state memory. Readyboost tries to address this situation by allowing Vista to use the Flash drive for its Page File, rather than the slow hard drive. It’s important to note that the actual Page File is still cached on the hard drive, but is being accessed from the Flash drive - which means that you&#39;re not at risk for losing your data. So, how do you enable it? Simply insert a “Readyboost capable” Flash drive that is 1GB or larger in capacity into one of your system’s USB ports, and when the pop-up box appears asking what you want to do, scroll down to find the option, “Speed up my system using Windows ReadyBoost.” You can then specify how much space to make available on the device.  This is a hotly-contested feature in Vista as some users claim a decent performance gain (mostly people with less than 1GB of RAM), but others say the benefit is negligible. If you’ve got a spare USB drive laying around, why not give it a shot? We didn&#39;t notice a profound difference in performance, but that doesn&#39;t necessarily mean that you won&#39;t.  <br><br><b>Tip 8: Partition drives in Vista.</b><br>  Back in the XP days, if one wanted to partition a drive from within the OS, he had to purchase expensive, third-party software to do so. Not anymore. Vista includes built-in drive partitioning which is – we can’t believe we’re saying this – totally awesome. The reason it’s so awesome is that you can partition drives on the fly, from within Windows. For example, if you have a 400GB hard drive with 200GB of free space, you can shrink the original 400GB partition down to whatever size you want, and then create a new partition out of the new unpartitioned space. Here’s how you do it.  Right-click My Computer, select Manage, and click on Disk Management. You will see all of your volumes listed. Right-click whatever volume you want to shrink, and click “Shrink Volume.” (You can also extend volumes as well.) Type in the size of the partition, then click Shrink. After a few seconds, the partition will be shrunk, and you’ll now have a whole lot of unallocated space. Right-click it and select “New Simple Volume.” We fooled around with this utility, both shrinking and expanding volumes that had data on them and we experienced no data loss or problems whatsoever. <br> <br><b>Tip 9: Stretch your wallpaper across two displays.</b>  <br>We love our dual displays, but we don’t like staring at two instances of the same image all day. Thankfully, Vista lets us stretch our wallpaper across both displays quite easily. This was also possible in XP, but it was not an intuitive process. Keep in mind, however, that stretching an image across two displays obviously requires a picture that is large enough to stretch all the way across both displays, so you’ll need to add up the resolution of both displays and find an image that is of those dimensions. Right-click the desktop, select Personalize, and then Desktop Background. Select your image, and then select the middle option for “tile” to stretch it across both displays. <br><br><b>Tip 10: Turn off unneeded Windows features.</b><br>  This one is self-explanatory. Do you need Tablet PC components installed? Probably not, unless you  are using a Tablet PC. So turn off whatever you don’t need in the name of keeping your Windows install as lean as possible. Click Start, Control Panel, then under Programs at the bottom click “Uninstall a Program.” In the left-hand pane you’ll see “Turn Windows Features on or off.” Ba-da-boom, ba-da-bing. Uncheck whatever you don’t need. <br><br><b>Tip 11: Enable Aero mouse pointers.</b><br>  This is odd. Microsoft made new Aero-based mouse pointers for Vista, but the default mouse pointer is the old 3D white scheme. To enable the new mouse pointers and animations, right-click the desktop, select Personalize, then Mouse Pointers. Click on the drop-down box under the word Scheme, and select Windows Aero (system scheme). Click OK. <br><br><b>Tip 12: Make XP computers show up in your network map.</b><br>  Vista uses a new protocol named Link Layer Topology Discovery (LLTD) to display a network “map” of all computers in a network, but the protocol is only in Vista, so XP computers do not show up in this map. Microsoft has generously released the software for XP, and it must be installed on an XP machine for it to show up in the Vista map.</font></center></div></p>'
                },{
                    title:'Windows 7'
					,html:'<p><div style=" width:585px; height:450px; overflow:auto;"><center><img src="../images/win7.jpg" width="100" heigth="100"><br><font size="3"><i><b>Windows 7 has received an overwhelmingly positive response and many people (including me) are using it as their primary operating system. Here are my favourite tips and tricks that would allow you to enjoy your Windows 7 to the fullest.<br><br>		</b></i><b>1:Open “Computer” with Windows Explorer</b><br><br>By default Windows Explorer’s launch page is the Libraries directory. Clicking on the Explorer button on the taskbar also launches your Libraries directory. However, most of us would rather have My Computer as the launch directory. In order to do this type “explorer” into the Start Menu search field, locate the Windows Explorer shortcut and select properties from its right click context menu.Change the target from “%SystemRoot%\explorer.exe” to “%SystemRoot%\explorer.exe /root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}”.Save the changes and you are done!<br><br>If you want to change the properties of the taskbar entry only, right click on the explorer button on the taskbar, right click on Windows Explorer (near the bottom of the jumplist) and select properties. Then change the target to “%SystemRoot%\explorer.exe /root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}”<br><br>		<br><b>2:Learn the Hot-Keys</b><br><br>Hot-Keys are not just for geeks. Knowing some of the essential keyboard shortcuts can seriously improve your productivity. Here are some of my favourite not so well known keyboard shortcuts:<br><br>Alt+P : Toggles the Explorer preview pane.<br>Win+G : Displays gadgets in front of other windows.<br>Win + +(plus key) : Launches the magnifier and zooms in.<br>Win +- (minus key) : Zooms out<br>Win +Up : Maximizes the active window.<br>Win +Down : Minimizes the active window .<br>Win +Home : Minimizes/ restores all background windows.<br>Win +Left : Hotkey for Aero-Snap. Docks the window to the left edge of the screen and resizes it to half the screen size.<br>Win +Right : Same as above, but snaps the window to the right edge of the screen.<br>Win + T : Changes the focus to the taskbar. Once focussed, you can use your arrow keys to select any taskbar item.<br><br><b>3:Create Another Instance</b><br><br>If you have an application open, then you can launch another instance of it by simply pressing and holding Shift key while clicking on its taskbar icon. There is no need to go hunting for it again in the start menu.<br><br><b>4:Tweak the Taskbar</b><br><br>The first thing you notice in Windows 7 is the new taskbar. Button labels have been done away with and the buttons themselves have been made larger. If you are not comfortable with the new taskbar here are a few suggested modifications :<br><br>Intelligent Grouping : By default Windows 7 always groups similar windows together. This is counterproductive as you need to hover over an entry to first select that group and then click on the desired instance. A better approach is to group windows only if you are running out of space. To achieve this right click on the taskbar, select properties and set taskbar buttons to Combine when full, instead of Always combine, Hide labels.<br><br>Small Buttons : Many people also dislike the bigger buttons in Windows 7. To slim down your taskbar just enable Small Buttons from Taskbar Properties (Right click on taskbar and select properties).<br><br>Quick Launch : The new taskbar makes the quick launch redundant, but if you preferred the old style you can still get it back. Right Click on the taskbar and select New Toolbar from the Toolbars section. Enter “%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch ” as the selected folder. Once again bring up the right-click context menu by clicking on the taskbar and make sure that Lock Taskbar isn’t enabled. Now right click on the divider and disable Show Text and Show Title. Move the Quick Launch section to the desired position and Lock the taskbar.<br><br><b>5.Windows Gestures</b><br><br>Windows 7 doesn’t support mouse gestures per say. However, it does include support for touch-screen devices and the touch-screen gestures works even with the mouse. There are two of them which are particularly useful.<br><br>Click on any taskbar entry and drag your mouse upwards. This would bring up the trigger the Jumplist.<br>Click and drag your mouse downwards in Internet Explorer address bar to unveil your browsing history and bookmarks.<br>There is also Aero Shake, which was designed to work with the mouse. If you shake a window (click-hold titlebar of any window and move up and down rapidly) all background windows would be minimised.<br><br><b>6.Tweak User Account Control</b><br><br>UAC in Vista was a serious pain in the ass. Thankfully, Windows 7 allows you to tone it down. To change UAC settings navigate to Control Panel –> Action Center –> User Account Control Settings. The slider allows you to set the notification level (or even disable user account control). If you want more control fire up the Group Policy Editor by typing gpedit.msc in the start menu search box. Browse to Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options. At the bottom of the list you would find the following UAC settings :<br><br>User Account Control: Admin Approval Mode for the Built-in Administrator account.<brUser Account Control: Allow UIAccess applications to prompt for elevation without using the secure desktop.<br>User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode.<br>User Account Control: Behavior of the elevation prompt for standard users.<br>User Account Control: Detect application installations and prompt for elevation.<br>User Account Control: Only elevate executables that are signed and validated.<br>User Account Control: Only elevate UIAccess applications that are installed in secure locations.<br>User Account Control: Run all administrators in Admin Approval Mode (i.e. as standard users).<br>User Account Control: Virtualize file and registry write failures to per-user locations.<br><br>To edit any setting select properties from the right click context menu.<br><br><b>7.Calibrate Your Display</b><br><br>Windows 7 includes a display calibrator that adjusts basic colour settings, gamma, brightness, contrast, colour balance etc according to your display device. Type dccw in the Start Menu search box to launch the Display Color Calibrator. </font></center></div></p>'
                }]
            }]
        },{
             title:'Apples OSX Tweaks'
            ,defaults:{border:false, activeTab:0}
            ,items:[{
                 defaults:{layout:'fit'}
                ,xtype:'tabpanel'
				
                ,items:[{
                    title:'OSX Tiger',
					html:'<p><Center><img src="../images/osxtiger.jpg" width="100 height="100"><br><br><font color="blue" size="3">(The Following Selected Tips Was Brought to you from MacWorld.Com)</font><br> <font size="2.5"><b>1.Get networked on-the-go</b><br><br> Tiger makes it very easy to connect two Macs via a FireWire cable—you don’t even have to use Target Disk Mode. On both computers, go to the Network preference pane, select Network Port Configurations from the Show pop-up menu, and enable the Built-in FireWire option. Next, go to the Sharing preference pane (again, on both computers) and click on the Start button to activate Personal File Sharing.<br>  This is many times faster than using an Ethernet connection to transfer files. There’s only one problem: if you’re already using the FireWire port to connect peripheral FireWire devices, such as an iSight camera, either the peripheral devices or the network connection may not work. The simplest workaround is to disconnect the peripheral devices while using the FireWire network.<b> —Ted Landau</b><br><br>  <b>2.Securely erase your hard disk</b><br><br> Before you sell or give away a Mac, make sure that no personal data remains on it. After you’ve copied all your files to your new Mac, restart the old one from the Mac OS X installation disc. Open Disk Utility and select your disk from the list on the left. Click on the Erase tab and then on Security Options. Next, choose one of the several erasure methods that are offered. The 7-Pass Erase option is probably sufficient for most people, but if you’re truly paranoid, select 35-Pass Erase, which will make it nearly impossible for anyone, even James Bond, to recover your files. If you’re using a laptop, make sure it’s plugged in. This process can take a long time. <b>—Kirk McElhearn</b><br><br> <b>Return the toolbar to System Preferences</b><br><br><b>3. Tiger’s updated System Preferences has a nice new feature—the integration of Spotlight searching, which displays results as you type.<br> However, it’s also missing one very useful feature—the customizable toolbar where you could store frequently used preference panes for quick access. If you prefer the old way, there is a relatively simple solution: use the previous version of System Preferences. If you used the Archive & Install option to install Tiger, you’ll find the previous System Preferences application in your /Previous System/Applications folder. Give it a new name (for example, Old System Prefs) to avoid overwriting the new version, and then copy it to your root Applications folder. When you launch System Preferences, you’ll see what looks a lot like the new version, but you’ll have the toolbar to work with. However, you’ll no longer see the integrated Spotlight search box. Also, the Spotlight panel will be in the Other section. Apart from these changes, the application is fully functional—and you’ll have the toolbar again. —RG<br><br>Access invisible login buttons<br><br>Invisible Sleep Button You can hide your Sleep, Restart, and Shut Down buttons from the exploring fingers of your children. Then accessing these options just takes a bit of typing, as shown here.<br><br>Tired of the smallest members of your household messing with your Mac? If you have little kids who love to click on buttons, consider disabling the login window’s Restart, Sleep, and Shut Down options. To do so, go to the Accounts preference pane, select the account, and click on Login Options. (You might need to click on the lock at the bottom of the dialog box first and enter your password.) Deselect the Show The Restart, Sleep, And Shut Down Buttons option. Without any buttons to click on, children will quickly grow bored and leave your machine alone.<br><br>But what if you want to put your machine to sleep, restart it, or shut it down from the login window after you’ve disabled the buttons? No problem. First, make sure your login window is in Name And Password mode. You can set this permanently in the Login Options window (by selecting the Name and Password option). Or you can use a little trick to switch the window in real time: Go to the login window, use the arrow keys to highlight a user, and press shift-option-return. The window will show the list of users. In the Name field. <br><br> Hide your Mac from hackersIf you use an always-on Internet connection, make sure to check out Tiger’s new hacker-fighting tools. Go to the Sharing preference pane and click on the Firewall tab to see the new Advanced button. Click on it to access options such as Stealth Mode. With Stealth Mode enabled, uninvited queries to your computer will receive no acknowledgement, making it nearly impossible for someone to surreptitiously discover (and possibly hack into) your Mac. —TL</font></center></p>'
                },{
                    title:'Leopard <font color="red" >Under Construction</font>'
					,html:'<p><center><img src="../images/osx.jpg" width="100" height="100"><br><br><img src="images/under_construction2.jpg" width="500" height="300"> </center></p>'
                },{
                    title:'OSX Snow Leopard <font color="red" >Under Construction</font>'
					,html:'<p><center><img src="../images/osxsleopard.jpg" width="100" height="100"><br><br><img src="images/under_construction2.jpg"width="500" height="300"> </center></p>'
                }]
            }]
        }
                ]
            });
       }
        win.show();
    }
});

MyDesktop.BogusMenuModule = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = {
            text: 'Reading Submenu',
            iconCls: 'tabs',
            handler: function() {
				return false;
			},
            menu: {
                items:[{
                    text: 'Bogus Window '+(++windowIndex),
                    iconCls:'tabs',
                    handler : this.createWindow,
                    scope: this,
                    windowId: windowIndex
                    },{
                    text: 'Bogus Window '+(++windowIndex),
                    iconCls:'tabs',
                    handler : this.createWindow,
                    scope: this,
                    windowId: windowIndex
                    },{
                    text: 'Bogus Window '+(++windowIndex),
                    iconCls:'tabs',
                    handler : this.createWindow,
                    scope: this,
                    windowId: windowIndex
                    },{
                    text: 'Bogus Window '+(++windowIndex),
                    iconCls:'tabs',
                    handler : this.createWindow,
                    scope: this,
                    windowId: windowIndex
                    },{
                    text: 'Bogus Window '+(++windowIndex),
                    iconCls:'tabs',
                    handler : this.createWindow,
                    scope: this,
                    windowId: windowIndex
                }]
            }
        }
    }
});



