
var headerVisualImages = {
		"swap-1": "../pool/_headervisuals/home_mouseover/1_home_hv-berichtdesaufsichtsrats.jpg",
		"swap-2": "../pool/_headervisuals/home_mouseover/2_home_hv-briefandieaktionaere.jpg",
		"swap-3": "../pool/_headervisuals/home_mouseover/3_home_hv-aufeinenblick.jpg",
		"swap-4": "../pool/_headervisuals/home_mouseover/4_home_hv-produkte.jpg",
		"swap-5": "../pool/_headervisuals/home_mouseover/5_home_hv-fit42010.jpg",
		"swap-6": "../pool/_headervisuals/home_mouseover/7_home_hv-corpgov.jpg",
		"swap-7": "../pool/_headervisuals/home_mouseover/6_home_hv-finanzinfo.jpg",
		"swap-8": "../pool/_headervisuals/home_mouseover/9_home_hv-kennzahlen.jpg",
		"swap-9": "../pool/_headervisuals/home_mouseover/8_home_hv-unternehmensstruktur.jpg"
}

Event.onDOMReady(function(){
	//create stuff here
	
	var headline = ['Report of the Supervisory Board', 
	                'Letter to our shareholders',
	                'At a glance',
	                'Products and solutions',
	                'Fit4 2010',
	                'Corporate Governance',
	                'Information for shareholders',
	                'Key figures',
	                'Corporate Structure'
	                ];
	
	var context = ['The Chairman, Dr. Gerhard Cromme, reports on the Supervisory Board’s plenary meetings and the work of its committees.',
			'Peter Löscher, President and Chief Executive Officer of Siemens AG, looks back on another successful fiscal year – a year of transition marked by continued targeted development throughout the Company.',
			'For over 160 years, Siemens has stood for technical excellence, innovation, quality, reliability and internationality. In nearly 190 countries we’re giving customers a competitive edge by supporting them with innovative technologies and comprehensive know-how.',
			'Leveraging the future-oriented technologies and solutions of our three Sectors Industry, Energy and Healthcare, we’re answering the toughest questions of our time. For instance, we offer a broad spectrum of products and solutions that benefit the environment and help combat climate change.',
			'Our values – responsible, excellent, innovative – are the foundation of our Fit4 2010 program. Building on these values, we’re implementing a strategy to unleash our potential as an integrated technology company and achieve world-class performance.',
			'At Siemens, corporate governance stands for responsible management, respect for the interests of our shareholders and employees, transparency and responsibility in all entrepreneurial decisions and an appropriate risk management system.',
			'This page gives you quick access to the entire contents of the Information for shareholders section of our Annual Report 2008, provided in PDF format for downloading. In addition, the Siemens financial calendar, a glossary of important terms and the complete Annual Report 2008 are also available in PDF format.',
			'A compilation of the Company’s most important operating results – including new orders, revenue and income – for fiscal 2008 provides a quick overview of Siemens’ current situation.',
			'We’ve simplified our management structure, bundled our business activities in three Sectors and strengthened our local presence by establishing 20 Regional Clusters. Now we’re ideally positioned to continue achieving sustainable, profitable growth in the future.'
			];

	var paccess = new Element('p', {'class': 'access'}).update('Content preview for [Home]');
	var hiddencxt = new Element('div', {'class': 'hidden-headertext-contents'}).update(paccess);
	
	for(var i = 0; i < headline.length; i++)
	{
		var idstring = "headertext-swap-"+(i+1);
		var color = "sifr-header-"+(i+1);
		var txt = new Element('h2').update(headline[i]);
		var headctx = new Element('div', {'class': color}).update(txt);
		var content = new Element('div', {'class':'headertext-content', id: idstring}).update(headctx);
		
		var subtxt = new Element('h3').update(context[i]);
		/*var subheadctx = new Element('div', {'class': 'sifr-header'}).update(subtxt);*/
		var subheadctx = new Element('div').update(subtxt);
		content.appendChild(subheadctx);
		hiddencxt.appendChild(content);
	}
	
	$('headertext-zone').appendChild(hiddencxt);
	
	/*fix to make sublines correct color */
	$$('div.hidden-headertext-contents h3').each(function(item) {
		$(item).setStyle({color:"#ffffff"});
	});
	/*sIFR.replaceElement(named({sSelector:"div.sifr-header h3", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));*/
	
	sIFR.replaceElement(named({sSelector:"div.sifr-header-1 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-2 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-3 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#003399", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-4 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#009933", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-5 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#f68e13", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-6 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-7 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-8 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"div.sifr-header-9 h2", sFlashSrc: SIFR_SLAB_PATH, sColor:"#ffffff", sWmode:"transparent"}));
	
	/*fix to make sublines correct color */
	$$('div.hidden-headertext-contents h3').each(function(item) {
		$(item).setStyle({color:"#ffffff"});
	});
});