<!--
/*
+----------------------------------------------------------------------------------------------
| Site: Rosman Internet Services
| CMS:  gotopage 3.0
| Copyright (c) 2003 - 2005 Rosman (http://www.rosman.co.at)
|
| Author(s): Johan Rosman <johan@rosman.co.at>
+----------------------------------------------------------------------------------------------
| Purpose
| let all columns in index be of the same height
+----------------------------------------------------------------------------------------------
| Version   Date         Comment
| 3.01      2005/10/06   initial version
+----------------------------------------------------------------------------------------------
*/

if ( !window._index ) {
    var _index = new Object();
    _index.minheight = 470;

    /* helper function height */
    _index.height = function ( _col ) {
        if ( _col.offsetHeight )      return _col.offsetHeight;
        else if ( _col.pixelHeight )  return _col.pixelHeight;
        else                          return 0;
    }

    /* initialise index */
    _index.init = function () {
        if ( _class.is_a ( document.body, 'default' ) ) {
                var _content = new _dhtml ( 'content' );
            var _cols = _content.obj.getElementsByTagName ( 'DIV' );
            var _height = _index.minheight;
            for ( var _i=0; _i<_cols.length; _i++ ) {
                _height = Math.max ( _height, _index.height ( _cols[_i] ) );
            }
            for ( var _i=0; _i<_cols.length; _i++ ) {
                _cols[_i].style.height = _height + 'px';
            }
        }
    }  // init

    _event.register_handler ( window, 'load', _index.init );
}
-->