menuCurrent = function(){};
menuCurrent.prototype = {
	run: function(navIds){
		$('#'+navIds[this.fileToIndex()]).addClass('current');
	},
	fileToIndex:function(){
		var f = document.location.toString();
		f = f.split('/');
		f = f[f.length - 1];
		f = f.split('.');
		return f[0];
	}
}

$(document).ready(function(){
	var navIds = {
		'index': 'topNavHome',
		'photos': 'topNavPhotos',
		'location': 'topNavLocation',
		'contact': 'topNavRSVP',
		'photo-album-80th-birthday': 'topNavPhotos',
		'photo-album-85th-birthday': 'topNavPhotos',
		'photo-album-weddings': 'topNavPhotos',
		'photo-album-around-home': 'topNavPhotos',
		'photo-album-scrapbook': 'topNavPhotos'
	};
	var m = new menuCurrent;
	m.run(navIds);
});

