function swapImage (img, caption) {
	document.getElementById("theImg").src = img;
	document.getElementById("theImg").title = caption;
	document.getElementById("theImg").alt = caption;
}

function rollOver (el, state) {
	var ua = new uaSniffer();

	if (ua.isCool) {
		if (state) {
			el.style.background = "url(/images/common/" + el.id + "_2.gif) no-repeat 16px 8px";
		} else {
			el.style.background = "none";
		}
	}
}

function hlCabin(cabin) {
	var ua = new uaSniffer();

	if (ua.isCool && parseInt(cabin,10) >= 1 && parseInt(cabin,10) <= 16) {
		for (i = 1; i <= 16; i++) {
			document.getElementById("cabin" + String(i)).style.backgroundColor = (document.getElementById("cabin" + String(i)).className == "alt") ? "#F1F4F9" : "#FFF";
		}
		document.getElementById("cabin" + String(cabin)).style.backgroundColor = "#F90";
	}
}

