/**************************************************
 * minheight.js: Dynamically set min-height       *
 *               to height of viewing window      *
 **************************************************/

function setMinHeight() {
    var xHeight;
    if (navigator.userAgent.indexOf('MSIE 8') != -1) {
        xHeight = document.documentElement.clientHeight;
        document.getElementById('wrapper').style.minHeight = xHeight+'px';
	}
	else if (navigator.userAgent.indexOf('MSIE') != -1) {
		xHeight = document.documentElement.clientHeight;
		if (xHeight >= document.getElementById('wrapper').scrollHeight) {
			document.getElementById('wrapper').style.height = xHeight+'px';
		}
    }
    else {
        xHeight = window.top.innerHeight;
        document.getElementById('wrapper').style.minHeight = xHeight+'px';
    }
}

