/* 
Needs 'active' to be set to the ID of a genuine object on the page. 
This involves some Tridion code.
*/
//This now gets replaced by a value from the CT - Cookie
//var active ='tcm:6-688';

addLoadEvent(function() {showLayer(active);});
function showLayer(id) {
	document.getElementById(id).style.display='block';
}

function hideLayer(id) {
	document.getElementById(id).style.display='none';
}

function switchLayers(id){
	hideLayer(active);
	active = id;
	showLayer(active);
}

function getIdFromHref(aHref){
	return aHref.split('#')[1];
}
