steveosoule
10/18/2012 - 12:17 AM

pageFunctions

pageFunctions

var pageFunctions = {
    init: function() {
        var pageScreen = document.body.id;
        if (pageFunctions[pageScreen]) {
            $(document).ready(function() {
                pageFunctions[pageScreen]();
            });
        }
    },
    HOME: function() {
        // Home page scripts
    }
};
pageFunctions.init();​