/* Smoke Controller */

var SmokeController = {};
var smokeObject;

SmokeController.showSmoke = false;

SmokeController.show = function(text) {
	smokeObject.innerHTML = text;
	smokeObject.style.display = "block";
}

SmokeController.hide = function() {
	smokeObject.style.display = "none";
}

SmokeController.updatePosition = function(x,y) {
	y = y+10+document.documentElement.scrollTop;
	smokeWidth = smokeObject.clientWidth;
	if (document.documentElement.clientWidth < x+smokeWidth+20) {
		x = x-smokeWidth;	
	} else {
		x = x+10;
	}
	smokeObject.style.left = x+"px";
	smokeObject.style.top = y+"px";
}
