$(document).ready(function() {

    $('#btnToggleContent').click(function() {
        $('#txtHomeSeo').slideToggle('slow', function() {
            // Animation complete
            $('#btnToggleContent').toggleClass('active');
        });
    });

    if (navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod') {
        $("#containerBook").css("position", "relative");
        $("#containerHomeSeo").css("position", "relative");
    };

    //hide last divider in special right column
    $('.divider').last().hide();

    var contentDivHeight = parseInt($('#boxNav').css('height'));
    var calculatedHeight = contentDivHeight - 20 + "px";
    //alert(contentDivHeight);
    //alert(calculatedHeight);
    if (document.location.href.indexOf("bimini") > 0) {
        $('#boxNav').css("height", contentDivHeight);
    } else {
        $('#boxNav').css("height", calculatedHeight);
    }

    // weather
    $('.forecastDayContainer').mouseover(function() {
        $('.forecastDetailContainer').hide();
        $(this).find('.forecastPlus').hide();
        $(this).find('.forecastDetailContainer').show();
    });
    $('.forecastDayContainer').mouseout(function() {
        $(this).find('.forecastDetailContainer').hide();
        $(this).find('.forecastPlus').show();
    });

});
