/*
 * The code relies on the prototype.js and scriptaculous.js libraries to
 * be also loaded.
 */

/*
 * Register more initializations here
 */
function initialize()
{
	main_navigation.init();
	filter_navigation.init();
	minisitemap.init();
	
	/* hack for ie6 and image-flickering */
	try {
		document.execCommand("BackgroundImageCache", false, true);
	} catch(err) { }
}
Element.observe( window, 'load', initialize, false );


function DOM_getText( div ) {
	if( null==div ) return null;
	return div.childNodes[0] ? (div.childNodes.length > 1 ?
      $A(div.childNodes).inject('', function(memo, node) { return memo+node.nodeValue }) :
      div.childNodes[0].nodeValue) : '';
}
