function setPageBG(){
	var browser=getBrowser();
	if ( (browser[0] == "Microsoft Internet Explorer")&&(browser[1].indexOf("MSIE 6.0")!=-1) ){
		evenOdd = isEven(document.body.offsetWidth);
		if (evenOdd == false){
			var bodyElm = document.getElementsByTagName ('body')[0];
			bodyElm.className = "oddWidth";
		}
	}
}

function setPageHeight(){
	var bodyElm = document.getElementsByTagName ('body')[0];
	windowHeight=f_clientHeight();
	
	if (bodyElm.clientHeight == windowHeight){
		bodyElm.style.height="100%";
	}
}

function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}


function getBrowser(){
	var browser = new Array();
	browser[0]=navigator.appName;
	browser[1]=navigator.appVersion;
	return browser
}

function isEven(num) {
  return !(num % 2);
}

function init(){
	setPageBG();
	setPageHeight();
}


window.onload=init;
window.onresize=init;