/*
 * Ext JS Library 2.0.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function(){
    var obj = Ext.get('readmore_wherearewe');

    obj.on('click', function(){

        var panel = new Ext.Panel({
             margins:'3 3 3 0',
             autoLoad:{url:'wherewearenow.html'},
             autoScroll : true,
             bodyStyle: 'background-color: #e9d9bd;',
             cls : 'popup_style'
        });

        var win = new Ext.Window({
            title: 'Where we are now',
            closable:true,
            width:600,
            height:350,
            plain:false,
            layout: 'fit',
            items: [panel],
            modal:true,
            cls : 'popup_style'
        });

        win.show(this);
        
    });
    
    var obj2 = Ext.get('readmore_quotes');

    obj2.on('click', function(){

        var panel = new Ext.Panel({
             margins:'3 3 3 0',
             autoLoad:{url:'quote.html'},
             autoScroll : true,
             bodyStyle: 'background-color: #e9d9bd;',
             cls : 'popup_style'
        });

        var win = new Ext.Window({
            title: 'What are people saying?',
            closable:true,
            width:600,
            height:350,
            plain:false,
            layout: 'fit',
            items: [panel],
            modal:true,
            cls : 'popup_style'
        });

        win.show(this);
        
    });    
});

