function FlexObj() {
	var winWidth = 0, panelWidth = 0;

	if( typeof( window.innerWidth ) == 'number' ) {
		winWidth = window.innerWidth;
		winHeight = window.innerHeight;

	}else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		winWidth = document.documentElement.clientWidth;

	}else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		winWidth = document.body.clientWidth;
	}

	panelWidth = parseInt(winWidth-216);
	/* alert(winWidth + ' ' + panelWidth); */
	document.getElementById('mainFlexPanel').style.width=parseInt(panelWidth) + 'px';
}
function maximizeWin() {
	if (isIE && isMac) {
		if (window.screen) {
			var aw = screen.availWidth;
			var ah = screen.availHeight;
			window.moveTo(0, 0);
			window.resizeTo(aw, ah);
		}
	}
}