$(document).ready(function(){
	
	if ($('.menu_active,.menu_active_small').width()) {
		var left = -1*(208 - $('.menu_active,.menu_active_small').parent().width())/2;
		$('.menu_active,.menu_active_small').css('left',left+'px');
	}
	
	$('#top_menu a').hover(function(){
		if ($(this).hasClass('small')) {
			var active = '<span class="menu_active_small to_remove"></span>';
		} else {
			var active = '<span class="menu_active to_remove"></span>';
		}
		$(this).addClass('hover').prepend(active);
		
		var left = -1*(208 - $(this).parent().width())/2;
		$(this).find('.menu_active,.menu_active_small').css('left',left+'px');
	}, function(){
		if ($(this).hasClass('hover')) {
			$(this).removeClass('hover').find('.to_remove').remove();
		}
	});
	
//	var h_content = $('#left_column').outerHeight();
//	var h_frame = $('.frame_long_middle').outerHeight()
//	if (h_content) {
//		if (h_content > h_frame) {
//			$('.frame_long_middle').height(h_content);
//			$('#content').height(h_content);
//		} else {
//			$('.frame_long_middle').height(h_frame);
//			$('#content').height(h_frame);
//		}
//	}
	
	$('input[type=radio],input[type=checkbox]').addClass('no_border');

});


