$(document).ready(function(){	
	$("#news_open").click(function(event) {
		$("#news_open").hide();
		$("#news_ellipse").hide();
		$("#news_open_span").show();
		$("#news_div").addClass("popup_news");
		event.preventDefault();
	});
	$("#news_close").click(function(event) {
		$("#news_open").show();
		$("#news_ellipse").show();
		$("#news_open_span").hide();
		$("#news_div").removeClass("popup_news");
		event.preventDefault();
	});
	$(".img_div").hover(function(){
		$(this).stop();
		$(this).animate({width: "140px", height: "140px"},400);
		$(this).prev(".main_hover_box").fadeIn(400);
		$(this).children(".main_hover_box").fadeOut(400);
		$(this).children(".main_hover_date").fadeIn(500);
	},function(){
		$(this).stop();		
		$(this).animate({width: "80px", height: "80px"},400);
		$(this).prev(".main_hover_box").fadeOut(400);
		$(this).children(".main_hover_date").fadeOut(400);
		$(this).children(".main_hover_box").fadeIn(400);
	});
	$(".media_div").hover(function(){
		$(this).stop();
		$(this).animate({width: "500px", height: "100px"},500);
		$(this).siblings(".media_hover_box").fadeIn(400);
		$(this).children(".main_hover_box").fadeOut(400);
	},function(){
		$(this).stop();		
		$(this).animate({width: "80px", height: "80px"},400);
		$(this).siblings(".media_hover_box").fadeOut(400);
		$(this).children(".main_hover_box").fadeIn(400);
	});
	
	$(".sub_img_div").hover(function(){
		$(this).children(".sub_hover_box").fadeIn(400);
		$(this).children(".sub_hover_date").fadeIn(600);
	},function(){		
		$(this).children(".sub_hover_box").fadeOut(400);
		$(this).children(".sub_hover_date").fadeOut(300);
	});
});