$(document).ready(function(){
		style = 'easeOutQuart';
		$(".langsel").hover(
			function(){
			$(this).children("#popdown").show("fast")
   		},
   		function(){
			$(this).children("#popdown").hide("fast")
		}
		);
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	// fade in images already loaded:
	$('.home_table img').fadeIn(1000);
	// and tell pending images to do the same, once they've finished loading:
	$('.home_table img').load(function () {
    $(this).fadeIn(1000);
	});

	
	$("a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
	}).addClass('out');

	//Remove outline from links
	$("li.mover a").click(function(){
		$(this).blur();
	});
	
	$("li.mover_inactive a").mouseover(function(){
		$(this).stop().animate({lineHeight:'6em'},{queue:false, duration:600, easing: 'easeOutBounce'});
	});
	
	$("li.mover_inactive a").mouseout(function(){
		$(this).stop().animate({lineHeight:'1em'},{queue:false, duration:600, easing: 'easeOutBounce'});
	});
	
	//When mouse rolls over
	$("li.mover_inactive").mouseover(function(){
		$(this).stop().animate({height:'70px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("li.mover_inactive").mouseout(function(){
		$(this).stop().animate({height:'31px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});	
	

	});

