// #menu li.level-1 a.normal1 {
// 	background-color: white;
// 	color: #2CA726;
// }
// 
// #menu li.level-2 a.normal2 {
// 	background-color: #E1F3E0;
// 	color: #2CA726;
// }

window.addEvent('domready', function(){ 
	new SmoothScroll({
		links: '.topLink a'
	});
	
	$$('#menu li.level-1').each(function(li) {
		a = li.getElement('a');
		var linkMorph = new Fx.Styles(a, {duration: 200, wait:false});
		
		if (!a.hasClass('act')) {
			linkMorph.set({
				'background-color': '#FFF',
				'color': '#2CA726'
			});
			
			a.addEvent('mouseenter', function(e) {
				linkMorph.start({
					'background-color': '#1FB219',
					'color': '#FFF'
				});
				
			});
			
			a.addEvent('mouseleave', function(e) {
				linkMorph.start({
					'background-color': '#FFF',
					'color': '#2CA726'
				});
			});
		}
	});
	
	$$('#menu li.level-2').each(function(li) {
		a = li.getElement('a');
		var linkMorph = new Fx.Styles(a, {duration: 400, wait:false});
		
		if (!a.hasClass('act')) {
			linkMorph.set({
				'background-color': '#E1F3E0',
				'color': '#2CA726'
			});
			
			a.addEvent('mouseenter', function(e) {
				linkMorph.start({
					'background-color': '#FFF',
				});
				
			});
			
			a.addEvent('mouseleave', function(e) {
				linkMorph.start({
					'background-color': '#E1F3E0'
				});
			});
		}
	});
	Lightbox.init.bind(Lightbox,{resizeDuration: 400, resizeTransition: Fx.Transitions.sineInOut, opacity: 0.8, opacityDuration: 500, initialWidth: 250, initialHeight: 250, animateCaption: 1, showNumbers: 1, defaultIframeWidth: 500, defaultIframeHeight: 300, iframeScrolling: 'auto', enablePrintButton: 0, enableSaveButton: 0,llPage: 'Seite', llOf: 'von', psScriptPath: 'http://www.vermin.de/typo3conf/ext/pmkslimbox/savefile.php'});
});


 
/*Window.onDomReady(function() { links = $$('a'); new SmoothScroll(); });*/
