/****************************** siemens' new web appearance script *****/
/****************************** Copyright (c) 2007-2009 Siemens AG *****/
/***********************************************************************/
/******************************** init script for search templates *****/
/***********************************************************************/
/************************************** author virtual identity AG *****/
/* $LastChangedDate: 2009-04-22 16:38:48 +0200 (Mi, 22 Apr 2009) $ *****/

var USE_SIFR = true;

setup_sifr();

document.observe('dom:loaded', function() {
	if (!initGlobals()) return false;

	Layer.initialize();                     // close layer if clicking outside    [lib/core.js]
	HeaderAnimation.initialize();           // animates height (#1)               [lib/core.js]
	initLayout_buttons();                   // improves the layout of buttons     [lib/core.js]
	initLayout_sifr();                      // replaces some html by flash        [lib/core.js]
	init_contentLayers();                   // generic layers                     [lib/core.js]
	init_siteIdLayer();                     // site id layer                      [lib/core.js]
	init_siteExplorer();                    // site explorer | site map           [lib/core.js]
	init_languageSwitchLayer();             // language menu (>2 languages)       [lib/module.language-selector.js]
	init_guiSelect(
		GuiSelect.searchTransformer
	);                                      // styled js select boxes             [lib/module.gui.select.js]
	init_search();                          // search                             [lib/module.search.js]
	init_lightboxLayers();                  // lightbox layers                    [lib/module.lightbox-layer.js]
	init_newWindow('a.new-window');         // open new windows unobtrusively     [lib/core.js]
	
	/* init breadcrumb */
	init_breadcrumb();            // multiline breadcrumbs hover for IE<7 [lib/module.breadcrumb.js]

	if (Info.browser.isIEpre7) {
		initLayout_IEPre7();                  // min-width, max-width for IE<7      [lib/core.js]
		Event.observe(window, "resize", initLayout_IEPre7);
	}
});

// #1 this class is needed for the layer handling, even if no header is animated on the specific page
