/**
 * @author jjkirby
 */
Ext.onReady(function(){
    var win;
    var button = Ext.get('show-btn');

    button.on('click', function(){
        // create the window on the first click and reuse on subsequent clicks
        if(!win){
            win = new Ext.Window({
                el:'advisory-win',
                layout:'fit',
		
                width:500,
                height:300,
                closeAction:'hide',
                plain: true,
				buttonAlign:'center',
				autoScroll: true,
				floating:true,
				shadow:true,
				shadowOffset:10,
				

                items: new Ext.TabPanel({
                    el: 'advisory-tabs',
                    autoTabs:true,
                    activeTab:0,
                    deferredRender:false,
                    border:false,
					autoScroll:true
               }),

                buttons: [{
                    text: 'Close',
                    handler: function(){
                        win.hide();
                    }
                }]
            });
        }
        win.show(this);
    });
});