

function SetContentHeight(){ 

	var ScreenHeight = getWindowSize(); 
    var footer = document.getElementById('footer_push');
    footerHeight = footer.offsetHeight;
    headerHeight = document.getElementById( 'header' ).offsetHeight;
    contentHeight =  document.getElementById( "content" ).offsetHeight;
    var newFooterHeight = ScreenHeight - ( headerHeight + ( contentHeight - footerHeight ) );
    alert("newFooterHeight = ScreenHeight - ( headerHeight + ( contentHeight - footerHeight ) );" +
        newFooterHeight+" = "+ScreenHeight+" - ( "+headerHeight+" + ( "+contentHeight+" - "+footerHeight+" ) );"
        );
	newFooterHeight = newFooterHeight -36;
    if( newFooterHeight > 0 ){
        footer.style.height = newFooterHeight+"px";
    }

}

function getWindowSize(){
     var h = 0;
     if( typeof( window.innerwidth ) == 'number' ){
         //nonie
         h = window.innerWidth;
    } else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        h = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        h = document.body.clientHeight;
    }
    return h;
}


function FixContentWidth() {
    var ScreenWidth = document.getElementById( "content" ).offsetWidth;
    menuWidth = document.getElementById( "column-one" ).offsetWidth;
    textWidth = document.getElementById( "column-two" ).offsetWidth;
    document.getElementById( "column-two" ).style.width = (ScreenWidth - menuWidth - 30) + "px" ;
}

function getWindowWidth(){
     var w = 0;
     if( typeof( window.innerwidth ) == 'number' ){
         //nonie
         w = window.innerWidth;
    } else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientWidth ) ) {
        w = document.documentElement.clientWidth;
    } else if( document.body && ( document.body.clientWidth || document.body.clientWidth ) ) {
        w = document.body.clientWidth;
    }
    return w;
}
