/******************************* siemens' new web appearance script *****/
/******************************* Copyright (c) 2007-2008 Siemens AG *****/
/************************************************************************/
/******************************************* inidvidual init script *****/
/************************************************************************/
/*************************************** author virtual identity AG *****/
/* $LastChangedDate: 2008-02-29 12:33:39 +0100 (Fr, 29 Feb 2008) $ *****/

var USE_SIFR = true;

setup_sifr();

Event.onDOMReady(function() {
	if (!initGlobals()) return false;

	if (Info.browser.isIEpre7) {
		initBreadcrumb_IEPre7();  // breadcrumb hover for IE<7          [lib/module.breadcrumb.js]
		initLayout_IEPre7();      // min-width, max-width for IE<7      [lib/core.js]
		Event.observe(window, "resize", initLayout_IEPre7);
	}

	Layer.initialize();           // close layer if clicking outside    [lib/core.js]
	HeaderAnimation.initialize(); // animates height                    [lib/core.js]
    initLayout_searchButtons();   // Modified search button
	initLayout_buttons();         // improves the layout of buttons     [lib/core.js]
	initLayout_sifr();            // replaces some html by flash        [lib/core.js]
	init_logo();                  // opens link in a new window or tab  [lib/core.js]
	init_contentLayers();         // generic layers                     [lib/core.js]
	init_languageSwitchLayer();   // language menu (>2 lanmguages)      [lib/module.language-selector-layer.js]
	init_siteExplorer();          // site explorer | site map           [lib/core.js]
	Magnifier.getInstance();      // magnifies images (CTC)             [lib/module.magnifier.js]
});


Event.observe(window, "load", function() {
	HeaderVisual.initialize();    // replaces header images             [lib/module.header-visual.js]
});