$(document).ready(function(){
	$('#content.page .two_collumn_left tbody tr:even').addClass('even');
	
	//vacancies
	$('#content.career table.vacans tr:even').addClass('even');
	$('#content.career table.vacans tr').hover(
		function(){
			$(this).addClass('tr_over');
		},
		function(){
			$(this).removeClass('tr_over');
		}
	);
	$('#content.career table.vacans tr').click(function(){
		window.location = $(this).find('a').attr('href');
	});
	
	$('.vacancy span').removeAttr('style');
	
});

function fetch_more_news(lang, offset) {
    if (lang != 'ru' && lang != 'en') lang = 'ru';
    $.get('/'+lang+ '/more_news/' + offset + '/', {}, function(data) {
        $('#more_news_button').replaceWith(data);
    });
}
