if (window.addEventListener) { // NETSCAPE
	window.addEventListener('load', fk_cssbodytag_init, false);
} else if (window.attachEvent) { //IE
	window.attachEvent('onload', fk_cssbodytag_init);
}

function fk_cssbodytag_init() {
	var browser = detectBrowser();
	bodyTagBase = document.body.className + ' ' + browser;
	fk_cssbodytag_refresh();
}

function fk_cssbodytag_refresh() {	
	windowSize = getWindowSize();
	windowH = windowSize[1];
	windowW = windowSize[0];
	// the browsers orientation
	if (windowH > windowW) {
		cur_orientation = 'portrait';	
	} else {
		cur_orientation = 'landscape';
	}
	document.body.className = bodyTagBase + ' ' + cur_orientation;
	if (window.addEventListener) {
		window.addEventListener('orientationchange', fk_cssbodytag_refresh, false);
	} else if (window.attachEvent) { //IE
		window.attachEvent('onorientationchange', fk_cssbodytag_refresh);
	}
}
