$(document).ready(function(){

	$("ul#ticker01").liScroll();

	$("#menu ul li:last").addClass('last');

	$(".one_news_post:last").addClass('last');

	$(".one_media_post:last").addClass('last');

	current_size = $(window).width();

	neded_size = 1264;

	if(current_size < neded_size){

		change_size = neded_size - current_size;

		if(change_size >= 144){

			$('.second_gauge_logo').css('right','0');

			$('.second_gauge_logo').css('width','245');

		}

		else

		{

			$('.second_gauge_logo').css('right',-144 + change_size);

			$('.second_gauge_logo').css('width',390 - change_size);

		}

	};

	$('#imgprev').mouseover( function() { $('#imgprev').addClass('active_left'); } );

	$('#imgprev').mouseout( function() { $('#imgprev').removeClass('active_left'); } );

	$('#imgnext').mouseover( function() { $('#imgnext').addClass('active_right'); } );

	$('#imgnext').mouseout( function() { $('#imgnext').removeClass('active_right'); } );

});

function calendar(data)

{

	$('.calendar_content').css('display','none');

	$('#content_'+data).fadeIn();

};

$(window).resize(function(){

	current_size = $(window).width();

	neded_size = 1264;

	if(current_size < neded_size){

		change_size = neded_size - current_size;

		if(change_size >= 144){

			$('.second_gauge_logo').css('right','0');

			$('.second_gauge_logo').css('width','245');

		}

		else

		{

			$('.second_gauge_logo').css('right',-144 + change_size);

			$('.second_gauge_logo').css('width',390 - change_size);

		}

	}

});




