
/**
 * Main JS file
 * 
 * @package Javascript
 * @author Joris Leermakers
 */	


/**
 * Hide or show the copyrightfooter and change the inner-text of the link based on the new status
 * 
 * @package DHTML
 * @author Joris Leermakers
 */	
function showHideCopyright() {
	if (document.getElementById('copyright')) {
		// Define if copyright line should be visible of not
		var newDisplayVal = (document.getElementById('copyright').style.display == 'none') ? 'block' : 'none';
		document.getElementById('copyright').style.display = newDisplayVal;
		
		// Define the new text for the show/hide link
		var newLinkVal = (document.getElementById('showHideLink').innerHTML.indexOf('show') == -1) ? 'show' : 'hide';
		document.getElementById('showHideLink').innerHTML = newLinkVal + ' copyright';
	}
}

