function toggleSidebarWidget(theWidget) {
	var theWidgetObject = document.getElementById('sidebar_'+theWidget);
	var theWidgetIcon = document.getElementById('sidebar_expandicon_'+theWidget);
	if (theWidgetObject.style.display == 'none') {
//	if (theWidgetObject.style.opacity == 0) {
		theWidgetObject.style.display = 'block';
		theWidgetIcon.src = js_domain + '/gfx/interface/icon_collapse.gif';
//		for (var j=0;j<100;j++)
//			setTimeout('setOpacity('+theWidgetObject+','+j+')',10*j);
	} else {
		theWidgetObject.style.display = 'none';
		theWidgetIcon.src = js_domain + '/gfx/interface/icon_expand.gif';
//		for (var j=100;j>=0;j--)
//			setTimeout('setOpacity('+theWidgetObject+','+j+')',10*j);
	}
}


function removeBackgroundImage(theContainer) {
	var theContainer = document.getElementById(theContainer);
	if (theContainer != undefined) {
		theContainer.style.background = 'none';
		theContainer.style.backgroundImage = 'none';
	}
}
