Ext.onReady(function(){

    Ext.QuickTips.init();
	Ext.form.Field.prototype.msgTarget = 'under';

     var wizard = new Ext.ux.Wiz({

        title : 'Competition Entry Wizard',
        closable: false,
		id:'wizard',

        headerConfig : {
            title : 'BKFK, Where Ideas Become Reality'
        },

        cardPanelConfig : {
            defaults : {
                baseCls    : 'x-small-editor',
                bodyStyle  : 'padding:20px 15px 5px 50px;background-color:#F6F6F6;',
                border     : false
            }
        },

        cards : wizSteps
    });
	
	showWizard = function(entryID){
        wizard.show();
		wizard.entryID=entryID;
        wizard.process('entryMain','entryMain',false);
		wizard.doLayout();
	};
	
	hideWizard = function(entryID){
        wizard.hide();
	};

    // show the wizard
    //wizard.show();
	//wizard.process('entryMain','entryMain',false)
	//wizard.cardPanel.getLayout().setActiveItem('entryMain');
});