﻿//esLightbox.init({descriptions: '.lightboxDesc', showControls: true, showNumbers: true});
//alert('oopsy');

window.addEvent('domready', function() {
    var initMultiBox = new multiBox({
        initialSize: { w: 600, h: 400 },
        mbClass: '.mb', //class you need to add links that you want to trigger multiBox with (remember and update CSS files)
        container: $(document.body), //where to inject multiBox
        path: './Files/', //path to mp3 and flv players
        useOverlay: true, //use a semi-transparent background. default: false;
        maxSize: { w: 600, h: 400 }, //max dimensions (width,height) - set to null to disable resizing
        addRollover: true, //add rollover fade to each multibox link
        addOverlayIcon: true, //adds overlay icons to images within multibox links
        addChain: true, //cycle through all images fading them out then in
        recalcTop: true, //subtract the height of controls panel from top position
        addTips: false//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)							
    });
    if (loadboxes) {
        var obj = {
            wait: 3000,
            effect: 'fade',
            duration: 1000,
            loop: true,
            thumbnails: true,
            backgroundSlider: false
        }
        if($('slideshowContainer')){
            elShow = new SlideShow('slideshowContainer', 'mb', obj);
            elShow.play();
        }
    }

});
