window.addEvent('domready', function() {
	var toolbar_banner = $('toolbar_banner');
    if (toolbar_banner && (!toolbar_banner.get('changeable') 
			|| toolbar_banner.get('changeable') == true)) {
		toolbar_banner.setStyle('display', 'block');
	}
});

function removeToolBanner() {
	var toolbar_banner = $('toolbar_banner');
	if (toolbar_banner) {
		toolbar_banner.set('changeable', false);
		toolbar_banner.setStyle('display', 'none');
	}
}

// --- IE toolbar ---

/**
 * Function called by the IE toolbar upon page load.
 * For more information, see http://www.besttoolbars.net/CUST/ToolbarJavascriptInterface.pdf
 * @param Tool tool The IE toolbar. Various settings and options are available but beware
 *		some are read-only. See http://www.besttoolbars.net/CUST/ToolbarJavascriptInterface.pdf.
 */
function ToolBarInit(tool) {
	removeToolBanner();
}

// --- Firefox toolbar ---

/**
 * This function is called when a button is pressed by the firefox toolbar after page load.
 * This is a workaround, other ways to call javascript functions are unsafe or overly complex.
 */
function DumptiFFInit() {
	removeToolBanner();
}
