/*!
 * Ext JS Library 3.3.1
 * Copyright(c) 2006-2010 Sencha Inc.
 * licensing@sencha.com
 * http://www.sencha.com/license
 */

 function OpenDiv(which) {
  	  divpagegrey=document.getElementById("DivPageGrey");
  	 
  	  if (which=="OpenDivPageGrey") {
  		
  		  	divpagegrey.style.display="block";
  		  	
  		} 
  	if (which=="CloseDivPageGrey") {
  		
		  	divpagegrey.style.display="none";
		  	
		} 
  	 
    } 

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({
                applyTo:'hello-win',
                layout:'fit',
                width:690,
                height:670,
                closeAction:'hide',
                plain: true,

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

                
            });
        }
        win.show(this);
    });
});
