// JavaScript Document
$j(document).ready(function(){

	if (Ka.Info.PAGETYPE == 'MB'){
		
		 var addMessageBoardTitle = setInterval
	    (
	    /* create an anonymous function to run the code */
	    function() {
	    /* check if the function '$' exists (since we need to use it) and that
	    the container has been loaded (second condition) */
	    if(typeof $!='undefined' && $('ka_contentContainer'))
	    {
	    /* add a new <div> to the contentContainer */
	    var NewTitle = document.createElement('div');
	    NewTitle.id = 'MessageTitle';
	    $('ka_contentContainer').appendChild(NewTitle);
	
	    /* write the Title into the new <div> */
	    $('MessageTitle').innerHTML = '<span>Message Board</span>';
		
		/* change the ordering */ 
		$('MessageTitle').parentNode.insertBefore($('MessageTitle'),$('ka_breadcrumbs'));
		
		//Update Breadcrumbs link
		$('ka_firstBC').innerHTML = '<a href="http://www.diversitylive.net/">NAMIC</a>';
		
	    clearInterval(addMessageBoardTitle);
	    }
	    },20
	    );
	}
});
