jQuery("div.widget").each(function (i, w) {
if (jQuery(this).parent('#header').length){
if (!jQuery(this).hasClass('Header')){
jQuery(this).addClass('art-header-widget');
}
return true;
}
if (jQuery(this).children('.art-no-change').length) return true;
if (w.id == 'Navbar1') return true;
if (w.id == 'Header1') return true;
if (w.id == 'Blog1') return true;
if (w.id == 'LinkList99') return true;
if (w.id == 'LinkList98') return true;
if (w.id == 'LinkList97') return true;
if (w.id == 'PageList98') return true;
if (w.id == 'PageList99') return true;
if (w.id == 'Text99') return true;
if (w.id == 'BlogArchive99') return true;
var widget = jQuery(w);
if ((widget.hasClass('Gadget') || widget.hasClass('Followers')) && jQuery.browser.opera) {
return true;
}
var widgetTitle = jQuery("h2", widget).text();
jQuery("h2", widget).remove();
var widgetContent = widget.html();
if (widgetContent.indexOf('googlesyndication.com') > -1) return true;
if (widgetContent.indexOf('statcounter.com/counter/counter_xhtml.js') > -1) return true;
if (widgetContent.indexOf('bravenet.com/counter/code.php') > -1) return true;
var startBlock = '
';
var startBlockHeader = '';
var endBlockHeader = '';
var startBlockContent = '
';
var endBlockContent = '
';
var endBlock = '
';
widgetContent = startBlockContent + widgetContent + endBlockContent;
if (widgetTitle && false) {
widgetContent = startBlockHeader + widgetTitle + endBlockHeader + widgetContent;
}
jQuery(widget).html(startBlock + widgetContent + endBlock);
if (widget.hasClass('Subscribe')) {
widget.css({'position':'relative', 'z-index':'2'})
}
});
}
jQuery(function () {
artInsertSidebarBlocks();
});
function artCheckNavBar() {
if (!true) {
jQuery("#navbar").remove();
}
}
function artFixFooterMenu(){
if (jQuery("#LinkList98").length) {
var widgetText = jQuery("#LinkList98").html();
jQuery("#LinkList98").html("" + widgetText.replace("| |", "") + "
");
} else {
var el = jQuery("#footersection div.widget-content");
if (jQuery.trim(el.html()) == '') {
jQuery(".art-footer-default").show();
}
}
}
function artFixPostHeaders() {
jQuery("div.art-postmetadataheader").each(function (i) {
if (jQuery("div, h2", this).length == 0) jQuery(this).css("display", "none");
});
}
jQuery(function () {
artFixPostHeaders();
});
function artHeaderWidget() {
if (showHeader == null || showHeader == false) {
jQuery("#Header1").css("display", "none");
}
}
jQuery(function () {
artHeaderWidget();
});
function artVMenuWidget() {
if (showVMenu == null || showVMenu == false) {
jQuery("#LinkList97").css("display", "none");
jQuery("#BlogArchive99").css("display", "none");
jQuery("#PageList99").css("display", "none");
}
}
jQuery(function () {
artVMenuWidget();
});
function artFixPostFooters() {
jQuery("div.art-postmetadatafooter > div.art-postfootericons").each(function (i) {
if (jQuery("img, a", this).length == 0) jQuery(this).parent("div.art-postmetadatafooter").css("display", "none");
});
}
jQuery(function () {
artFixPostFooters();
});
var showHomePage = false;
function artFixTopCustomMenu() {
if (jQuery("#LinkList99").length == 0) {
var navSection = jQuery("#crosscol");
if (navSection.length > 0) {
if (showHomePage) {
if (window.location == homePageLink)
var tmpstr = '';
else
var tmpstr = '';
navSection.html('');
} else {
navSection.html('');
}
}
}
jQuery("#PageList98").hide();
}
function artFixTopPagesMenu() {
jQuery("#LinkList99").hide();
}
function artDisplayTopMenu(menuitems) {
var subList1 = jQuery("");
var subList2 = jQuery("");
var subList3 = jQuery("");
for (var i = 0; i < menuitems.length; i++) {
var itemname = menuitems[i][0];
var itemlink = menuitems[i][1];
if (itemlink == "http://./") itemlink = "#";
if (itemname.charAt(0) != "-") {
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length != 0) {
jQuery("li:last", subList1).append(subList2);
subList2 = jQuery("");
}
if (subList1.length != 0) {
jQuery("ul.art-hmenu li:last").append(subList1);
subList1 = jQuery("");
}
if (window.location == itemlink)
jQuery("ul.art-hmenu").append('' + itemname + '');
else
jQuery("ul.art-hmenu").append('' + itemname + '');
} else {
if (itemname.charAt(2) == "-") {
if (subList3.length == 0) subList3 = jQuery("");
subList3.append('' + itemname.substr(3, itemname.length) + '');
} else if (itemname.charAt(1) == "-") {
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length == 0) subList2 = jQuery("");
subList2.append('' + itemname.substr(2, itemname.length) + '');
} else if (itemname.charAt(0) == "-") {
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length != 0) {
jQuery("li:last", subList1).append(subList2);
subList2 = jQuery("");
}
if (subList1.length == 0) subList1 = jQuery("");
subList1.append('' + itemname.substr(1, itemname.length) + '');
}
}
}
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length != 0) {
jQuery("li:last", subList1).append(subList2);
subList2 = jQuery("");
}
if (subList1.length != 0) {
jQuery("ul.art-hmenu li:last").append(subList1);
subList1 = jQuery("");
}
}
function artDisplayVMenu(vmenuitems) {
if (jQuery("ul.art-vmenu").children().length > 0) return true;
var subList1 = jQuery("");
var subList2 = jQuery("");
var subList3 = jQuery("");
for (var i = 0; i < vmenuitems.length; i++) {
var itemname = vmenuitems[i][0];
var itemlink = vmenuitems[i][1];
if (itemlink == "http://./") itemlink = "#";
if (itemname.charAt(0) != "-") {
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length != 0) {
jQuery("li:last", subList1).append(subList2);
subList2 = jQuery("");
}
if (subList1.length != 0) {
jQuery("ul.art-vmenu li:last").append(subList1);
subList1 = jQuery("");
}
if (window.location == itemlink)
jQuery("ul.art-vmenu").append('' + itemname + '');
else
jQuery("ul.art-vmenu").append('' + itemname + '');
} else {
if (itemname.charAt(2) == "-") {
if (subList3.length == 0) subList3 = jQuery("");
if (window.location == itemlink)
subList3.append('' + itemname.substr(3, itemname.length) + '');
else
subList3.append('' + itemname.substr(3, itemname.length) + '');
} else if (itemname.charAt(1) == "-") {
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length == 0) subList2 = jQuery("");
if (window.location == itemlink)
subList2.append('' + itemname.substr(2, itemname.length) + '');
else
subList2.append('' + itemname.substr(2, itemname.length) + '');
} else if (itemname.charAt(0) == "-") {
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length != 0) {
jQuery("li:last", subList1).append(subList2);
subList2 = jQuery("");
}
if (subList1.length == 0) subList1 = jQuery("");
if (window.location == itemlink)
subList1.append('' + itemname.substr(1, itemname.length) + '');
else
subList1.append('' + itemname.substr(1, itemname.length) + '');
}
}
}
if (subList3.length != 0) {
jQuery("li:last", subList2).append(subList3);
subList3 = jQuery("");
}
if (subList2.length != 0) {
jQuery("li:last", subList1).append(subList2);
subList2 = jQuery("");
}
if (subList1.length != 0) {
jQuery("ul.art-vmenu li:last").append(subList1);
subList1 = jQuery("");
}
if (!false) {
jQuery(".art-vmenublockheader").css("display", "none");
}
var a = jQuery("ul.art-vmenu a.active");
a.parents('ul.art-vmenu').find("ul, a").removeClass('active');
a.parent().children('ul').addClass('active');
a.parents('ul.art-vmenu ul').addClass('active');
a.parents('ul.art-vmenu li').children('a').addClass('active');
}
function artFixVMenuArchive() {
if (jQuery("#art-vmenu-archive").length > 0) {
if (!false) {
jQuery(".art-vmenublockheader").css("display", "none");
}
jQuery("#art-vmenu-archive a").each(function (i) {
if (this.href.replace('#', '') == window.location.href.replace('#', '')) {
jQuery(this).addClass("active");
}
});
var a = jQuery("#art-vmenu-archive a.active");
a.parents('#art-vmenu-archive').find("ul, a").removeClass('active');
a.parent().children('ul').addClass('active');
a.parents('#art-vmenu-archive ul').addClass('active');
a.parents('#art-vmenu-archive li').children('a').addClass('active');
}
}
jQuery(function () {
jQuery(".BlogList").each(function (i) {
var bl_name = jQuery(this).attr("id");
jQuery("#" + bl_name + "_show-all").click(function () {
jQuery("#" + bl_name + "_blogs li").each(function (i) {
if (jQuery(this).css("display") == "none") {
jQuery(this).css("display", "block");
jQuery(this).attr("class", bl_name + "_blogs_hidden");
jQuery("#" + bl_name + "_show-all").css("display", "none");
jQuery("#" + bl_name + "_show-n").css("display", "block");
}
});
});
jQuery("#" + bl_name + "_show-n").click(function () {
jQuery("li." + bl_name + "_blogs_hidden").each(function (i) {
jQuery(this).css("display", "none");
jQuery(this).attr("class", "");
jQuery("#" + bl_name + "_show-all").css("display", "block");
jQuery("#" + bl_name + "_show-n").css("display", "none");
});
});
});
});
function artFixNavbarPadding() {
if (jQuery("#navbar").length) {
jQuery("#art-main").css('margin-top', '30px');
if (!jQuery.browser.opera)
jQuery("#navbar").css('margin-top', '-30px');
}
}
function artTransformSearchWidget() {
if (typeof (google) !== 'undefined' && google != null) {
google.setOnLoadCallback(function() {
jQuery("form.gsc-search-box").addClass("art-search");
jQuery("input.gsc-search-button").addClass("art-search-button").prependTo("form.gsc-search-box");
if (jQuery("input.gsc-search-button").css("background-image") != "none") {
jQuery("input.gsc-search-button").attr("value", "");
}
jQuery("input.gsc-input").prependTo("form.gsc-search-box");
jQuery("table.gsc-search-box").remove();
jQuery("table.gsc-branding").insertAfter("form.gsc-search-box");
});
}
}
jQuery(function () {
artTransformSearchWidget();
});
jQuery(function ($) {
var header = $("header.art-header");
var offset = header.offset();
if (!offset) {
return;
}
if (jQuery("#navbar").length) {
offset.top -= 30;
}
$("#art-header-bg").css({
"top": offset.top + "px"
});
});
jQuery(function ($) {
var menu = $(".art-nav:not(#art-hmenu-bg)");
var offset = menu.offset();
if (!offset) {
return;
}
if (jQuery("#navbar").length) {
offset.top -= 30;
}
$("#art-hmenu-bg").css({
"height": menu.height() + "px",
"top": offset.top + "px"
});
});
//]]>
0 comentários:
Postar um comentário