function navigateTo(anchor) {
	clearSections();
	if (anchor != 'top') {
		blinking = setInterval('blinkOn("' + anchor + '")', 400);
		setTimeout('clearInterval(blinking)', 800);
	}
	window.location.href = '#' + anchor;
}

function blinkOn(section) {
	document.getElementById(section + 'Section').className = 'sectionOn';
	setTimeout('blinkOff("' + section + '")', 200);
}
		
function blinkOff(section) {
	document.getElementById(section + 'Section').className = 'sectionDim';
}

function clearSections() {
	for (section in sections) {
		document.getElementById(sections[section] + 'Section').className = 'section';
	}
}
