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

Ext.onReady(function(){
    var p = new Ext.Panel({
        //region:'west',
        //id:'west-panel',
        title:"Doug's drivel",
		renderTo: 'container',
        split:true,
        width: 200,
		height: 480,
        minSize: 175,
        maxSize: 400,
        collapsible: true,
        margins:'35 0 5 5',
        cmargins:'35 5 5 5',
        layout:'accordion',
        layoutConfig:{
            animate:true
        },
        items: [{
            //html: Ext.example.shortBogusMarkup,
            title:'swf samples',
            autoScroll:true,
            border:false,
            iconCls:'nav',
			listeners: {
				expand: handleExpand, 
				collapse : handleCollapse
			},
			autoLoad:'flexExamples.html'
        },{
            title:'extjs examples',
            border:false,
            autoScroll:true,
            iconCls:'nav', 
			autoLoad:'extJsExamples.html'
        },{
            title:'resume',
            border:false,
            autoScroll:true,
            iconCls:'nav',
			autoLoad:'doug.html'
        }]
    });
	
	function handleExpand(panel){
    	//alert(panel.title + ' was expanded.');
	}
	
	function handleCollapse(panel){
    	//alert(panel.title + ' was collapsed.')
	}
});