$(document).ready(function(){
	anchors = $('#content a');
	for(i=0;i<anchors.length;i++){
		a = anchors.eq(i);
		a.attr('href', function(i,val){
			if ((val && val.indexOf('http:')<0) || (val && val.indexOf('http://www.polytherics.co.uk')==0))
				$(this).addClass('glossary');
		});
	}
});