/****************************** siemens' new web appearance script *****/
/****************************** Copyright (c) 2007-2009 Siemens AG *****/
/***********************************************************************/
/****************************************** inidvidual init script *****/
/***********************************************************************/
/************************************** 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                      [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_search();                          // search                             [lib/module.search.js]
	init_siteExplorer();

	/* 
		if(typeof init_fontsize == 'function') {
			init_fontsize();            // scalable font-size (CTC)             [lib/module.fontsize.js]
		}
	*/

	if (Info.browser.isIEpre7) {
		initLayout_IEPre7();        // min-width, max-width for IE<7        [lib/core.js]
		Event.observe(window, "resize", initLayout_IEPre7);
	}
});

Event.observe(window, "load", function() {
	HeaderVisual.initialize();    // replaces header images             [lib/module.header-visual.js]
});


