//<![CDATA[

var testObj;

function HideContent(d) {
        if(d.length < 1) { return; }
        document.getElementById(d).style.display = "none";
        }

function ShowContent(d) {
        if(d.length < 1) { return; }
        document.getElementById(d).style.display = "block";
}

function ReverseContentDisplay(d) {
        if(d.length < 1) { return; }
        if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
        else { document.getElementById(d).style.display = "none"; }
}

 
function initFade(div) {
	// alert(div);
	testObj = document.getElementById(div);
	testObj.style.opacity = 0;
	testObj.style.filter = 'alpha(opacity=0)';
	document.getElementById(div).style.display = "block";
	setTimeout('delayedOpacity()',500);
}

function delayedOpacity() {
	for (var i=0;i<11;i++) {
		setTimeout('setOpacity('+i+')',100*i);
	}
}

function setOpacity(value) {
	testObj.style.opacity = value/10;
	testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
}

function removeContent(div) {
	document.getElementById(div).style.visibility = "hidden";
}

//]]>