(function($){
	$.Geral = {
		__constructor : function(){
			var me = this;
			
			//plugins
			$.Prorrogacao.__constructor();
			$.Podcasts.__constructor();
			$.Locutores.__constructor();

			//metodos
			me.others.f1();
		},
		
		intervalSubmenu: 0,
	
		mostrarSubmenu:function(value){
			$(value).show();
		},
		
		esconderSubmenu:function(value){
			$(value).hide();
		},
		
		mouseOverBlog: false,
			 
		esconderSubMenuDelayed:function() {
			if (!$.Geral.mouseOverBlog) {
				clearTimeout($.Geral.intervalSubmenu);
				$.Geral.intervalSubmenu = setTimeout(function(){
					$.Geral.esconderSubmenu("#blogs");
				}, 500);
			}
		},
		
		others : {
			f1 : function(){
				var h = $("#conteudo").height();
				$("#lado").css("height",h);
			}
		}

	}
})(jQuery);

$(function(){
	$.Geral.__constructor();
	
	$("#blogs").hover(function(e){
		$.Geral.mouseOverBlog = true;
		clearTimeout($.Geral.intervalSubmenu);
	},function(e){
		if (e.target.id == 'blogs') {
			$.Geral.mouseOverBlog = false;
			$.Geral.esconderSubmenu('#blogs');
		}
	});
})