//  We really need a proper loading script like scriptaculous

//document.write('<script type="text/javascript" src="/js/bse_admin.js"></script>');
document.write('<script type="text/javascript" src="/js/combo.packed.js"></script>');

// wait for DOM to load before initialising

//document.observe("dom:loaded", dom_init);
Event.observe(window, "load", window_init);

var bse_debug = false;

// function dom_init() {
//     if ($('message')) {
//         new Effect.DropOut($('message'),{delay: 5});
//     }
// }

function window_init() {

//     var flowingPanorama = new FlowingPanorama("flow", "panorama", "#flow a", {
//         verticalAlignment: "top"
//     },{
//         useMouseScroll: false
//     });

    var fixedPanorama = new FixedPanorama("flow", "panorama", "#flow a");

    var drawers = new Drawers('.article', {
        id: "drawers",
        orientation: "horizontal",
        triggerClass: "pagetitle", 
        contentClass: "body",
        activeClass: "active",
        hoverClass: "hover",
        initialDrawer: true,
        duration: 0.25
    });

    var drawers2 = new Drawers('.drawer', { 
        singleDrawer: true,
        activeClass: "active",
        hoverClass: "hover",
        initialDrawer: true,
        //drawerWidth: 364,
        containerHeight: 390,
        showEvent: "mouseover",
        hideEvent: "mouseover",
        duration: 0.35
    });
};