// CONFIGURACOES
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var PORTAL_URL = "http://www.tudoabc.com.br/";
var PORTAL_INCLUDES_MODULOS = PORTAL_URL + "includes/modulos/";
var PORTAL_MODULOS = PORTAL_URL + "modulos/";
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SWFOBJECT
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var flashvars = {};
var params = {};
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF(PORTAL_URL + "bannerTopo.swf", "bannerTopo", "745", "174", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF(PORTAL_URL + "bannerPink.swf", "bannerPink", "370", "125", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SWFOBJECT [TAGCLOUD]
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function carregarTagcloud() {
	
	swfobject.addDomLoadEvent(function() {
	  swfobject.embedSWF(PORTAL_URL + "tagcloud.swf", "tagcloudFlash", "185", "139", "10", PORTAL_URL + "expressInstall.swf", {
		cloud_data:"xml/tagcloud.xml",
		tcolor:"0x333333",
		tcolor2:"0xf00000",
		hicolor:"0xf00000",
		tspeed:"250",
		fontFace:"Arial"
	  }, { 
		 wmode: "transparent", menu: "false", quality: "best"
	  });
	});
	
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// POPUP
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function popup(url, nome, complementos) {
	window.open(url, nome, complementos);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// ABAS BUSCA
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function buscaAbas(id) {
	document.getElementById("listaAnunciantes").style.display = "none";
	document.getElementById("listaNoticias").style.display = "none";
	document.getElementById(id).style.display = "";
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// TABMENU [MATERIAS]
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function(){
	$("#tabmenu1 ul.tab li a").hover(function(){
		$("#tabmenu1 div").css("display","none");
		var tab = $(this).attr('href');
		$(tab).css("display", "block");
	});
});
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// EXIBIR / OCULTAR [ELEMENTO]
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function exibirElemento(id, velocidade) {
	jQuery(document).ready(function() {
		jQuery("#" + id).slideDown(velocidade);
	});
}
function ocultarElemento(id, velocidade) {
	jQuery(document).ready(function() {
		jQuery("#" + id).slideUp(velocidade);
	});
}
function ocultarElementoPorTempo(funcao, tempo) {
	setTimeout(funcao, tempo);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// ENVIAR FORMULARIO
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function enviarFormulario(formulario) {
	document.forms[formulario].submit();
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// CANCELAR
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function cancelar(retorno) {
	window.location = retorno;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
