jQuery.ready(function($){
var marks = {};
var $allMarks = $("div.map>div");
var reNameOfMarks = /\b(?:one|two|three)\b/;
marks['one'] = $allMarks.filter("one");
marks['two'] = $allMarks.filter("two");
marks['three'] = $allMarks.filter("three");
$("div.menu").delegate('a',"click", function( e ){
var name = reNameOfMarks.exec(e.currentTarget.className);
if ( name.length && marks.hasOwnProperty( name[0] ) ) {
marks[ name[0] ].toggle();
}
});
});