// define page object
ha.pages.home = {
    
    init: function(){
		$j('#searchKeywords').focus();
    }
};

/**
* Switches out which vacation type nav is currently displayed.
*/
function displayNav(vacationType) {
    // add 'picked' class to .typeLinks UL
    $("vacationTypeList").addClass("picked");
    
    // remove 'current' class from all LIs
    $$("#vacations li").forEach(function(el){
        el.removeClass("current");
    });
    
    // add 'current' class to this LI and associated LI in .typeBoxes UL
    $(vacationType + 'Item').addClass("current");

	// add current to the actual div with the list
	targetList = $(vacationType+'List');
    targetList.addClass("current");
}

window.onDomReady(function(){
    ha.pages.home.init();
});

