// JavaScript Document


function init()
{
	init_Lang_Slider();	
}


function init_Lang_Slider()
{

	
	
	
	jQuery("#arrowLangDown").hide();
	//return ;
	
	jQuery("#drop_down_menu").children("li.menu").each(function(i)
	{
		var list = jQuery(this).children("ul.links").first();
		list.hide();
		
		var myEl = jQuery(this).children(".level1").first();
		
		jQuery(this).mouseenter(function()
		{
			list.slideDown();
			jQuery("#arrowLangRight").hide();
			jQuery("#arrowLangDown").show();
			myEl.css("color", "#ff0");
		});
		
		jQuery(this).mouseleave(function()
		{
			list.slideUp();
			jQuery("#arrowLangRight").show();
			jQuery("#arrowLangDown").hide();
			myEl.css("color", "#838066");
		});
		
	});
	
	
	/*
	jQuery('drop_down_menu').getElements('li.menu').each( function( elem ){
		var list = elem.getElement('ul.links');
		var myFx = new Fx.Slide(list).hide();
		
		
		var myEl = elem.getElement(".level1");
		myEl.set('tween', {
			duration: 'normal',
			transition: 'sine:in:out',
			link: 'cancel'
		});
		
		elem.addEvents({
			'mouseenter' : function(){
				myFx.cancel();
				myFx.slideIn();
				myEl.tween("color", "#ff0000");
				$("arrowLangRight").hide();
				$("arrowLangDown").show();
				
				
			},
			'mouseleave' : function(){
				myFx.cancel();
				
				myFx.slideOut();
				myEl.tween("color", "#efefef");
				
				
				$("arrowLangDown").hide();
				$("arrowLangRight").show();
				
			}
		});
	});*/
	
}

jQuery(document).ready(function() {
	init();	
});
