var k1 = false;
var k2 = false;

function showLoc(o,e){
	var alpha = 0;
	var obj = document.getElementById("loc"+o);
	if(!k1||!k2){
		obj.style.filter = "alpha(opacity=0)";
		obj.style.mozOpacity = "0";
		obj.style.opacity = "0";
	}else{
		alpha = parseInt(obj.style.opacity) * 100;
	}
	obj.style.display = "block";
	var ss = setInterval(function(){
		if(alpha<=90){
			obj.style.filter = "alpha(opacity="+alpha+")";
			obj.style.mozOpacity = (alpha/100).toString();
			obj.style.opacity = (alpha/100).toString();
			alpha += 30;
			k1 = true;
		}else{
			clearInterval(ss);
			k1 = false;
		}
	},1);
}

function hideLoc(o){
	var alpha = 90;
	var obj = document.getElementById("loc"+o);
	if(!k1){
		obj.style.filter = "alpha(opacity=90)";
		obj.style.mozOpacity = ".90";
		obj.style.opacity = ".90";
	}else{
		alpha = parseInt(obj.style.opacity) * 100;
	}
	var ss = setInterval(function(){
		if(alpha>=0){
			obj.style.filter = "alpha(opacity="+alpha+")";
			obj.style.mozOpacity = (alpha/100).toString();
			obj.style.opacity = (alpha/100).toString();
			alpha -= 30;
			k2 = true;
		}else{
			obj.style.display = "none";
			clearInterval(ss);
			k2 = false;
		}
	},1);
}


