function getRealDisplay(elem) {
	if (elem.currentStyle) {
		return elem.currentStyle.display
	} else if (window.getComputedStyle) {
		var computedStyle = window.getComputedStyle(elem, null )

		return computedStyle.getPropertyValue('display')
	}
}

function hide(el) {
    $(el).css("display", "none");
}

displayCache = {}

function isHidden(el) {
	if ("none" == $(el).css("display"))
        return true;
    return false;
}

function toggle(el) {
	isHidden(el) ? show(el) : hide(el)
}


function show(el) {

    $(el).css("display", "block").fadeTo('slow');
}

