// 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 frame_height = $('frame').getSize().y;
    $('frame').setStyle('display','none');
    var window_size = window.getSize();
    contentHeight = frame_height + 10;
    if (window_size.y > contentHeight) {
      topMargin = (window_size.y-contentHeight)*1/2;
      var frameTopChange = new Fx.Tween($('frame'), {duration:500});
      frameTopChange.set('margin-top', topMargin);    
    }
    $('frame').setStyle('display','block');
});
};
