<!--
if (!window.opera) {
	try {
	  document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {}
}

$(document).ready(
	function() {
		if (window.opera) {
			$('#main_news li').wrapInner('<div></div>');
			if (parseInt(opera.version().substr(0,2))>=10) {
				$('#menu li div').each(function(){
					$(this).css('border','none');
					$(this).find('a:last').css({'margin':'0 0 47px 0','border-bottom':'1px solid #bdcfe1'})
				});
			}
		}
		$('#search input').focus(function(){
			if ($(this).val()=='поиск по сайту') $(this).val('');
		});
		$('#search input').blur(function(){
			if (!/[\wа-яА-Я]/.test($(this).val())) $(this).val('поиск по сайту');
		});
		$('#print a').click(function(){
			window.print();
			return false;
		});
		$('#navi_toggle a').click(function(){
			$('#page_wrapper').toggleClass('navi_open');
			return false;
		});
		$("#menu li").mouseenter(function() {
			$(this).addClass('open');
		});
		$("#menu li").mouseleave(function() {
			$(this).removeClass('open');
		});
		$('#navi_left ul').each(function(){
			$(this).find('li:first a').addClass('navi_link1');
			if ($(this).is(':last-child')) $(this).css('border','none');
		});
		$('div.data table tr:first td').each(function(){
			$(this).replaceWith('<th>'+$(this).text()+'</th>');
		});
		$('#award tr').each(function(){
			$(this).find('td:first').css({'padding-left':'0','border-left':'none'});
			$(this).find('td:last').css({'padding-right':'0','border-right':'none'});
		});
		$('div.vacancy_closed').click(function(){
			$(this).removeClass('vacancy_closed');
		});
		$('a.vacancy_close').click(function(){
			$(this).parent().parent().addClass('vacancy_closed');
			return false;
		});
		$('#side_news_btn a').click(function(){
			btnName = $(this).text();
			$(this).text($('#side_news_header span').text());
			$('#side_news_header span').text(btnName);
			$('div.news_cur').hide();
			$('div.news_feed').slideToggle();
			$('div.news_cur').add('div.news_feed').toggleClass('news_cur').toggleClass('news_feed');
			return false;
			
		});
		
	}
);


// -->
