function chooseImage()
{
	switch (Math.floor(Math.random()*6+1)) {
		case 1:
			this.image="math_img/vertex_cover.gif";
			this.alt="3-SAT and Vertex Cover";
			this.name="vertex_cover.gif";
			this.width=140;
			this.status="A reduction of the 3-SAT problem to a vertex cover problem.";
			break;
		case 2: 
			this.image="math_img/integral_approx.gif";
			this.alt="Approximating an integral";
			this.name="integrap_approx.gif";
			this.width=140;
			this.status="Approximating an integral from above or below by rectangles."
			break;
		case 3:
			this.image="math_img/mandelbrot_set.gif";
			this.alt="The Mandelbrot Set";
			this.name="mandelbrot_set.gif";
			this.width=140;
			this.status="The most well known fractal is probably the Mandelbrot set.";
			break;
		case 4:
			this.image="math_img/tiling.gif";
			this.alt="Lozenge tiling of Hexagon";
			this.name="tiling.gif";
			this.width=99;
			this.status="A Markov chain perfect sampling method is used to generate random tilings of a region.";
			break;
		case 5:
			this.image="math_img/Integral_example.gif";
			this.alt="Integrals and area";
			this.name="Integral_example.gif";
			this.width=140;
			this.status="A positive integral occurs when integrating a positive function, and negative integral for a negative function.";
			break;
		case 6:
			this.image="math_img/math.jpg";
			this.alt="Elementary school math";
			this.name="math.jpg";
			this.width=128;
			this.status="Can you find the mistake in the solutions here?";
			break;
	}
}
