function toggleCredits() {
	var credsDiv = document.getElementById('siteCredits');
	var credsLink = document.getElementById('credsLink');
	var privDiv = document.getElementById('sitePrivacy');
	var privLink = document.getElementById('privLink');
	if (privDiv.style.display == 'block') { 
		privDiv.style.display = 'none';  
		privLink.style.color = '';
	}
	if (credsDiv.style.display == 'block') {
		credsDiv.style.display = 'none';
		credsLink.style.color = '';
	} else {
		credsDiv.style.display = 'block';
		credsLink.style.color = 'white';
	}
}
function togglePrivacy() {
	var credsDiv = document.getElementById('siteCredits');
	var credsLink = document.getElementById('credsLink');
	var privDiv = document.getElementById('sitePrivacy');
	var privLink = document.getElementById('privLink');
	if (credsDiv.style.display == 'block') {
		credsDiv.style.display = 'none';
		credsLink.style.color = '';
	}
	if (privDiv.style.display == 'block') {
		privDiv.style.display = 'none';
		privLink.style.color = '';
	} else {
		privDiv.style.display = 'block';
		privLink.style.color = 'white';
	}
}

function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  var win = window.open(mypage,myname,settings);
  if (win) { win.window.focus(); }
}
