//*************************************************************************************
// File     : pavl_functions.js
// Version  : 1.0
// Requires : jquery.js (version 1.2.6+), braingnat.js (version 0.0.7+)
// Author   : Kyle Weems (ksw)
// Origin   : mindfly.com
// Created  : October 9, 2008
// Modified : October 9, 2008
// Purpose  : Functions specific to pavloskyaccounting.com
//*************************************************************************************

$(document).ready(function() { activationSequence(); });

//called on page load. Loads other functions.
function activationSequence() {
    hideBellevue();
    directionTabs();
}


// binds a click event to the direction page's tabs so that they hide/show the different direction instructions.
function directionTabs() {
    $('.ulDirectionTabs li').bind('click', function(e) {
        $('.selectedTab').removeClass('selectedTab');
        $('.directionBox').css('display', 'none');
        $('.directionBox.' + $(this).attr('class')).css('display', 'block');
        $(this).addClass('selectedTab');
    });
}

function hideBellevue()
{
    $('.ulDirectionTabs .bellingham').addClass('selectedTab');
    $('.directionBox.bellevue').css('display', 'none');
}