





function OpenDiv(block_id)
{
	var now_style = document.getElementById(block_id).style.display;
	if(now_style == 'none')
	{
		document.getElementById(block_id).style.display = 'block'; 
	}
	else
	{
		document.getElementById(block_id).style.display = 'none'; 
	}
	return false;
}




function CheckOpenDiv(block_id, check_id)
{
	var now_block_style = document.getElementById(block_id).style.display;
	var now_chek = document.getElementById(check_id);
	
	if (now_chek.checked == true)
	{
		document.getElementById(block_id).style.display = 'block'; 
	}
	if (now_chek.checked == false)
	{
		document.getElementById(block_id).style.display = 'none';
	}
	return false;
}



$(document).ready(function(){

	$(".one_video").css("height", $(document).height());
	
	$(".alert").click(function(){
		var now_id = $(this).attr('rel');
		$('#'+now_id).fadeIn();
		$('#'+now_id + ' DIV').css('display', 'block');
		return false;
	});
	
	$(".close").click(function(){
		var now_id = $(this).attr('rel');
		$('#'+now_id).fadeOut();
		return false;
	});
	

});

$(window).bind("resize", function(){
	$(".one_video").css("height", $(window).height());
});






   


