OCT
NOV
DEC
JAN
FEB
MAR
APR
Promotional schedule subject to change
'+Event.theme+'
'+giveaway+''+eventPerformer+'
'; $('#'+target+'').append(eventMarkup); }; function upcomingEvents(){ var upcomingEvent = []; var today = new Date(); var currentMonth = today.getMonth(); today = today.getTime(); var Q = 6; for(x in calendar){ for(i in calendar[x]){ if((calendar[x][i].timestamp>today)&&(Q>3)){ upcomingEvent.push(calendar[x][i]); Q--; } } }; var clickMonth; switch(currentMonth){ case 9: clickMonth = 'tab_1'; break; case 10: clickMonth = 'tab_2'; break; case 11: clickMonth = 'tab_3'; break; case 0: clickMonth = 'tab_4'; break; case 1: clickMonth = 'tab_5'; break; case 2: clickMonth = 'tab_6'; break; case 3: clickMonth = 'tab_7'; break; default: clickMonth = 'tab_1'; }; $('#'+clickMonth+'').trigger('click'); $('#next_date').html(Day[upcomingEvent[0].formalDate.getDay()]+', '+Month[upcomingEvent[0].formalDate.getMonth()]+' '+upcomingEvent[0].date[2]+' vs '+upcomingEvent[0].opponent); $('#next_theme').html(upcomingEvent[0].theme); if(upcomingEvent[0].performer==='' && upcomingEvent[0].performerLink==='http://i.cdn.turner.com/nba/nba/.element/media/2.0/teamsites/hornets/promocal_watchparty.jpg'){ upcomingEvent[0].performer = 'Watch Party' } else { upcomingEvent[0].performer = 'Pelicans Fest Performer: '+upcomingEvent[0].performer; }; $('#next_performer').html(upcomingEvent[0].performer); $('#next_performer_img').attr('src',upcomingEvent[0].performerLink).attr('alt',upcomingEvent[0].performer); if(upcomingEvent[1].performer==='' && upcomingEvent[1].performerLink==='http://i.cdn.turner.com/nba/nba/.element/media/2.0/teamsites/hornets/promocal_watchparty.jpg'){ upcomingEvent[1].performer = 'Watch Party' }; $('#next_performer_2 .performer_name').html(upcomingEvent[1].performer); $('#next_performer_2 img').attr('src',upcomingEvent[1].performerLink).attr('alt',upcomingEvent[1].performer); $('#next_performer_2 .performer_date').html(''+(parseInt(upcomingEvent[1].date[1])+1)+'/'+upcomingEvent[1].date[2]); if(upcomingEvent[2].performer==='' && upcomingEvent[2].performerLink==='http://i.cdn.turner.com/nba/nba/.element/media/2.0/teamsites/hornets/promocal_watchparty.jpg'){ upcomingEvent[2].performer = 'Watch Party' }; $('#next_performer_3 .performer_name').html(upcomingEvent[2].performer); $('#next_performer_3 img').attr('src',upcomingEvent[2].performerLink).attr('alt',upcomingEvent[2].performer); $('#next_performer_3 .performer_date').html(''+(parseInt(upcomingEvent[2].date[1])+1)+'/'+upcomingEvent[2].date[2]); }; for(i=0;i;i++){>