// var GoogleAPIkey = "ABQIAAAAWokrBkeF442J7w1PHE8AgBQ6pfTu9dVMun0nrUq3miu6iM-1dhQQfU2S2eH04gG1a7DbeW9QTuLMgA"
var eventFeeds = {
//     {
//         URL  : "http://www.utexas.edu/oncampus/calendar/rss/today.xml?cal=global",
//         name : "UT Campus Events"
//     },
//

//     URL  : "http://www.google.com/calendar/feeds/v7gqrb541opkuvg7n4umfojkffklb7bf%40import.calendar.google.com/public/basic" ,
//     URL  :  'http://www.google.com/calendar/feeds/v7gqrb541opkuvg7n4umfojkffklb7bf%40import.calendar.google.com/public/full?orderby=starttime&sortorder=ascending&futureevents=true&max-results=500' ,
    science:{
        id      : "science",
        URL     : "http://www.google.com/calendar/feeds/v7gqrb541opkuvg7n4umfojkffklb7bf%40import.calendar.google.com/public/full?futureevents=true",
        original: "http://www.utexas.edu/oncampus/calendar/index.php?cal=science",
        name    : "Science",
    },
    politics:{
        id      : "politics",
        URL     : "http://www.google.com/calendar/feeds/4er6gf17s8fe9kvg0i96lmhhdcspof59%40import.calendar.google.com/public/full?futureevents=true",
        original: "http://www.utexas.edu/oncampus/calendar/index.php?cal=politics",
        name    : "Politics and Int'l",
    },

    arts:{
        URL     : "http://www.google.com/calendar/feeds/nt9skrkmdg3mqrgjod1midrb1sut0vl1%40import.calendar.google.com/public/full?futureevents=true",
        original: "http://www.utexas.edu/oncampus/calendar/arts/",
        name    : "Arts & Humanities",
    },

    business:{
        URL     : "http://www.google.com/calendar/feeds/par2ah3d9qbjhrmaiq6vae5u1bujk1ag%40import.calendar.google.com/public/full?futureevents=true",
        original: "http://www.utexas.edu/oncampus/calendar/business/",
        name    : "Business & Law",
    },

    lifestyle:{
        URL     : "http://www.google.com/calendar/feeds/mmc6fititoeeq596gt53ua4359sf572q%40import.calendar.google.com/public/full?futureevents=true",
        original: "http://www.utexas.edu/oncampus/calendar/lifestyle/",
        name    : "Lifestyle & Community",
    },

    sporthealth:{
        URL     : "http://www.google.com/calendar/feeds/v1m292im7a3f77pk7js8bkkg2njk2itq%40import.calendar.google.com/public/full?futureevents=true",
        original: "http://www.utexas.edu/oncampus/calendar/sports/",
        name    : "Sports & Health",
    },

};
defaultFeed = "science";
// eventFeeds[defaultFeed] = eventFeeds[science];
 const defaultMaxFeedItems =  15;
var maxFeedItems =  15;
//                     feedControl.addFeed( "http://www.utexas.edu/oncampus/calendar/rss/today.xml?cal=global" , "UT Campus Events");
//                     feedControl.addFeed( "http://www.google.com/calendar/feeds/v7gqrb541opkuvg7n4umfojkffklb7bf%40import.calendar.google.com/public/basic", "UT Campus Science iCal" );

//                         home = new google.maps.LatLng(30.44517281228693, -97.68341168761253);
//                         SZB = new google.maps.LatLng(30.282070069328196, -97.73873090744019);
//                         map.setCenter( SZB , 15);

// set the center of the map view on traffic circle /fountain at 23rd st. 
var defaultMapCenter = {
    lat :  30.28536369409673 ,
    lon : -97.73450374603271 , 
    zoom : 16
}

var campusOverlay = {
    north :  30.29284307425726, 
    south :  30.27885742088168, 
    east  : -97.72550030151367, 
    west  : -97.7418778968811 , 
    imageURL : "detailedmap-rot4.95c.png" 
}

// default maximum distance away (in meters) to be considered "nearby" 
//  used by showNearbyPlaces(lat,lng)
//  TODO make this changeable by the user ... but don't expose the "NNN meters" , make it something like N blocks .. 5 minute walk / 10 minute hike .. or "immediate vicinity; down the street; short drive"
var maxNearbyDist = 250 ;   
var failCount = 0;
var errorRetryInterval = 5;
var maxFails = 2;

