function glossary() {
	if( !document.getElementsByTagName ) 
		return;
	var jsonRequest = new Request.JSON({
		url:'js/glossarywords.js.php', 
		onComplete: function(words){
			var anchors = $$('.glossary');
			var tipsanchor = [];
			for (i=0;i<=(anchors.length-1);i++){
				var anchor = anchors[i];
				if( anchors[i].getAttribute( 'href' ) && anchors[i].getAttribute( 'href' ).search( /glossary.html#glossary-([0-9]+)/ ) != -1 ) {
					var anchorGetId = anchors[i].getAttribute( 'href' ).match( /glossary.html#glossary-([0-9]+)/ );
					anchors[i].addEvent('click',function(){return false;});
					anchors[i].setStyle('cursor','help');
					anchors[i].setAttribute('title',anchors[i].innerHTML);	
					anchors[i].setAttribute('rel',words[anchorGetId[1]]);	
					tipsanchor.push(anchors[i]);
				}
			}
			var myTips = new Tips(tipsanchor);
		}
	}).send();
}

