/*function getOpacity(obj){
	if(browser == "Netscape"){
		if(obj.style.opacity==0){
			return false;
		}else if(obj.style.opacity==100){
			return true;
		}
	}else{
		if(obj.style.filter="alpha(opacity==0)"){
			return false;
		}else if(obj.style.filter="alpha(opacity==100)"){
			return true;
		}
	}
}
function show(obj){
	if(browser == "Netscape"){
		obj.style.opacity = 100;
	}else{
		alert("showIE");
		obj.filter="alpha(opacity=100)";
	}
}
function hide(obj){
	if(browser == "Netscape"){
		obj.style.opacity = 0;
	}else{
		obj.filter="alpha(opacity=0)";
	}
}*/
browser = navigator.appName;
function $(sId){
	var obj = document.getElementById(sId);
	return obj;
}
function getDisplay(obj){
	if(obj.style.display == 'none'){
		return false;
	}else if(obj.style.display == 'block'){
		return true;
	}
}
function displayIt(obj, sId){
	touchePiano = $(sId);
	touchePiano.style.borderTop = "#000000 solid 15px";
	touchePiano.style.marginTop = "2px";
	touchePiano.style.marginRight = "2px";
	touchePiano.style.width = "128px";
	obj.style.display = "block";
}
function dontDisplayIt(obj, sId){
	touchePiano = $(sId);
	touchePiano.style.borderTop = "#000000 solid 17px";
	touchePiano.style.marginTop = "0px";
	touchePiano.style.marginRight = "0px";
	touchePiano.style.width = "130px";
	obj.style.display = "none";
}
function ssMenu(sId, bool){
	sIdObj = 'line_' + sId;
	obj = $(sIdObj);
	var isVisible = getDisplay(obj);
	if(isVisible){
		dontDisplayIt(obj, sId);
	}else{
		displayIt(obj, sId);
	}
	if(bool){
		displayIt(obj, sId);
	}
}
