//All of this source code is copyright Steve Levine, all rights reserved. Please contact him if you want to use this course code anywhere.

function moveObj(obj, x, y) {
	obj.style.left = x + "px";
	obj.style.top = y + "px";
}

function setAlpha(obj, opacity) {
	obj.style.filter = "alpha(opacity=" + 100 * opacity + ")";
	obj.style.opacity = opacity;
}

function setHeight(obj, value) {
	obj.style.height = value + "px";
}

function rndCode() {
	return "A" + Math.floor(1000000*Math.random());
}

function hotMenu(whichOne) {
	thisMenuItem = document.getElementById("mi" + whichOne);
	thisMenuItem.className = "MenuHot";
}
function coldMenu(whichOne) {
	thisMenuItem = document.getElementById("mi" + whichOne);
	thisMenuItem.className = "MenuCold";
}
