﻿  $(function() {
	// Menü Animation
//	$('#navi>ul>li>a').click(function() {
//		$(this).blur();									  	
//		var li=$(this).parent();
//		$('#navi ul li.active').not(li).animate({backgroundColor:'#2d2d2d'},'slow',function(){$(this).removeClass('active')}).find('ul').slideUp('slow');
//		if (li.hasClass('active')) {
//			if ($(this).attr('href')!='#') return true; // Hauptmenupunkt akiver inhalt
//			li.animate({backgroundColor:'#2d2d2d'},'slow').find('ul').slideUp('slow',function() { li.removeClass('active'); } );
//		} else {
//			li.addClass('active').css({backgroundColor:'#2d2d2d'});
//			li.find('ul').slideDown('slow');
//			li.animate({backgroundColor:'#ffffff'},'slow',function() {
//				var url=li.find('a').attr('href');
//				if (url) location.href=url;
//			});
//		}
//		return false;
//	 });
	$('#navi>ul>li>a')
		.hover(
		function() {
			$(this).animate({marginRight:0,marginLeft:20},'fast');
		},
		function() {
			$(this).stop().animate({marginRight:0,marginLeft:5},'fast');
		}
	)
//	$('#navi>ul>li>ul>li>a').hover(
//		function() {
//			$(this).animate({paddingRight:20,paddingLeft:0},'fast').css({color:'#ff0000'}).animate({color:'#ffffff'},{queue:false, duration:'slow'});
//		}, function() {
//			var col=$(this).hasClass('active')?'#ffffff':'#7d7d7d';
//			$(this).stop().animate({paddingRight:10,paddingLeft:10,color:col},'fast');
//		});
//
//	// Language Selector
//	$('#navi>#langselector>ul>li>a')
//		.hover(
//		function() {
//			$(this).animate({paddingRight:10,paddingLeft:0},'fast');
//			$(this).parent().animate({backgroundColor:'#1e1e1e'},'slow');
//		},
//		function() {
//			$(this).stop().animate({paddingRight:0,paddingLeft:10},'fast');
//			$(this).parent().stop().animate({backgroundColor:'#2d2d2d'},'slow');
//		}
//	)

  });