var x;

var page = new Array();
page[0] = 'index.html';
page[1] = 'mission-statement.html';
page[2] = 'upcoming-events.html';
page[3] = 'photo-gallery.html';
page[4] = 'past-performances.html';
page[5] = 'news-articles.html';
page[6] = 'connect-signup.html';
page[7] = 'support-opt.html';
page[8] = 'join-amici-di-opt.html';
page[9] = 'educational-outreach.html';
page[10] = 'contact-us.html';

var btn = 'btn';

function checkPage(){
	var pagePath = document.location.href;
	//finds what's after the / in the URL string
	var pageName = pagePath.substring(pagePath.lastIndexOf('/') + 1);
	
	for(x in page){
		if(page[x]==pageName){
			document.getElementById('btn'+[x]).className = 'selected';
		}
	}
}
