function NewsBoxActive (tabname) {
if (tabname == "agenda") {
jQuery("#nb-agenda-tab").addClass("active");
jQuery("#nb-agenda").addClass("active");
} else {
jQuery("#nb-agenda-tab").removeClass("active");
jQuery("#nb-agenda").removeClass("active");
}
if (tabname == "midia") {
jQuery("#nb-midia-tab").addClass("active");
jQuery("#nb-midia").addClass("active");
} else {
jQuery("#nb-midia-tab").removeClass("active");
jQuery("#nb-midia").removeClass("active");
}
if (tabname == "noticias") {
jQuery("#nb-noticias-tab").addClass("active");
jQuery("#nb-noticias").addClass("active");
} else {
jQuery("#nb-noticias-tab").removeClass("active");
jQuery("#nb-noticias").removeClass("active");
}
}
jQuery(document).ready(function ($) {
//HEADER CONTACT SETUP
jQuery("#followus-contact").mouseenter(
function () {
jQuery("#followus_contact_info .contact").css("display", "block");
jQuery("#followus_contact_info").fadeTo(500, 1.0);
}
);
jQuery("#followus_contact_info").mouseleave(
function () {
jQuery("#followus_contact_info").fadeTo(500, 0.0);
jQuery("#followus_contact_info .contact").css("display", "none");
}
);
//CONTENT HEADER SETUP
jQuery("#primary-content h1").prepend("");
jQuery("#primary-content h2").prepend("");
//BLOCKQUOTE
jQuery(".quote").prepend("");
//NEWSBOX
jQuery("#nb-agenda-tab").mouseenter(
function () {
NewsBoxActive("agenda");
}
);
jQuery("#nb-noticias-tab").mouseenter(
function () {
NewsBoxActive("noticias");
}
);
jQuery("#nb-midia-tab").mouseenter(
function () {
NewsBoxActive("midia");
}
);
//WEBTABLE - TABLE SORT
/*
var webt_list = jQuery(".webtable");
alert(webt_list);
for (myKey in webt_list) {
var webt = webt_list[myKey];
alert ("[" + myKey + "] = " + webt);
webt.dataTable();
}
*/
});