/*
	cbs.js - CBS Messenger Service JavaScript Code Library
	
	Author: Kevin P. Wojdak (http://www.wojzworld.com)

*/


//+----------------------------------------------------------------------------
//  Function:       windowWidth
//  Author:         Original alertSize script provided for free by http://www.howtocreate.co.uk. 
//  Modified by:    Kevin P. Wojdak, Acquity Group, LLC
//  Created:        July 2006
//  Description:    Provides the current viewable page width.
//                  
//  Arguments:      none
//  Returns:        width of the page as one string
// 
//  Note:           Modified to return just width in one return value.  
//+----------------------------------------------------------------------------
//
function windowWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  var returnString = myWidth;
  return returnString;
}


function resetPage() {
	var sW = 800;
	sW = windowWidth();
	var winObj = document.getElementById('divTopTabBar');
	var winObj2 = document.getElementById('divFooter');
	if (winObj != null) {
		winObj.style.width = sW;
	}
	if (winObj2 != null) {
		winObj2.style.width = sW;
	}
}