var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
    var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
    for (var i=0; i<pairs.length; i++) {
        nameVal = pairs[i].split('=');
        params[nameVal[0]] = nameVal[1];
    }
}

switch (params['sid']) {
    case '1': { OAS_page = 'schedule_football' + params['syid']; break; }
    case '4': { OAS_page = 'schedule_golf_' + params['syid']; break; }
    case '5': { OAS_page = 'schedule_crosscountry_' + params['syid']; break; }
    case '7': { OAS_page = 'schedule_volleyball_' + params['syid']; break; }
    case '8': { OAS_page = 'schedule_soccerboys_' + params['syid']; break; }
    default: { OAS_page = 'schedule_unassigned'; break; }
}

switch (params['school']) {
    case '125350': { OAS_section = 'franklincounty'; break; }
    case '125267': { OAS_section = 'patrickhenry'; break; }
    case '125334': { OAS_section = 'alleghany'; break; }
    case '125363': { OAS_section = 'lordbotetourt'; break; }
    case '125371': { OAS_section = 'northside'; break; }
    case '125379': { OAS_section = 'williambyrd'; break; }
    case '125335': { OAS_section = 'williamfleming'; break; }
    case '125365': { OAS_section = 'marion'; break; }
    case '125407': { OAS_section = 'bassett'; break; }
    case '125364': { OAS_section = 'magnavista'; break; }
    case '125366': { OAS_section = 'martinsville'; break; }
    case '125372': { OAS_section = 'patrickcounty'; break; }
    case '125338': { OAS_section = 'blacksburg'; break; }
    case '125341': { OAS_section = 'cavespring'; break; }
    case '125350': { OAS_section = 'franklincounty'; break; }
    case '125358': { OAS_section = 'hiddenvalley'; break; }
    case '125373': { OAS_section = 'pulaskicounty'; break; }
    case '125377': { OAS_section = 'salem'; break; }
    case '125361': { OAS_section = 'jeffersonforest'; break; }
    case '125362': { OAS_section = 'liberty'; break; }
    case '125378': { OAS_section = 'stauntonriver'; break; }
    case '125340': { OAS_section = 'carrollcounty'; break; }
    case '125375': { OAS_section = 'rockbridgecounty'; break; }
    case '125342': { OAS_section = 'chilhowie'; break; }
    case '125354': { OAS_section = 'georgewythe'; break; }
    case '125376': { OAS_section = 'ruralretreat'; break; }
    case '125339': { OAS_section = 'blandcounty'; break; }
    case '125349': { OAS_section = 'fortchiswell'; break; }
    case '125352': { OAS_section = 'galax'; break; }
    case '125357': { OAS_section = 'graysoncounty'; break; }
    case '125367': { OAS_section = 'narrows'; break; }
    case '125333': { OAS_section = 'bathcounty'; break; }
    case '125344': { OAS_section = 'covington'; break; }
    case '125345': { OAS_section = 'craigcounty'; break; }
    case '125360': { OAS_section = 'jamesriver'; break; }
    case '125369': { OAS_section = 'parrymccluer'; break; }
    case '125337': { OAS_section = 'auburn'; break; }
    case '125346': { OAS_section = 'easternmontgomery'; break; }
    case '125348': { OAS_section = 'floydcounty'; break; }
    case '125356': { OAS_section = 'giles'; break; }
    case '125355': { OAS_section = 'glenvar'; break; }
    case '125374': { OAS_section = 'radford'; break; }
    case '125370': { OAS_section = 'northcross'; break; }
    case '125402': { OAS_section = 'roanokecatholicschool'; break; }
    case '125381': { OAS_section = 'christianheritageacademy'; break; }
    case '125384': { OAS_section = 'faithchristianschool'; break; }
    case '125383': { OAS_section = 'dayspringchristianacademy'; break; }
    case '125403': { OAS_section = 'roanokevalleychristianschool'; break; }
    case '125405': { OAS_section = 'tayloracademy'; break; }
    case '125359': { OAS_section = 'highlandsprings'; break; }
    case '125380': { OAS_section = 'carlisle'; break; }
    case '125382': { OAS_section = 'covingtonboyshome'; break; }
    case '125401': { OAS_section = 'oakhillacademy'; break; }
    case '125404': { OAS_section = 'swvahomeschool'; break; }
    default: { OAS_section = 'hs_unassigned_school'; break; }
}