// Random Image
// Created by Jamin Hegeman

var homeQuotes = new Array(	
							new Array(
								"kellner", 
								"Life is what you make it, and Bidwell gave me the opportunity to make something of my life.",
								"Thomas Kellner<br />Bidwell Training Center graduate", 
								"Read Thomas's story"),
							new Array(
								"bey",
								"Until I came to the Guild, I was a reclusive minority kid and did not speak to white people outside of school. Now I was working side by side with an artist all day long, sharing his experiences.",
								"Sharif Bey<br />Manchester Craftsmen’s Guild graduate",
								"Read Sharif’s story"),
							new Array(
								"forsythe",
								"My two words of advice to anyone thinking of attending Bidwell to make a change: don’t wait!",
								"Jack Forsythe<br />Bidwell Training Center graduate",
								"Read Jack’s story"),
							new Array(
								"baynes",
								"Manchester Craftsmen’s Guild is amazing, cool, creative, and the force leading me to envision my future as an artist.",
								"Jacques Baynes<br />Manchester Craftsmen’s Guild graduate",
								"Read Jacques’s story"),
							new Array(
								"brown",
								"MCG was one of the few places that you could go and do something you love. There were always people there to encourage you and open doors that would lead you down the path of success.",
								"Stacey Brown<br />Manchester Craftsmen’s Guild graduate",
								"Read Stacey’s story"),
							new Array(
								"funderburgh",
								"…enjoy your time at Manchester Craftsmen’s Guild. Make as much use of the facilities and the wonderful teachers as you can. MCG is a rare place. Don’t take it for granted.",
								"Eva Funderburgh<br />Manchester Craftsmen’s Guild graduate",
								"Read Eva’s story"),
							new Array(
								"van-such",
								"I definitely would have struggled getting into colleges that I applied for without the portfolio preparation that MCG offered.",
								"Julie Van Such<br />Manchester Craftsmen’s Guild graduate",
								"Read Julie’s story"),
							new Array(
								"bunce",
								"I went back to school in my late 30s. I challenged myself, and proved to my kids that it’s never too late to go back to school.",
								"Linda Bunce<br />Bidwell Training Center graduate",
								"Read Linda’s story"),
							new Array(
								"hessler",
								"My training at Bidwell opened the door to a major corporation that would have never looked at me otherwise.",
								"Nancy Hessler<br />Bidwell Training Center graduate",
								"Read Nancy’s story")
							);


var j;
j=parseInt(Math.random()*homeQuotes.length);
j=(isNaN(j))?0:j;
var currentQuote = "<p><img src='../images/quotes/quote-" + homeQuotes[j][0] + ".gif' alt='" + homeQuotes[j][1] + "' border='0' width='334'></p><p class='author'>" + homeQuotes[j][2] + "<br /><a href='/about/success-stories/" + homeQuotes[j][0] + ".php'>" + homeQuotes[j][3] + " &raquo;</a></p>";



var homePhotos = new Array(
										 new Array(
											 "pottery-making.jpg", "Student creating pottery"
										 ),
										 new Array(
											 "arranging.jpg", "Students at work"
										 ),
										 new Array(
											 "clay-bowl.jpg", "Student shapes clay bowl"
										 ),			
										 new Array(
											 "computer-lab.jpg", "Students in computer lab"
										 ),			
										 new Array(
											 "female-students-mosaic.jpg", "Students word on a mosaic"
										 ),			
										 new Array(
											 "kneading-clay.jpg", "Student kneads clay"
										 ),
										 new Array(
											 "male-student-art.jpg", "Student fun at work"
										 ),			
										 new Array(
											 "male-student-orchid.jpg", "Student inspects orchids"
										 ),			
										 new Array(
											 "male-student-slab.jpg", "Students works with clay slab"
										 ),			
										 new Array(
											 "pottery-making.jpg", "Student forms a clay pot"
										 ),
										 new Array(
											 "student-orchid.jpg", "Student inspects orchids"
										 ),			
										 new Array(
											 "student-pills.jpg", "Student in lab coat"
										 ),			
										 new Array(
											 "students-claymaking.jpg", "Students creating clay objects"
										 )
									);		
var hpr;
hpr=parseInt(Math.random()*homePhotos.length);
hpr=(isNaN(j))?0:hpr;
var currentPhoto = "<img src='../images/photos/home/" + homePhotos[hpr][0] + "' alt='" + homePhotos[hpr][1] + "' width='357' height='284' />";


/*

var qc = document.getElementById("quotes"); 
var quo = qc.getElementsByTagName("div");
var j; 
j=parseInt(Math.random()*quo.length);
j=(isNaN(j))?0:j;
quo[4].className+=" show";
*/

/*
	// p = number of photos to make random
	var p = 3;
	var nums = new Array()
	var j;j=parseInt(Math.random()*p);j=(isNaN(j))?0:j;j=j+1;
	var e = document.getElementById("random-photo");
	e.className+="rphoto"+j;
	
	
	// check the alignment on a number of cells in a table. 
var table = document.getElementById("forecast-table"); 
var cells = table.getElementsByTagName("td"); 
for (var i = 0; i < cells.length; i++) { 
    status = cells[i].getAttribute("status"); 
    if ( status == "open") { 
        // grab the data 
    }
}
*/
