/****************************** siemens' new web appearance script *****/
/****************************** Copyright (c) 2007-2009 Siemens AG *****/
/***********************************************************************/
/****************************************** inidvidual init script *****/
/***********************************************************************/
/************************************** author virtual identity AG *****/
/* $LastChangedDate: 2009-01-13 10:53:52 +0100 (Di, 13 Jan 2009) $ *****/

var USE_SIFR = true;

setup_sifr();

Event.onDOMReady(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_siteExplorer();          // site explorer | site map             [lib/core.js]
	init_languageSwitchLayer();   // language menu (>2 lanmguages)        [lib/module.language-selector.js]
	init_breadcrumb();            // multiline breadcrumbs hover for IE<7 [lib/module.breadcrumb.js]
	Magnifier.getInstance();      // magnifies images (CTC)               [lib/module.magnifier.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]
});

function newWindow( url ) {
	var win = window.open( url, '', '', '' );
	win.focus();
}