function ChangeColor(tableRow, highLight, HexColour){

	if (highLight)
	{
		tableRow.style.backgroundColor = '#f7f4f2';
		tableRow.style.color = '#'+HexColour;
		tableRow.style.cursor = 'pointer';
		
	}
	else
	{
		tableRow.style.backgroundColor = '';
		tableRow.style.color = '#000000';
		tableRow.style.cursor = 'default';
	}
	
}

function ViewFile(theUrl){
	
	var discl = confirm('Please note:\nThis document is available subject to the condition that they shall not, by way of trade or otherwise, be lent, resold, hired out or otherwise circulated without the permission of the Manchester Metropolitan University except and insofar as it may be copied within educational establishments for their own internal use.\n\nDo you wish to continue?');
	
	if (discl == false){
		
		return false;
		
	}else{
	
		window.location.href = theUrl;
	
	}
	
}

function DoNav(URL){
	
	window.location.href = URL;
	
}

function showhide(){
	
	$(document).ready(function(){
		
		$('#publications').slideToggle('slow');
		
	});
	
}

$.fn.cycle.defaults.speed   = 900;
$.fn.cycle.defaults.timeout = 4000;
 
$(function() {
    // run the code in the markup!
    $('pre code').each(function() {
        eval($(this).text());
    });
});