$j=jQuery.noConflict();
 
$j(document).ready(function()
{
	language_selector = $j.cookie("codax_language_selector");
	if(language_selector != "no")
	{
		$j("#lang_sel_globe").hide();
		$j("#lang_sel_highlight").slideDown(1000);
		$j("#scrolling_text").animate({right:0},15000, "linear", hide_lang_sel_highlight);	/* after animation has finished run the fadeout*/
	}
	$j.cookie("codax_language_selector", "no", {path: '/', expires: 30});	/* set cookie for 30 (more) days of subtle language selector*/
})


function hide_lang_sel_highlight()
{
	$j("#lang_sel_highlight").slideUp(1000, show_lang_sel_globe);
}

function show_lang_sel_globe()
{
	$j("#lang_sel_globe").fadeIn('fast');
}


