/**
  * Application Layout
  * by Joshua Suggs
  * http://jsguy.com/cr
  */
  
// reference local blank image
Ext.BLANK_IMAGE_URL = 'jobs/images/s.gif';

// create application
Floco.JobPost = function() {
    // do NOT access DOM from here; elements don't exist yet
 
    // private variables
    var grid, init = false;
    
    // private functions
    var sp00 = function(){
        var n = 1000000;
        return (Math.floor(Math.rand() * n+1));
    };

    // public space
    return {
        // public methods
        init: function() {
            if(init){return false;}init = true;
            Ext.QuickTips.init();
            this.initGrid();
        },
        
        initGrid : function(){
            
            grid = new Floco.grid.JobGridPanel({
                title: 'Available Positions (as of '+(new Date()).format('F j, Y')+' )',
                renderTo: 'jobdoc',
                iconCls: 'icon-grid',
                frame: false,
                stripeRows: false,
                loadMask: true,
                autoHeight: true,
				width: 610,
                collapsible: false
            });
            
            window.onresize = function() {
                grid.view.refresh();
            };
        }
	};
}(); // end of app
Ext.onReady(Floco.JobPost.init, Floco.JobPost);
// end of file