//pop-up window function
function NewWindow(mypage, myname, w, h, scrolling) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrolling+',resizable=no';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}

function PopUp (url) {
	window.open (url, "popup", "width=480,height=640,screenx=250,screeny=50,left=250,right=50,resizable=no,status=no,toolbar=no,scrollbars=no");
}

function PopUpFootage (url) {
	window.open (url, "popup", "width=450,height=450,screenx=250,screeny=50,left=250,right=50,resizable=no,status=no,toolbar=no,scrollbars=no");
}

function PopUpLoon (url) {
	window.open (url, "popup", "width=680,height=640,screenx=250,screeny=50,left=250,right=50,resizable=no,status=no,toolbar=no,scrollbars=no");
}

function EvalSound(soundobj) {
  var thissound= eval("document."+soundobj);
  thissound.Play();
}

function stopSound(soundobj) {
  var thissound= eval("document."+soundobj);
  thissound.Stop();
}
