var resize_timeout       = false;
var resize_correction   = 231;
var last_height            = 0;

function resize_do(){	
	obi = document.getElementById('content');

	if(document.all){
             var x = ( document.compatMode == "CSS1Compat" ) ? document.documentElement.clientHeight  : document.body.clientHeight ;
	}
	else{
	     var x = window.innerHeight;
	}

         if(x == last_height){ 
               return;
        }


       var h = x  -   resize_correction;	


	if(document.all){
              obi.style.height = '0px';     
              obi.style.height = h + 'px'; 
        }
        else{
              obi.style.minHeight = h + 'px'; 
        }
	  
	
	

}

function init_resize(){
        if(resize_timeout){
             window.clearTimeout( resize_timeout );
        }
        resize_timeout = window.setTimeout( 'resize_do()', 20 );
}
