var patt1 = new RegExp("^(http://qa.boraborafoods.com/blog)");

//cufon
Cufon.replace('li.siffed a', { fontFamily: 'Acoustic Bass', hover: true });
Cufon.replace('li.top p a', { fontFamily: 'Acoustic Bass', hover: true });
Cufon.replace('ul.sf_expandableList h3 a', { fontFamily: 'Acoustic Bass', hover: true });

$(function() {
    // blog fix 4.2.10
    if (!patt1.test(window.location.href)) {
        $('div.news ul').jScrollPane({ showArrows: true, scrollbarWidth: 13 });
    }
    
    //$('div.mapLinks').jScrollPane({ showArrows: true, scrollbarWidth: 13 });
    $("div.archive h2").text(jQuery.trim($("div.archive h2").text()));
});

$(document).ready(function() {
    
    // blog fix 4.2.10
    if (!patt1.test(window.location.href)) {
        $('a[rel*=facebox]').facebox();
    }
    
    // blog fix 4.2.10
    if (!patt1.test(window.location.href)) {
        $('.slideshow').cycle({
            fx: 'scrollHorz',
            timeout: 0,
            next: '#nextButton',
            prev: '#backButton',
            after: function(curr, next, opts) {
                var index = opts.currSlide;
                $('#backButton')[index == 0 ? 'hide' : 'show']();
                $('#nextButton')[index == opts.slideCount - 1 ? 'hide' : 'show']();
            }
        });
    }


    $("li.inactivenav ul li.activenav").parent().css("display", "block");
    //$(".topNav a[href*='our-inspiration.aspx']").parent().css("padding-right", "10px");
    //    $("a.postImage img").each(function() {
    //        if ($(this).attr("src").length === 0) {
    //            $(this).parent().remove();
    //        }
    //    });
    //    $("div[id*='archiveTreeView'] ul:first").children().each(function() {
    //        $(this).children("div").remove();
    //    });
    //    $("#blogPostCategory").addClass($("p.sf_postCategory a").text());
    //    $(".blogPostThumbnail").after("<span class='postImage'><img src='" + $(".blogPostThumbnail").text() + "' /></span>").remove();
    //    $("#footer ul.topLinks li:last").attr("class", "last");


});
