jQuery.noConflict();
jQuery(document).ready(function($) {

$(document).ready(init);

function init(){




	// nav
	$("#mainMenue ul li").each(function(){
		var p = $(this).prev().children("a");
		var n = $(this).next().children("a");
		if ( p.length && p.attr('class').indexOf("active") != -1 ) 
			$(this).children("a").addClass("shadowLeft");
		if ( n.length && n.attr('class').indexOf("active") != -1 ) 
			$(this).children("a").addClass("shadowRight");
		// last item active, place drop shadow on search area
		else if ( !p.length && $(this).children('a').attr('class').indexOf("active") != -1 )
			$("#schattenorange").addClass("shadowRight");
	});
	
	$("#mainMenue ul li").mouseover(function(){
		if ( $(this).attr('class').indexOf("active") != -1 ) return;
		var p = $(this).prev().children("a");
		var n = $(this).next().children("a");
		
		if ( p.length && p.attr('class').indexOf("active") == -1 ) 
			p.addClass("shadowRight");
		else if ( p.length && p.attr('class').indexOf("active") != -1 ) 
			$(this).children("a").removeClass('shadowLeft');
		if ( n.length && n.attr('class').indexOf("active") == -1 ) 
			n.addClass("shadowLeft");
		// last item active, place drop shadow on search area
		else if ( !p.length ) $("#schattenorange").addClass("shadowRight");
		
	});
	
	$("#mainMenue ul li").mouseout(function(){
		if ( $(this).attr('class').indexOf("active") != -1 ) return;
		var p = $(this).prev().children("a");
		var n = $(this).next().children("a");
		if ( p.length && $(this).children("a").attr('class').indexOf("active") == -1 ) 
			p.removeClass("shadowRight");
		if ( n.length && $(this).children("a").attr('class').indexOf("active") == -1 ) 
			n.removeClass("shadowLeft");
		
		// replace shadow on tab to the right of active tab
		if ( p.length && p.attr('class').indexOf("active") != -1 ) 
			$(this).children("a").addClass('shadowLeft');
	
		// last item active, place drop shadow on search area
		if ( !p.length && $(this).children('a').attr("class").indexOf("active") == -1 ) 
			$("#schattenorange").removeClass("shadowRight");
	
	});

}

	});

