// JavaScript Document
// Function 1 - Toggle the more information button on the project pages
function toggle_visibility(id) {
     var mb = document.getElementById("morebutton");
       if(mb.style.display == 'none')
          mb.style.display = 'inline';
       else
          mb.style.display = 'none';

 	var lb = document.getElementById("lessbutton");
       if(lb.style.display == 'inline')
          lb.style.display = 'none';
       else
          lb.style.display = 'inline';	 
	 
	 var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
	}

// Function 2 - Rollovers on pages to do


// Function 3 - Automatically update the copyright year
// Copied through from Website Version 1.26

function copyrightyear() {
copyyearvalue=2010								// change this figure only if you have revised this document and the
												// year is different from that shown otherwise this will be
												// automatically checked and updated by the script below
var currentyear = new Date();					// sets variable
var currentyear = currentyear.getFullYear();	// gets the current date from the browser
												// then checks the known copyyearvalue date against currentyear date
												// and updates the value of the copyright year if required
if (currentyear>=copyyearvalue) {		
copyyearvalue=currentyear			
}
document.write(' - '+copyyearvalue);		// writes the value to the browser window
}

// Function 4 - Toggle the menu on off when printing

function toggle_print() {
     	 
var m = document.getElementById('themenu');
var n = document.getElementById('themenublank');
m.style.display = 'none';
n.style.display = 'block';
window.print();
m.style.display = 'block';
n.style.display = 'none';
// window.location.reload(); // this would refresh the window which overcomes the issue on Opera but flickers on others
}
