
// IE6 patch
// Fixes problem with right nav wrapping in IE6 when window width gets too low. 
// Caused by IE6 bugs and lack of support for some CSS 2.0 attributes.

window.onresize = doFixIE6Layout;

//window.captureEvent(e)

function doFixIE6Layout() {

	if (navigator.appVersion.indexOf('MSIE 6') > -1) {
		var winW = document.body.offsetWidth;

		//window.status = winW;

		if (winW <= 781) {
			window.alert("The width of this page is limited on old versions of some web browsers (e.g. Internet Explorer version 6).");
			resizeTo(820, document.body.clientHeight);
			//return false;
		}

	}

}

function doFixIE6OnLoad() {

	if (navigator.appVersion.indexOf('MSIE 6') > -1) {
		var winW = document.body.offsetWidth;

		//window.status = winW;

		if (winW <= 781) {
			resizeTo(820, document.body.offsetHeight);
		}

	}

}
