/*window.onload=function(){
//$(document).ready(function(){
	var $button=$('#topmenu_button');
	var $cont=$('#top_container');
	var mHeight=$('#drop_menu_box').height()-parseInt($('#top_fixed_box').css('height'));
	var state=-1; 
	function move(h,duration,callback){
		return $cont.animate({bottom:-h+'px'},duration,callback);
	};	
	function show(){
		state=0;
		move(mHeight,350,function(){state=1;});
	};
	function hide(){
		state=0; //moving
		move(0,350,function(){state=2;});
	}
	function toggle(){
		switch (state){
			case 0:return false;
			case -1:show();return false;
			case 1:hide();return false;
			case 2:show();return false;
			case 3:show();return false;
			case 4:show();return false;
			case 5:show();return false;
			default: return false;
		}
	};
	function slide_down_up(){
		if (state!=-1) return;
		state=0;
		move(5,250);
		move(0,250,function(){state=2;});
	};	
	$button.hover(function(){
		if (!(state==-1 || state==2)) return;
		state=3;
		move(10,150,function(){state=4});
	},function(){
		if (!(state==3 || state==4)) return;
		state=5;		
		move(0,150,function(){state=2});
	});
	$button.click(toggle);
	setTimeout(slide_down_up,100);

};*/
$(document).ready(function(){
	$('#link1,#link2,#link3,#link4').each(function(a){
		$(this).hover(function(){
			$('#hint_for_link'+(a+3)).show();
		},function(){
			$('#hint_for_link'+(a+3)).hide();
		});
	});
});

//});
