function showActions(id, prefix, realClientId, animationDisabled) {
	if (!animationDisabled) {
	    if (window.hideStarted == null) {
	        window.hideStarted = new Object();
	    }
	    id = id == -1 ? "_1" : id;
	    eval("showActions" + prefix + id + "()");
	    window.hideStarted[prefix + id] = false;
	} else {
		setDisplay(realClientId, 'block');
	}
}

function hideActions(id, prefix, realClientId, animationDisabled) {
	if (!animationDisabled){
	    id = id == -1 ? "_1" : id;
	    window.hideStarted[prefix + id] = true;
	    window.setTimeout("hideActions2('" + prefix + id + "')", 300)
	} else {
		setDisplay(realClientId, 'none');
	}
}

function hideActions2(id) {
    if (window.hideStarted[id])
        eval("hideActions" + id + "()");
}

function findActionsElementId(actionsId) {
	var allElements = document.getElementsByTagName('*');
	for (var i=0; i<allElements.length; i++) {
		if (new RegExp(actionsId + "$").test(allElements[i].id)) {
			return allElements[i].id;
		}
	}
}


function setDisplay(elementId, displayValue) {
	if (document.getElementById(elementId)) {
		document.getElementById(elementId).style.display = displayValue;
		return true;
	}
	return false;
}
