var nContentHeight = 458;

/*///////////////////////////////////////////////////////////
	Find Client Window Height
*////////////////////////////////////////////////////////////
function fnGetWindowHeight() {

  var myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
   		//Non-IE
    	myHeight = window.innerHeight;
		htmHeight = document.documentElement.scrollHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
   		//IE 6+ in 'standards compliant mode'
    	myHeight = document.documentElement.clientHeight;
		htmHeight = document.documentElement.scrollHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    	//IE 4 compatible
    	myHeight = document.body.clientHeight;
		htmHeight = document.body.offsetHeight;
	}
	
    return myHeight;
	
}

/*///////////////////////////////////////////////////////////
	Position content in da middle
*////////////////////////////////////////////////////////////
function fnRePosition() {

	var nHeight = fnGetWindowHeight();

	var nNewHeight = 300;
	//
	
	if(nHeight>(nContentHeight+nNewHeight)) {
		nNewHeight = nHeight-nContentHeight;
	} 
	//
	if (document.layers) {
		document.all.columns.height = nNewHeight;
	} else 	if (document.all) {
		document.all.columns.style.height = nNewHeight;
	} else 	if (!document.all && document.getElementById) {
		document.getElementById('columns').style.height = nNewHeight+"px";
	}
	
}


window.onresize = fnRePosition;
window.onload = fnRePosition;