Date.prototype.nextMonth = nextMonth;Date.prototype.thisMonth = thisMonth;function thisMonth() {
return Date()} function nextMonth() {var cm = new Date();x = cm.getYear();m = cm.getMonth();
if ( m < 11 ) x = cm.setMonth( m + 1 );else {x = cm.setYear( x + 1901 );x = cm.setMonth( 0 );}return cm;}var thisDay = new Date();eday = thisDay.setHours(23);eday = thisDay.setMinutes(59);eday -= 86400100;
firstClass = 0;
var mo = new Array(12);mo[0] = "January",mo[1] = "February",mo[2] = "March",mo[3] = "April",mo[4] = "May",mo[5] = "June",mo[6] = "July",mo[7] = "August",mo[8] = "September",mo[9] = "October",mo[10] = "November",mo[11] = "December";var dy = new Array(7);dy[0]= "Sunday",dy[1]= "Monday",dy[2]= "Tuesday",dy[3]= "Wednesday",dy[4]= "Thursday",dy[5]= "Friday",dy[6]= "Saturday";function get_n_Day(dt,d,w) {var fd = new Date(dt);
x = fd.setDate(1);dw = fd.getDay();if (dw == d ) x =  1;else {if ( dw < d ) x = d - dw + 1;else x =  (8 - dw) + d;}x= fd.setDate(x + 7*(w-1));return fd}function dd(fd) {var br = "";var ieDate = fd.getYear();
if ( ieDate < 2000 ) ieDate += 1900;return ( br + dy[fd.getDay()] + ', ' +mo[fd.getMonth()] + ' ' + fd.getDate() + ', ' + ieDate );}
function instrs(instructors, links) {
var wTime;
var wDate;
var iP = instructors.indexOf(';');
var iL = links.indexOf(';');
var nx;
if ( iP < 0 ) return('');
if ( ( iP > 0) && (iP < instructors.length - 1) ) nx = ' and ';
else nx = '';
t =  "<a href=\"aboutTeam.html#" + links.substr(0,iL) + "\" title=\"Read " + instructors.substr(0,iP) + "'s Bio\">" + instructors.substr(0,iP) + "<\/a>" + nx + instrs(instructors.slice(iP+1), links.slice(iL+1));
return( t );
}
function expire(dd, style) {
if ( eday <= Date.parse(dd) ) {
if (style != '' )   document.write('<div style="' + style + '">');
else document.write('<div>');
}
else document.write('<div class="exp">');
}
function expClass(beginD,endD,bTime,eTime,loc,locLink,inst,instLink,clName,type) {
var bd = new Date(beginD);var type1 = type.substring(0, 1);var type2 = '';
if ( type.length > 1 ) type2 = type.substring(1);if ( eday <= Date.parse(endD) | endD == '' ) {
if ( firstClass++ != 0 ) { document.write('<div class="classBar">&nbsp;<\/div>');}
if ( type1 != "L") {
if ( (beginD.substr(6,4) == endD.substr(6,4)) && (endD.substr(6,4) == clYear) ) lBegin = (beginD != '')?dy[bd.getDay() ] + "s " + mo[parseInt(beginD.substr(0,2), 10) - 1] + " " + cDay(parseInt(beginD.substr(3,2), 10)):"";
else lBegin = (beginD != '')?dy[bd.getDay() ] + "s " + mo[parseInt(beginD.substr(0,2), 10) - 1] + " " + cDay(parseInt(beginD.substr(3,2), 10)) + ", " + beginD.substr(6,4):"";
lEnd = (endD != '')? mo[parseInt(endD.substr(0,2), 10) - 1] + " " + cDay(parseInt(endD.substr(3,2), 10)) + ", " + endD.substr(6,4):"";
}
else{ lBegin= lEnd = ''; }
if ( photo != '' ) document.write('<div class="photoY">');
else document.write('<div class="photoN">');
wTime = ((bTime != "")? bTime + " - ": "") + ((eTime != "")? eTime: "");
wDate = ((lBegin != "" )? lBegin + " - " : "") + ((lEnd != "")? lEnd : "");
if ( type1 != "L") {
document.write('<div class="schD">' + wDate + '<\/div>');
document.write('<div class="sch">' + wTime + '<\/div>');
}
if ( note1 != '' ) document.write('<div class="schN">' + note1 + '<\/div>');
if ( note2 != '' ) document.write('<div class="schN">' + note2 + '<\/div>');
if ( inst != '' ) document.write('<div class="sch">Teacher: ' + instrs(inst, instLink) + '<\/div>'); if ( loc != '' ) document.write('<div class="sch">Location: <a href="contact.html" title="Contact us, directions">' + loc + '<\/a><\/div>');
if ( type1 != 'L' ) {
if ( eday <= Date.parse(beginD))  document.write('<div class="schR"><a href="registration.html" style="margin-bottom:.3em;" title="Class registration, procedures, and forms" onClick="addCrumb(\'item_name\', \'' + clName + '\'); addCrumb(\'Class_Date\',\'' + wDate + ', ' + wTime + ' (' + loc + ')\');">Click to register now<\/a><\/div>');
else { if ( type2 !='NR') document.write( '<div class="schN" style="margin-bottom:.3em;color:#bbb;">(Registration is closed)<\/div>'); } }
document.write('<\/div>');
if ( photo != '' )  { document.write( '<img class="classSch" src="' + photo + '" style="width:' + photoW + 'px;height:' + photoH + 'px;" alt="Class Photo" title="Class Photo">');}
document.write('<div style="clear:both;height:3px">&nbsp;<\/div>');
}}
function expSeason( season) { 
document.write('<div class="season">' + season + '<\/div>'); firstClass = 0;}
function cDay( number ) {
if ((number < 21 ) && ( number > 3 )) return ( number + 'th' );
if ( number == 1 ) return ( "1st" );
if ( number == 2 ) return ( "2nd" );
if ( number == 3 ) return ( "3rd" );
if ( number == 21 ) return ( "21st" );
if ( number == 22 ) return ( "22nd" );
if ( number == 31 ) return ( "31st" );
return ( number + 'th' );
}

