window.onload = function ()
{
	if (window.ie6)
	{    
        $$('#navcontainer ul.stufe_eins li.opened, #navcontainer ul.stufe_eins li.selected').each (function (atag) 
		{
			
			var child = atag.getLast ();
			
			if (child.getTag() == 'ul')
			{
				atag.addEvent ("mouseover", function() {child.setStyle ("display", 'block');});
				atag.addEvent ("mouseout", function() {child.setStyle ("display", 'none');});
			}
	
		});
	}

	
    
	$$('a.thermoInfo').each(function(atag)
	{
		var showBox = atag.getElement ('.thermoInfoBox');
		showBox.setOpacity (0);
		var fx = new Fx.Styles(showBox, {duration:1000, fps:100, wait:false });
	 	var img = atag.getElement ('img');
	 	var fxImg = new Fx.Styles(img, {duration:1000, fps:100, wait:false });
		atag.addEvent('mouseenter', function()
		{	
			$$('.clickImage').setStyle ("display", 'none');
			img.setProperty ('src', '../images/' + img.getProperty('id') + '.gif');
			img.setStyle ("display", "block");
			showBox.setStyle ("display", 'block');
			fx.start(
			{
				'opacity': [0,0.8]
			});
	
			fxImg.start(
			{
				'opacity': [0,1]
			});
		});
		atag.addEvent('mouseleave', function()
		{
			img.setProperty ('src', '../images/0' + img.getProperty('id') + '.gif');
			$$('.clickImage').setStyle ("display", 'block');
		    showBox.setStyle ("display", 'none');
		});
	});
}