function altPopup(){
	var div = document.getElementsByTagName("div");
	var i;
	var n;
	for(i = 0; i < div.length; i++){
		for(n = 0; n < arguments.length; n++){
			if(div[i].className == arguments[n]){
				var img = div[i].getElementsByTagName("img");
				var ii;
				for(ii = 0; ii < img.length; ii++){
					img[ii].onmouseover = execPopup;
				}
			}
		}
		
	}
}
function execPopup(e){
	if(!document.getElementById("popupBaloon")){
		var x = locateX(e);
		var y = locateY(e);
		var div = document.createElement("div");
		div.setAttribute("id","popupBaloon");
		div.className = "popupBaloon";
		var target = document.createElement("span");
		target.innerHTML = this.alt;
		div.appendChild(target);
		div.style.position = "absolute";
		if (document.documentElement.scrollTop){
			var my = document.documentElement.scrollTop;
		}else{
			var my = 0;
		}
		div.style.top = (my + y - 50) + "px";
		if(x > 100){
			div.style.left = (x - 105) + "px";
		}else{
			div.style.left = "0px";
		}
		div.style.filter = "alpha(opacity=85)";
		document.getElementsByTagName("body")[0].appendChild(div);
		this.onmouseout = function(){
			var div = document.getElementById("popupBaloon");
			var p = div.parentNode;
			p.removeChild(div);
		}
	}
}

function locateX(e){
	try{
		_x = event.clientX;
		if(_x == ''){
			_x = e.clientX;
		}
	}catch(error){
		_x = e.clientX;
	}
	return _x;
}
function locateY(e){
	try{
		_y = event.clientY;
		if(_y == ''){
			_y = e.clientY;
		}
	}catch(error){
		_y = e.clientY;
	}
	return _y;
}
addEvent(window, "load", function(){altPopup("hotel-option", "detailOptions");});
