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

Ext.onReady(function(){
    // basic tabs 1, built from existing content
    

    // second tabs built from JS
    var tabs2 = new Ext.TabPanel({
        renderTo: 'content4',
        activeTab: 0,
        width:550,
        height:1850,
        plain:false,
        defaults:{autoScroll: false},
        items:[{
				xtype:"panel",
                title: 'Arlington',
					body:new Ext.ux.ManagedIFrame({autoCreate:{ src:'ScheduleGrid.htm?action=xmlclasslist&regsessionid=c955a849df4a000070bf0100007f0000&facilityid=00000000000000000000000000000065', frameBorder: 0, cls:'x-panel-body',width: '100%', height: '100%'}})
                //autoLoad:{url: 'ScheduleGrid.htm'}
            },{
				xtype:"panel",
                title: 'Fairfax',
                //autoLoad:'ajax1.htm'
				body:new Ext.ux.ManagedIFrame({autoCreate:{ src:'ScheduleGrid.htm?action=xmlclasslist&regsessionid=c955a849df4a000070bf0100007f0000&facilityid=00000000000000000000000000000070', frameBorder: 0, cls:'x-panel-body',width: '100%', height: '100%',fitToParent:false,style:{width:'1px',height:'1px'}}})
            } //,{
				//xtype:"panel",
              //  title: 'Rappahannock',
             //   //autoLoad: {url: 'ajax2.htm', params: 'foo=bar&wtf=1'}
				//body:new Ext.ux.ManagedIFrame({autoCreate:{ src:'ScheduleGrid.htm?action=xmlclasslist&regsessionid=43e22549ae12000080e60100007f0000&facilityid=00000000000000000000000000000082', frameBorder: 0, cls:'x-panel-body',width: '100%', height: '100%',style:{width:'1px',height:'1px'}}})
            //}//,{
           //     title: 'Event Tab',
           //     listeners: {activate: handleActivate},
           //     html: "I am tab 4's content. I also have an event listener attached."
          //  },{
          //      title: 'Disabled Tab',
          //      disabled:false,
          //      html: "Can't see me cause I'm disabled"
          //  }
        ]
    });

    function handleActivate(tab){
        alert(tab.title + ' was activated.');
    }
});
