var hideList = new Array();

function addToHideList(idList, arr)
{
	hideList[idList] = arr;
}

function ShowHide(normal, details)
{
        if(normal!='noparam') var short_obj = document.getElementById(normal);
        var obj = document.getElementById(details);
        if(obj.style.display == "none")
        {
                obj.style.display = "block";
                if(normal!='noparam') short_obj.style.display = "none";
        }
        else
        {
                obj.style.display = "none";
                if(normal!='noparam') short_obj.style.display = "block";
        }
}

function hide(idElem)
{
	document.getElementById(idElem).style.display = "none";
}

function show(idElem)
{
	document.getElementById(idElem).style.display = "block";
}


function switchShowHide(obj_) {
        var obj = document.getElementById(obj_);

        if (obj) {
                if(obj.style.display == "none") {
                        obj.style.display = "block";
                } else {
                        obj.style.display = "none";
                }
        }
}

//list is an Array
function setHidden(show_, idList) {
	var list = hideList[idList];
	for (elem in list)
	{
		hide(list[elem]);
		//document.getElementById('s' + list[elem]).style.backgroundColor = '#75c5f0';
		document.getElementById('s' + list[elem]).style.paddingBottom = '5px';
		document.getElementById('s' + list[elem]).style.color = '#333';
		document.getElementById('s' + list[elem]).style.textDecoration = 'none';
	}
	show(show_);
	//document.getElementById('s' + show_).style.backgroundColor = '#dff0ff';
	document.getElementById('s' + show_).style.paddingBottom = '8px';
	document.getElementById('s' + show_).style.color = '#fff';
	document.getElementById('s' + show_).style.textDecoration = 'underline';
	//document.getElementById('s' + show_).style.margin = '1px';
}

