/*
	Copyright 2008 Lee S. Barney
	
	
    This file is part of QuickConnectiPhoneHybrid.

    QuickConnectiPhoneHybrid is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    QuickConnectiPhoneHybrid is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with QuickConnectiPhoneHybrid.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 
 /*
 *
 *  This file is organized by the command being handled.
 */
//setAreaSettings() is located in semesterdates.js
 
//to test the XML coming from the calendar, use http://activities.byui.edu/EventsSvc/?Category=Activities/Outdoor/Recreation&ForDays=120 -- Category here matches the sponsor field in the calendar
 
//load is for the eventAreaHomePages that use the calApp 
mapCommandToBCF('load', loadBCF);
mapCommandToView('load', storeXMLVCF);
mapCommandToView('load', activateHomeTab); 
mapCommandToView('load', displayEventByBookId);

//load_2 get loaded when the bookId is not found in "load"
mapCommandToBCF('load_2', loadBCF);
mapCommandToView('load_2', storeXMLVCF);
mapCommandToView('load_2', showCalAppVCF); 
//mapCommandToView('load_2', displayEventByBookId);

mapCommandToBCF('displayEvents', showCalAppVCF); //ask brother barney about this

mapCommandToBCF('showHomeTab', showHomeArea);

mapCommandToBCF('displayEventByBookId', displayEventByBookId); //located in VCFuncs2.js


//load is for the /eventBookId.html page that is a quick access page to find event BookId's
mapCommandToBCF('loadEventBookId', loadBCF);
mapCommandToView('loadEventBookId', storeXMLVCF);
mapCommandToView('loadEventBookId', outputEventBookId);


//loadTab is used on the Talent page where each tab click reloads the data from the calendar
mapCommandToBCF('loadTab', loadBCF);
mapCommandToView('loadTab', storeXMLVCF);
mapCommandToView('loadTab', showCalAppVCF); 
mapCommandToView('loadTab', displayEventByBookId);

//mapCommandToView('displayEvents', showCalAppVCF);
//mapCommandToBCF('detail', getDetailBCF);
//mapCommandToView('detail', showDetailVCF);