var EyeCandy = {

    duration: 500,

    menu: function() {

        // dropin menu
        var h = $('menu').getStyle('height');
        $('menu').setStyles({ 'height': '0px', 'overflow': 'hidden', 'opacity': '0.0' });
        var menuFx = new Fx.Morph($('menu'), { 'duration': this.duration });
        menuFx.start({ 'opacity': '1.0', 'height': h });

    },

    submenu: function() {

        // dropin menu
        var menu = $$('#menu li ul')[0];
        var h = menu.getStyle('height');
        menu.setStyles({ 'height': '0px', 'overflow': 'hidden', 'opacity': '0.0' });
        var menuFx = new Fx.Morph(menu, { 'duration': this.duration });
        menuFx.start({ 'opacity': '1.0', 'height': h });

    },

    header: function() {

        // set header
        var img = $$('#header img')[0];
        img.setStyle('opacity', '0.0');

        var next = new Asset.image(img.get('src'), {
            onload: function() {
                var imgFx = new Fx.Tween(img, { 'duration': EyeCandy.duration });
                imgFx.start('opacity', '1.0');
            }
        });

    },

    headertext: function() {
        var el = $('header_text');
        el.setStyle('opacity', '0.0');
        new Fx.Tween(el, { 'duration': EyeCandy.duration }).start('opacity', '1.0');
    },

    text: function() {

        //dropin text box
        var h = $('text_box').getStyle('height');
        $('text_box').setStyles({ 'height': '0px', 'overflow': 'hidden', 'opacity': '0.0' });
        var textFx = new Fx.Morph($('text_box'), { 'duration': this.duration });
        textFx.start({ 'opacity': '1.0', 'height': h });

    }

};