function MovieWindow_old(url, width, height, autoPlay) {
	var winWidth, winHeight;
	winWidth = width + 64;
	winHeight = height + 128;
	
	eval("nw = window.open ('','','width=" + winWidth + ",height=" + winHeight + ",scrollbars=no')");
	target = nw.document;
			
	if ( autoPlay ) autoStr = "autoplay='true' showcontrols='false'";
	else autoStr = "autoplay='false'";
	
	str1 = "<html><head><title>NYU MRI: Movie</title><link rel=\"stylesheet\" href=\"../default.css\" type=\"text/css\"></head>\n<body bgcolor=\"#FFFFFF\">\n\t<table align=\"center\">\n\t<tr>\n\t<td><embed width=\"" + width + "\" height=\"" + (height+16) + "\" src=\"" + url + "\" " 
	str2 = "</embed>\n\t</td>\n\t</tr>\n\t</table>"
	str3 = "<div align=\"center\" class=\"content\">(Click movie to play/stop)</div><br>"
	str4 = "<div align=\"center\" class=\"caption\"><a href=\"javascript:window.close();\">Close Window</a></div>"	
	str  = str1 + autoStr + str2 + str3 + str4
		
	target.open();
	target.writeln(str);
	target.close();	
}

function MovieWindow(url, width, height, autoPlay) {
	var winWidth, winHeight;
	winWidth = width + 64;
	winHeight = height + 128;
	
	eval("nw = window.open ('','','width=" + winWidth + ",height=" + winHeight + ",scrollbars=no')");
	target = nw.document;
	
	height = height + 16
	if ( autoPlay ) autoStr = "autoplay='true' showcontrols='true'";
	else autoStr = "autoplay='false' showcontrols='true'";
	
	s0 = "<html><head><title>NYU MRI: Movie</title><link rel=\"stylesheet\" href=\"../default.css\" type=\"text/css\"></head>\n<body bgcolor=\"#FFFFFF\">\n" 
	s1 = "<p align='center'>" + "\n"
  	s2 = "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'" + "\n"
	s3 = "width='" + width + "' height='" + height + "'" + "\n"
	s4 = "codebase='http://www.apple.com/qtactivex/qtplugin.cab'>" + "\n"
    s5 = "<param name='src' value='" + url + "'>" + "\n"
    s6 = "<param name='autoplay' value='true'>" + "\n"
    s7 = "<param name='controller' value='true'>" + "\n"
    s8 = "<embed src='" + url + "' " + "\n"
	s9 = "width='" + width + "' height='" + height + "' " + "\n"
	s10 = "autoplay='true' controller='true'" + "\n"
	s11 = "pluginspage='http://www.apple.com/quicktime/download/'></embed>" + "\n"
  	s12 = "</object>" + "\n"
	s13 = "</p>" + "\n"
	
	s14 = "<div align=\"center\" class=\"caption\"><a href=\"javascript:window.close();\">Close Window</a></div>"	
	s15 = "</body>"
	s = s0+s1+s2+s3+s4+s5+s6+s7+s8+s9+s10+s11+s12+s13+s14+s15

	target.open();
	target.writeln(s);
	target.close();	
}

function ImageWindow(url, width, height, autoPlay) {
	var winWidth, winHeight;
	winWidth = width + 64;
	winHeight = height + 128;
	
	eval("nw = window.open ('','','width=" + winWidth + ",height=" + winHeight + ",scrollbars=no')");
	target = nw.document;
	
	str = "<html><head><title>NYU MRI: Image</title><link rel=\"stylesheet\" href=\"../default.css\" type=\"text/css\"></head>\n<body bgcolor=\"#FFFFFF\"><table align=\"center\"><tr><td><image src=" + url + " width=\"" + width + "\" height=\"" + height + "\"></td></tr></table><br><div align=\"center\" class=\"caption\"><a href=\"javascript:window.close();\">Close Window</a></div>"	
		
	target.open();
	target.writeln(str);
	target.close();	
}