if (window.navigator.userAgent.indexOf ("MSIE") >= 0)
	{
		ua = 'Explorer';
		var uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("MSIE")+5,3);
	}

$(document).ready(function(){

	if (uaVers == '6.0') {
		
		ieHover_in = function () {
			$(this).addClass('hover');
		}
		
		ieHover_out = function () {
			$(this).removeClass('hover');
		}
		
		$('.home_new').hover(ieHover_in, ieHover_out);
		$('.preview').hover(ieHover_in, ieHover_out);
		
	}

	$('.link_block').hover(function () {
		$(this).addClass('hover');
	  }, 
	  function () {
		$(this).removeClass('hover');
	  }
	);
	
	$('.link_block a').attr('rel', 'nofollow');
	
	lh = $('.centerpart_left').innerHeight()-128;
	rh = $('.centerpart_right').innerHeight()-48;
	new_h = rh-80;
	min_h = 326;
	if ( (lh < rh) && (new_h > min_h) ) $('.centerpart_left').css('height', new_h);
	
});

function SubmitLang(id) {
	$('input[name=lang]').val(id);
	SubmitForm('langs');
}

function SubmitForm(frm_name) {
	$('form[name='+frm_name+']').submit();
}

function ToggleMenuItem(id) {
	$('#'+id).toggleClass('active');
	if (uaVers == '6.0') {
		lh = $('.centerpart_left').innerHeight()
		$('.logo').css('top', lh-70 + 'px');
		$('.cleft_decor.decor_bot').css('top', lh-129 + 'px');
		
	}
}

function SetMenuBlogActive () {
	$("ul.menu.blog li").addClass("current-page");
}
