LuceCheVola = {
    menuItems: {
        who: {
            left: 20,
            text: 'Luce Che Vola, Lead by HH. Sheikh Nasser Bin Abdullah Al Thani, was established beginning of 2010 under the patronage of H.H. Sheikh Abdullah Bin Nasser Al Thani.'
        },
        what: {
            left: 190,
            text: 'Luce Che Vola is an Advertising Agency, an Event Management Company, an Entertainment Com- pany, and a Media Production House.'
        },
        done: {
            left: 393,
            text: 'Yup... this page is still being updated....'
        },
        reach: {
            left: 643,
            text: 'You can reach us via email for now: <div class="txtright"><a href="mailto:info@lucechevola.com">info@lucechevola.com</a></div>'
        }
    },
    init: function () {
        Event.observe(window, 'load', function () {
            LuceCheVola.setup();
        });
    },
    setup: function () {
        $$('#menu-container li').each(function (li) {
            Event.observe(li, 'click', LuceCheVola.select);
        });
    },
    previousSelection: null,
    select: function (e, ignorePreviousSelection) {
        try {
            LuceCheVola.lastElement = e;
            var data = LuceCheVola.menuItems[e.element().ancestors().first().id.split('-').last()];
            if (!data) return;
            if (data === LuceCheVola.previousSelection) return;
            
            if (!ignorePreviousSelection) {
                if (LuceCheVola.previousSelection !== null) {
                    Effect.SlideUp('content-wrapper', { duration: 0.4, afterFinish: function () {
                        LuceCheVola.select(e, true);
                    }});
                    return;
                }
            }
            
            LuceCheVola.previousSelection = data;
            $('content').setStyle({ paddingLeft: data.left + 'px' });
            $('content').update(data.text);
            Effect.SlideDown('content-wrapper', { duration: 0.4 });
        } catch (e) {};
        return false;
    }
};

LuceCheVola.init();