function returnSize_Window() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && document.documentElement.clientWidth ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && document.body.clientWidth ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

function returnSize_postbody() {
  	var myWidth = 0;
  	if (document.getElementById) {
  		if( document.getElementById('container') && document.getElementById('container').offsetWidth	) 	{
    	//Non-IE
    		myWidth = document.getElementById('container').offsetWidth;
	  	} 
  		if( typeof( document.getElementById('container').innerWidth ) == 'number' ) {
    	//Non-IE
    		myWidth = document.getElementById('container').innerWidth;
  		} 
		else if( document.getElementById('container') && document.getElementById('container').clientWidth ) {
    	//IE 4 compatible
    		myWidth = document.getElementById('container').clientWidth;
  		}
  		return myWidth;
	}
}

function returnSize_nav() {
  var myWidth = 0;
  if (document.getElementById) {
  	var navContainer = document.getElementById('navbtns_container');
 	if( navContainer && navContainer.offsetWidth) {
		myWidth = '-' + ((navContainer.offsetWidth)/2).toString() + 'px'
	}
 	else if( typeof( navContainer.innerWidth ) == 'number' ) {
 	 //Non-IE
		myWidth = '-' + ((navContainer.innertWidth)/2).toString() + 'px';
  	}
 	else if( navContainer && navContainer.clientWidth ) {
    //IE 4 compatible
		myWidth = '-' + ((navContainer.clientWidth)/2).toString() + 'px';
 	}
 	return myWidth;
 }
}
