// replace.js: adjusts the placement of the mainContainer according to the window's height
// version 1.0, based on the famous Mootools :-))
// written 2009 by Sabine Weiss


if(Browser.Engine.trident ) // IE
	{}
	else {
window.addEvent('domready', function(){
    var window_size = window.getSize();
    var mc_height = $('maincontainer').getSize().y;
    contentHeight = mc_height + 10;
    if (window_size.y > contentHeight) {
      topMargin = (window_size.y-contentHeight)*2/5;
      topMargin = topMargin.toInt();
      var TopChange = new Fx.Tween($('maincontainer'), {duration:500});
      TopChange.set('margin-top', topMargin);    
      TopChange.set('margin-bottom', -topMargin);    
    }
});
};
