function initHC()
{
	/*
	// Hide hiddencontent
	document.getElementById('hc_01').style.display = 'none';
	document.getElementById('hc_02').style.display = 'none';
	document.getElementById('hc_03').style.display = 'none';
	document.getElementById('hc_04').style.display = 'none';
	document.getElementById('hc_05').style.display = 'none';
	*/
	
	// Hide hiddencontent
	document.getElementById('hc_01').className = 'hidden';
	document.getElementById('hc_02').className = 'hidden';
	document.getElementById('hc_03').className = 'hidden';
	document.getElementById('hc_04').className = 'hidden';
	document.getElementById('hc_05').className = 'hidden';
	
	if (!document.getElementsByTagName){ return; }
	var anchors = document.getElementsByTagName("a");
	// loop through all anchor tags
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
		if (anchor.getAttribute('href') && (anchor.className == 'hc_button')){
			anchor.onclick = function () {toggleHC(this); return false;}
		}
	}
}

function toggleHC(objLink)
{
	var obj = document.getElementById(objLink.href.substr(objLink.href.indexOf('#')+1));
	//if(obj.style.display == 'none')
	if(obj.className == 'hidden')
	{
		// obj.style.display = 'block';
		obj.className = 'block';
		objLink.className = 'hc_button_on';
	}else{
		// obj.style.display = 'none';
		obj.className = 'hidden';
		objLink.className = 'hc_button';
	}
}

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}
}

addLoadEvent(initHC);	
