var uA = ''; // user agent
window.onload = function () {
	if (document.getElementById('room-download')) {
		moveBanner();
		window.onresize = function (evt) {moveBanner();};
	}
}

function moveBanner() {//start floating 
	if(document.all) {	
		extra = 0;
		document.getElementById('room-download').style.left = 30 + 'px';
		document.getElementById('room-download').style.visibility = 'visible';
		uA = 'ie';
		}
	else {
		sW = 30; // semi-width of window
		(sW >= 1) ? document.getElementById('room-download').style.left = sW + 'px': document.getElementById('room-download').style.left ='0px';
		document.getElementById('room-download').style.visibility = 'visible';
		uA = 'ff';
		}
	if (uA == 'ie') {
		window.onscroll = float_bonus;
		}
	else {
		setInterval('float_bonus()', 50); 
		}
	}
function float_bonus() {//float
	if (uA == 'ie'){
		document.getElementById('room-download').style.top = 290 + document.documentElement.scrollTop + 'px';
		}
	else if (uA == 'ff'){
		document.getElementById('room-download').style.top = 290 + window.pageYOffset + 'px';
		}
	}

