// For an explanation of this code, see http://depts.washington.edu/llc/kb/web/olr/audio_video/web_based_audio_details.html

var qtWin;
var openerWin;
function PopQT(whichFile,title) {

	if (title == '') {					// Added by Jay. 12/09/04
		title = 'Sound File';
	}
		
	openerWin = window;
	qtWin = window.open("", "qtWin","width=400,height=440");
	//qtWin.document.open("text/html","replace");					// Deleted by Jay. 12/09/04
	qtWin.document.writeln("<html><head><title>",title,"</title>");
	qtWin.document.writeln("</head><body bgcolor='#FFFFFF'>",
		"<div align='center'><H1>",title,"</H1><p><embed src='mov/", whichFile,
		"_ref.mov' width=320 height=20 autoplay=true controller=true loop=false bgcolor='#ffffff' ",
		"pluginspage='http://www.apple.com/quicktime/' ",
		"moviename='qtMov'></embed></p>");
	qtWin.document.writeln("<p><embed src='../../mov/controller.mov' ",
		"width=232 height=172 controller=false loop=false bgcolor='#ffffff' ",
		"pluginspage='http://www.apple.com/quicktime/'></embed><p>");
    qtWin.document.writeln("</div></body></html>");
    qtWin.document.close();
}

function PopQTVid(whichFile,title) {

	if (title == '') {					// Added by Jay. 12/09/04
		title = 'Sound File';
	}
	
	openerWin = window;
	qtWin = window.open("title","qtWin","width=400,height=510");
	//qtWin.document.open("text/html","replace");					// Deleted by Jay. 12/09/04 -- not sure what this was trying to do.
	qtWin.document.writeln("<html><head><title>",title,"</title>");
	qtWin.document.writeln("</head><body bgcolor='#FFFFFF'>",
		"<div align='center'><H1>",title,"</H1><p><embed src='mov/", whichFile,
		"_ref.mov' width=320 height=265 autoplay=true controller=true loop=false bgcolor='#ffffff' ",
		"pluginspage='http://www.apple.com/quicktime/' ",
		"moviename='qtMov'></embed></p>");
	qtWin.document.writeln("<p><embed src='../../mov/controller.mov' ",
		"width=232 height=172 controller=false loop=false bgcolor='#ffffff' ",
		"pluginspage='http://www.apple.com/quicktime/'></embed><p>");
    qtWin.document.writeln("</div></body></html>");
    qtWin.document.close();
}
