// summary: like it sounds
// description: home agx.currentPage initializer for ag

//waits for required layers, then requires the agx.currentPage resource, which 
//in turn calls the generated javascript on the pd
if(!agx.currentPage)agx.currentPage={};
agx.currentPage.waiter = agx.wait_for_events(
    ["/ag.layers.core/loaded/", "/ag.layers.ext/loaded/"], 
    function(){
        dojo.require('ag.pages.printables.department');
        dojo.require("ag.widget.CNPCardscroller");
        dojo.addOnLoad( function (){
        new ag.widget.CNPCardscroller('agi-scroll', 3, 3, false, false, 1);});
        console.warn('js/ag/printables/department.js initialized');
    }
);
