var tomb = new Array();

function initAnchors() {

		for (i=0; i<document.links.length; i++) {
			aobj=document.links[i];
			if (aobj.href.indexOf('#')>-1) {
				aobj.onclick = activateAnchor;
				tomb.push(aobj.href.substr(aobj.href.indexOf('#')+1));
			}
		}
	
		s = window.location.href;
		if (s.indexOf('#')>-1) {
			ss = s.substr(s.indexOf('#')+1);
			divobj = document.getElementById('aa_'+ss);
			if (divobj) {
				divobj.className='active_anchor';
			}
		}

}

function activateAnchor() {
	for (i=0; i<tomb.length; i++) {
		divobj = document.getElementById('aa_'+tomb[i]);
		if (divobj) {
			if (this.href.substr(this.href.indexOf('#')+1)==tomb[i]) 
			{
				divobj.className='active_anchor';
				
			}
			else
			divobj.className='';
			
		}
		
	}

}
