// Universal Window Opener

function popup(theURL, wi, he, bar) {
	var locx =   50
	var locy =   50 	
	var opt = ", width=" + wi + ", height=" + he + '"' ;
	var wf = "";
  	wf = wf + '"' + " fullscreen=0";	
	wf = wf + ", resizable=0";
	wf = wf + ", scrollbars=" + (bar ? "1" : "0");
	wf = wf + ", location=0";
	wf = wf + ", menubar=0"
	wf = wf + ", status=0";
	wf = wf + ", toolbar=0";
	wf = wf + ", directories=0";
	helpWin = document.open(theURL,"Help",wf + opt);
	with (helpWin.document){
		helpWin.resizeTo(wi,he);
		helpWin.moveTo(locx, locy);
		helpWin.focus();
	}
	helpWin.document.close();
}

function openwin1() {
	popup('../popup/please.html', '480', '600', true)
	document.Player.URL = "midifiles/pleasedontask.mid";
	document.Player.controls.play();
}

function openwin2() {
	popup('../popup/bloodon.html', '480', '600', true)
	document.Player.URL = "midifiles/bloodon.mid";
	document.Player.controls.play();
}

function openwin3() {
	popup('../popup/ladylies.html', '480', '600', true)
	document.Player.URL = "midifiles/ladylies.mid";
	document.Player.controls.play();
}

function openwin4() {
	popup('../popup/visions.html', '480', '600', true)
	document.Player.URL = "midifiles/angels.mid";
	document.Player.controls.play();
}

function openwin5() {
	popup('../popup/anyway.html', '480', '600', true)
	document.Player.URL = "midifiles/anyway.mid";
	document.Player.controls.play();
}

function openwin6() {
	popup('../popup/thevine_e.html', '470', '600', true)
	document.Player.URL = "midifiles/thevine.mid";
	document.Player.controls.play();
}

function openwin7() {
	popup('../popup/homeby.html', '480', '600', true)
	document.Player.URL = "midifiles/homebydc.mid";
	document.Player.controls.play();
}

function openwin8() {
	popup('../popup/salmacis.html', '500', '600', true)
	document.Player.URL = "midifiles/salmacis.mid";
	document.Player.controls.play();
}

function openwin9() {
	popup('../popup/domino.html', '480', '600', true)
	document.Player.URL = "midifiles/domino.mid";
	document.Player.controls.play();
}

function openwin10() {
	popup('../popup/thevine.html', '480', '600', true)
	document.Player.URL = "midifiles/thevine.mid";
	document.Player.controls.play();
}

function openwin11() {
	popup('../popup/sarahjane.html', '465', '600', true)
	document.Player.URL = "midifiles/sarahjane.mid";
	document.Player.controls.play();
}

function openwin12() {
	popup('../popup/wintertale.htm', '480', '600', true)
	document.Player.URL = "midifiles/awinterstale.mid";
	document.Player.controls.play();
}

function openwin13() {
	popup('../popup/timetbl.html', '490', '360', true)
	document.Player.URL = "midifiles/timetble.mid";
	document.Player.controls.play();
}

function openwin14() {
	popup('../popup/squonk.html', '350', '430', false)
	document.Player.URL = "midifiles/squonk.mid";
	document.Player.controls.play();
}

function openwin15() {
	popup('../popup/seven.html', '600', '450', true)
	document.Player.URL = "midifiles/seven_stones.mid";
	document.Player.controls.play();
}

function openwin16() {
	popup('../popup/manyto.html', '480', '600', true)
	document.Player.URL = "midifiles/manytom.mid";
	document.Player.controls.play();
}

function openwin17() {
	popup('../popup/evidence.html', '450', '450', true)
	document.Player.URL = "midifiles/evidence.mid";
	document.Player.controls.play();
}
