window.addEvent('domready', function(){
	
	var Tips2 = new Tips($$('.tips'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	$$('li.hovertips').each(function(li){
		var img = li.getElement('img');
		li.addEvent('mouseenter',function(){
			img.src=img.src.replace(/_no\.gif/, '_hover.gif');
		});
		li.addEvent('mouseleave',function(){
			img.src=img.src.replace(/_hover\.gif/, '_no.gif');
		});
	});
	
	$$('#subMenu li').each(function(li){
		var img = li.getElement('img');
		var fx = new Fx.Style(img, 'opacity', {duration: 300, wait: false}).set(0);
		var a = li.getElement('a');
		if (a.hasClass('act')) {
			fx.set(1);
		}
		else {
			li.addEvent('mouseenter',function(){
				fx.start(1);
			});
			li.addEvent('mouseleave',function(){
				fx.start(0);
			});
		}
	});
	
	$$('a.toplink').each(function(a){
		var img = a.getElement('img');
		a.addEvent('mouseenter',function(){
			img.src = img.src.replace(/_passiv\.png/, '_aktiv.png');
		});
		a.addEvent('mouseleave',function(){
			img.src = img.src.replace(/_aktiv\.png/, '_passiv.png');
		});
	});
});
window.addEvent('domready', function(){ new SmoothScroll(); });

function showIframe() {
	document.getElementById("iframe").style.display="block";
}