var divs = Array('one', 'two', 'three', 'four');
var links = Array('1', '2', '3', '4');

function hideAll() {
	if (document.getElementById) {
		for (i=0; i<divs.length; i++) {
			try
            {
            document.getElementById(divs[i]).style.display = 'none';
            document.getElementById(links[i]).style.color = '#AFB6B8';            
            }
            catch(err)
            {
            
            }
			
		}
	}
}

function show(div,link) {
    hideAll();
	if (document.getElementById) {
		document.getElementById(div).style.display = '';
		document.getElementById(link).style.color = '#A54C5B';		
		return false;
	} else {
		return true;
	}
}

window.onload = function() {
	if (location.hash.substring(1).length > 1) {
		show(location.hash.substring(1));
	} else {
		show('one','1');
	}
}