/*
 *  Page Specific Javascript
 */

/*______________________________________________________________________________
 *    page:  schedule.html
 */

/* the page id num for the menu */
page_id = 3;

/* tipsy tooltips */
$(document).ready(
  function() {
    $(".bburg_tip").tipsy({
      gravity: "s",
      fade: true
    });
});
$(document).ready(
  function() {
    $(".roanoke_tip").tipsy({
      gravity: "s",
      fade: true
    });
});

/* fullcalendar - week view */
$(document).ready(function() {
  $('#blacksburg').fullCalendar({
    header: { left:'title', center:'', right:'print today prev next' },
    /*defaultView: 'agendaWeek',
    firstHour: 9,*/
    defaultView: 'basicWeek',
    aspectRatio: 2,
    //tkd schedule
    events: $.fullCalendar.gcalFeed(gcal_bburg_url),
    eventClick: function(event) {
      // opens events in a popup window
      NewWindow(event.url,'gcalevent',700,600,'yes','yes','no','no','no','no','no','no');
      return false;
    },
    loading: function(bool) {
      if (bool) $('#bb_loading').show();
      else $('#bb_loading').hide();
    },
    printLink: gcal_bburg_print,
    tootip: 'tt_bburg'
  });
});

/* fullcalendar - week view */
$(document).ready(function() {
  $('#roanoke').fullCalendar({
    header: { left:'title', center:'', right:'print today prev next' },
    /*defaultView: 'agendaWeek',
    firstHour: 9,*/
    defaultView: 'basicWeek',
    aspectRatio: 2,
    //tkd schedule
    events: $.fullCalendar.gcalFeed(gcal_roanoke_url),
    eventClick: function(event) {
      // opens events in a popup window
      NewWindow(event.url,'gcalevent',700,600,'yes','yes','no','no','no','no','no','no');
      return false;
    },
    loading: function(bool) {
      if (bool) $('#roa_loading').show();
      else $('#roa_loading').hide();
    },
    printLink: gcal_roanoke_print,
    tootip: 'tt_roanoke'
  });
});