var footerMinHeight = 104;
var footerMaxHeight = footerMinHeight + document.id('footer_content').getHeight();
var myFx = new Fx.Tween('footer', {
	mode: 'vertical',
    duration: 'normal',
    transition: 'sine:in',
    link: 'cancel',
    property: 'height'
});
 
document.id('footer_mask').addEvent('click', function(event){
    event.stop();
    document.id('footer').addClass('clicked');
    myFx.start(footerMinHeight, footerMaxHeight);
    document.id('footer_mask').hide();
});
document.id('footer').addEvent('click', function(event){
    event.stop();
    document.id('footer').removeClass('clicked');
    myFx.start(footerMaxHeight, footerMinHeight);
    document.id('footer_mask').show();
});

var contentHeight = document.id('header').getHeight() + document.id('main').getHeight();

//if(contentHeight < 880)
	document.id('wrapper_out').setStyle('height',(contentHeight+104)+'px');
