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

Ext.onReady(function() {

    Ext.onReady(function() {
        var win;
        var button = Ext.get('FirstCask');

        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'FirstCask-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'FirstCask-tabs'
                    })
                });
            }
            win.show(button);
        });
    });

    Ext.onReady(function() {
        var win;
        var button = Ext.get('Alchemist');
        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'Alchemist-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'Alchemist-tabs'
                    })
                });
            }
            win.show(button);
        });
    });
    Ext.onReady(function() {
        var win;
        var button = Ext.get('Adelphi');

        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'Adelphi-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'Adelphi-tabs'
                    })
                });
            }
            win.show(button);
        });

    });
    Ext.onReady(function() {
        var win;
        var button = Ext.get('BBR');

        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'BBR-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'BBR-tabs'
                    })
                });
            }
            win.show(button);
        });

    });

    Ext.onReady(function() {
        var win;
        var button = Ext.get('MacArthur');
        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'MacArthur-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'MacArthur-tabs'
                    })
                });
            }
            win.show(button);
        });
    });

    Ext.onReady(function() {
        var win;
        var button = Ext.get('Clydesdale');

        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'Clydesdale-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'Clydesdale-tabs'
                    })
                });
            }
            win.show(button);
        });

    });

    Ext.onReady(function() {
        var win;
        var button = Ext.get('BlackAdder');

        button.on('click', function() {
            // create the window on the first click and reuse on subsequent clicks
            if (!win) {
                win = new Ext.Window({
                    applyTo     : 'BlackAdder-win',
                    layout      : 'fit',
                    width       : 500,
                    height      : 150,
                    closeAction :'hide',
                    plain       : true,
                    items       : new Ext.Panel({
                        applyTo        : 'BlackAdder-tabs'
                    })
                });
            }
            win.show(button);
        });

    });


    function showResult(btn) {

    }
    ;


});
