$(document).ready(function(){
	
	/*** Page blog ***/
    if(getCulture() == 'en') {
		$('#main_navig_blog').click(function(e) {
			e.preventDefault();
			$("#overlay_blog").css({ opacity: 0.6 });
			$("#overlay_blog").fadeIn(200);
			$("#popup_blog").fadeIn(500);
			
			$("#popup_blog a.close").click(function(){
				$("#overlay_blog").fadeOut(200);
				$("#popup_blog").fadeOut(200);
			});
		});
	}
	/* change popup height on window resize */
	$(window).resize(function(){
		$("#overlay_blog").css({ 
			height: $(document).height()
		});
	});
});
