// get screen and browser sizes
var iX,iY,oX,oY,bt;
                
if (self.innerHeight) {
	iX = self.innerWidth;
	iY = self.innerHeight;
	oX = screen.width;
	oY = screen.height;
	bt = '1';
} else if (document.documentElement && document.documentElement.clientHeight) {
	// Explorer 6 Strict Mode
	iX = document.documentElement.clientWidth;
	iY = document.documentElement.clientHeight;
	oX = document.documentElement.width;
	oY = document.documentElement.height;
	if (!oX) {
		oX = screen.width;
		oY = screen.height;
	}
	bt = '2';
} else if (document.body) { 
	// other Explorers
	iX = document.body.clientWidth;
	iY = document.body.clientHeight;
	oX = document.body.width;
	oY = document.body.height;
	if (!oX) {
		oX = screen.width;
		oY = screen.height;
	}
	bt = '3';
} else { 
	iX = document.body.offsetWidth;
	iY = document.body.offsetHeight;
	oX = screen.width;
	oY = screen.height;
	bt = '4';
}