		function OpenMov( mov, w, h, name ){
			var i;
			while( w >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}
		
			var options = "";
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 45 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-h)/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>" + mov + "</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../style.css\">");
			PicWin.document.writeln( "</head><body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center>");
			PicWin.document.writeln( "<objectwidth=\""+w+"\" height=\""+(h+25)+"\" ><embed src=\"" + mov + ".mov\" width=\""+w+"\" height=\""+(h+25)+"\" scale=\"\" autoplay=\"true\" ");
			PicWin.document.writeln( "pluginspage=\"http://www.apple.com/quicktime/download/\" kioskmode=\"true\" controller=\"true\" ></embed></object>");
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}
		function OpenMovController( mov, w, h, name ){
			var i;
			while( w >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}
		
			var options = "";
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 45 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-h)/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>" + mov + "</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../style.css\">");
			PicWin.document.writeln( "</head><body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center>");
			PicWin.document.writeln( "<object width=\""+w+"\" height=\""+(h+25)+"\" ><embed src=\"" + mov + ".mov\" width=\""+w+"\" height=\""+(h+25)+"\" scale=\"\" autoplay=\"false\" ");
			PicWin.document.writeln( "pluginspage=\"http://www.apple.com/quicktime/download/\" kioskmode=\"true\" controller=\"true\" ></embed></object>");
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}
		function OpenQtStream( mov, w, h, name ){
			var i;
			while( w >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}
		
			var options = "";
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 45 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-h)/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>" + mov + "</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../style.css\">");
			PicWin.document.writeln( "</head><body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center>");
			PicWin.document.writeln( "<object src=\"rtsp://streaming.dynamica.org/streaming.dynamica.org/" + mov + ".mov\" CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"160\" height=\"144\" width=\""+w+"\" height=\""+(h+25)+"\" ><embed src=\"rtsp://streaming.dynamica.org/streaming.dynamica.org/" + mov + ".mov\" width=\""+w+"\" height=\""+(h+25)+"\" scale=\"\" autoplay=\"false\" ");
			PicWin.document.writeln( "pluginspage=\"http://www.apple.com/quicktime/download/\" kioskmode=\"true\" controller=\"true\" ></embed></object>");
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}

		function OpenPic( pic, w, h, name ){
			while( w >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}

			var options;
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 45 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-h)/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>picture contributed by " + name + "</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			PicWin.document.writeln( "<body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center>");
			PicWin.document.writeln( "<img src=\"" + pic + ".jpg\" width=\""+w+"\"  height=\""+h+"\">" );
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}
		function OpenSimText( head, txt, name, vars, swf ){
			var w = 400;
			var h = 400;
			while( ( w + 250 ) >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}
			// have to replace all _ to " otherwise parsing fails
			vars = vars.replace( /_/g, "\"" );
		
			var options;
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 250 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-(h+250))/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>info</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			PicWin.document.writeln( "<body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center><table class=\"normal16\" style=\"width:" + ( w - 40 ) + "\"><tr><td>");

			PicWin.document.writeln( "<object id='MyApp' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' height='400' width='400'>");
			PicWin.document.writeln( "<param name='allowScriptAccess' value='sameDomain' /> ");
			PicWin.document.writeln( "<param name='flashVars' value='xml="+vars+"'/>" );
			PicWin.document.writeln( "<param name='src' value='../SWF/"+swf+".swf'/>" );
			PicWin.document.writeln( "<embed flashVars='xml="+vars+"&swf="+swf+"&name="+name+"' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' " );
			PicWin.document.writeln( "src='../SWF/"+swf+".swf' height='400' width='400' allowScriptAccess='sameDomain'/>" );
			PicWin.document.writeln( "</object></body></html>" );
			
			PicWin.document.writeln( "</td></tr><tr><td><br><strong>" + head + "</strong><br></td></tr><tr><td>" );
			PicWin.document.writeln( "<br>" + txt + "<br></td></tr>" );
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}
		function OpenSWFText( head, txt, name, vars, swf ){
			var w = 400;
			var h = 250;
			while( ( w + 250 ) >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}
			// have to replace all _ to " otherwise parsing fails
			vars = vars.replace( /_/g, "\"" );
		
			var options;
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 250 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-(h+250))/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>info</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			PicWin.document.writeln( "<body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center><table class=\"normal16\" style=\"width:" + ( w - 40 ) + "\"><tr><td>");

			PicWin.document.writeln( "<object id='MyApp' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' height='250' width='400'>");
			PicWin.document.writeln( "<param name='allowScriptAccess' value='sameDomain' /> ");
			PicWin.document.writeln( "<param name='flashVars' value='xml="+vars+"'/>" );
			PicWin.document.writeln( "<param name='src' value='../SWF/"+swf+".swf'/>" );
			PicWin.document.writeln( "<embed flashVars='xml="+vars+"&swf="+swf+"&name="+name+"' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' " );
			PicWin.document.writeln( "src='../SWF/"+swf+".swf' height='250' width='400' allowScriptAccess='sameDomain'/>" );
			PicWin.document.writeln( "</object></body></html>" );
			
			PicWin.document.writeln( "</td></tr><tr><td><br><strong>" + head + "</strong><br></td></tr><tr><td>" );
			PicWin.document.writeln( "<br>" + txt + "<br></td></tr>" );
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}

		function OpenText( head, txt, pic, w,h ){
			while( ( w + 250 ) >= screen.availWidth ){
				w *= 0.5; h *= 0.5;
			}
			while( h >= screen.availHeight ){
				w *= 0.5; h *= 0.5;
			}
		
			var options;
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + ( 40 + w ) + ', height=' + ( 250 + h );
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-(h+250))/2;
			var PicWin = open( '', 'picWin', options );
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>info</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			PicWin.document.writeln( "<body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"0\" ><center><table class=\"normal16\" style=\"width:" + ( w - 40 ) + "\"><tr><td>");
			if( pic != "" ){
				PicWin.document.writeln( "<img src=\"" + pic + ".jpg\" width=\""+w+"\"  height=\""+h+"\">" );
			}
			PicWin.document.writeln( "</td></tr><tr><td><br><strong>" + head + "</strong><br></td></tr><tr><td>" );
			PicWin.document.writeln( "<br>" + txt + "<br></td></tr>" );
			PicWin.document.writeln( "</center></body></html>" );
			PicWin.document.close();
			PicWin.focus();
		}
		function OpenSimulation( name, xml, swf ){
			var w = 420;
			var h = 420;
			var options = 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + w + ', height=' + h;
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-(h))/2;
			var PicWin = open( '', 'picWin', options );
			
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>"+name+"</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			PicWin.document.writeln( "<body><object id='MyApp' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' height='400' width='400'>");
			PicWin.document.writeln( "<param name='allowScriptAccess' value='sameDomain' /> ");
			PicWin.document.writeln( "<param name='flashVars' value='xml="+xml+"'/>" );
			PicWin.document.writeln( "<param name='src' value='../SWF/"+swf+".swf'/>" );
			PicWin.document.writeln( "<embed flashVars='xml="+xml+"' name='"+swf+"' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' " );
			PicWin.document.writeln( "src='../SWF/"+swf+".swf' height='400' width='400' allowScriptAccess='sameDomain'/>" );
			PicWin.document.writeln( "</object></body></html>" );
			PicWin.document.close();

			PicWin.focus();
		}
		function OpenSWF( name, xml, swf ){
			var w = 420;
			var h = 270;
			var options = 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=' + w + ', height=' + h;
			options += ', screenX=' + (screen.availWidth-w)/2 + ', screenY=' + (screen.availHeight-(h))/2;
			var PicWin = open( '', 'picWin', options );
			
			PicWin.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
			
			PicWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			PicWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			PicWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			PicWin.document.writeln( "<title>"+name+"</title>" );
			PicWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			PicWin.document.writeln( "<body><object id='MyApp' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' height='250' width='400'>");
			PicWin.document.writeln( "<param name='allowScriptAccess' value='sameDomain' /> ");
			PicWin.document.writeln( "<param name='flashVars' value='xml="+xml+"'/>" );
			PicWin.document.writeln( "<param name='src' value='../SWF/"+swf+".swf'/>" );
			PicWin.document.writeln( "<embed flashVars='xml="+xml+"' name='"+swf+"' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' " );
			PicWin.document.writeln( "src='../SWF/"+swf+".swf' height='250' width='400' allowScriptAccess='sameDomain'/>" );
			PicWin.document.writeln( "</object></body></html>" );
			PicWin.document.close();

			PicWin.focus();
		}
		
		function RequestDownload( where, filename, neatname ){
			var options;
			options += 'directories=no, location=no,menubar=no, status=no, titlebar=no, toolbar=no, scrollbars=no, width=250, height=300';
			options += ', screenX=' + (screen.availWidth-250)/2 + ', screenY=' + (screen.availHeight-(300))/2;
			var reqWin = open( '', 'reqWin', options );
			reqWin.moveTo((screen.availWidth-250)/2,(screen.availHeight-250)/2);
			
			reqWin.document.writeln( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" );
			reqWin.document.writeln( "<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\">" );
			reqWin.document.writeln( "<meta http-equiv=\"imagetoolbar\" content=\"false\">" );
			reqWin.document.writeln( "<title>download</title>" );
			reqWin.document.writeln( "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../CSS/style.css\"></head>");
			reqWin.document.writeln( "<body bgcolor=\"#ffffff\" topmargin=\"20\" leftmargin=\"20\" class=\"normal16\"><center>");
			reqWin.document.writeln( "To download " + neatname + " please fill in your email address and click 'download'. An email will be sent with further instructions.<br>" );

		  	reqWin.document.writeln( "<form action=\"../PHP/"+where+"_request_download.php\" method=\"get\" ");
		    reqWin.document.writeln( "<input type=\"hidden\" name=\"_____\" value=> " );
		    reqWin.document.writeln( "<input type=\"hidden\" name=\"where\" value="+where+"> " );
		    reqWin.document.writeln( "<input type=\"hidden\" name=\"neatname\" value="+neatname+"> " );
		    reqWin.document.writeln( "<input type=\"hidden\" name=\"filename\" value="+filename+"> " );
		    reqWin.document.writeln( "<input type=\"text\" name=\"eddress\" size=\"15\" value=\"\" onClick=\"this.value=''\"><br><br>" );
		    reqWin.document.writeln( "<input type=\"submit\" name=\"go\" value=\"download\" id=\"go\" >" );
		  	reqWin.document.writeln( "</form> " );

			reqWin.document.writeln( "<p class=\"normal10\">Your email address will not be used for any other purpose than this download and an occasional newsletter.</p>" );
			
			reqWin.document.writeln( "</center></body></html>" );
			reqWin.document.close();
			reqWin.focus();
		}

	
		function Download( str, htm ){
//			alert("sorry, files are offline for now");
			location = str ;
			if( top.DY_main ){
				top.DY_main.location = htm;
			}
		}
		function LinkTo( str ){
			parent.DY_main.location = str;
		}
		function Relocate( str ){
			parent.location = str;
		}

