function random_image()
{

	// DO NOT EDIT THIS, LOOK BELOW
	var image = new Array();
	var image_caption = new Array ();
	var image_credit = new Array ();
	// END



	// EDIT HERE
	// EDIT HERE
	// EDIT HERE

	/*

		Instructions:

		The number in the brackets indiciates the file name of image without the .jpg.
		For a new image in the rotation you must add both a
			image_caption[nextnumber]
			image_copyright[newnumber]
		At the end of each respective list below.

		If an image has no copyright you must still make the variable, just set it blank like this: = ""

		If you encounter difficulty, the default list for these variables is located at the bottom of this page.

		WARNING:
		Do not use a number out of order.  Do not skip numbers.

	*/

	/* El Segundo Photos */
	image_caption[0] = "Farmers Market, Main Street and Pine Ave., El Segundo";
	image_caption[1] = "Corporate Towers, Sepulveda Ave. and El Segundo Blvd., El Segundo";
	image_caption[2] = "Clock on Main Street and Grand Avenue, El Segundo";
	image_caption[3] = "Historic Building on Richmond, Richmond Ave. and Franklin Ave.";
	image_caption[4] = "El Segundo High School, Main Street and Palm Ave., El Segundo";

	/* Hermosa Beach Photos*/
	image_caption[5] = "Hermosa Beach Sand";
	image_caption[6] = "City of Hermosa Beach Pier Plaza";
	image_caption[7] = "City of Hermosa Beach sign";
	image_caption[8] = "Hermosa Beach Greenbelt";
	image_caption[9] = "City of Hermosa Beach City Hall";

	/* Lomita Photos*/
	image_caption[10] = "Lomita Station";
	image_caption[11] = "Lomita Railroad Museum";
	image_caption[12] = "Lomita Downtown";
	image_caption[13] = "Lomita Japanese Garden";

	/*Redondo Beach Photos*/
	image_caption[14] = "Redondo Beach Civic Center Green is a &quot;Water Wise&quot; Demonstration Garden";
	image_caption[15] = "Redondo Beach Heritage Court";
	image_caption[16] = "Redondo Beach Performing Arts Center Remodel Completed October 2003";
	image_caption[17] = "Beach Cities Transit, Serving the Beach Cities\' Transportation Needs";
	image_caption[18] = "Blue Star Highway Marker on PCH in Redondo Beach.  Dedicated April 2004.";

	/* Rolling Hills Photos*/
	image_caption[19] = "Rolling Hills City Hall";
	image_caption[20] = "Rolling Hills City Hall";
	image_caption[21] = "Rolling Hills City Hall";

	/*Carson Photos */
	image_caption[22] = "Goodyear Blimp, City of Carson";
	image_caption[23] = "The Arbors at Avalon, City of Carson";
	image_caption[24] = "The courtyard of the Vilagio mixed-use development, City of Carson";

	image_caption[26] = "A Carson Polynesian celebration";

	image_caption[28] = "See\'s Candy, City of Carson";
	image_caption[29] = "City maintenance crew at work";

	image_caption[31] = "Carson Building & Safety";
	image_caption[32] = "Children enjoying a park in Carson";
	image_caption[33] = "Home Depot Center soccer game, City of Carson";
	image_caption[34] = "Home Depot Center ADT Velodrome, City of Carson";
	image_caption[35] = "Dominguez Park Aquatic Center";

	image_caption[37] = "City of Carson, City Clerk Kawagoe and her staff";
	image_caption[38] = "City of Carson city hall";
	image_caption[39] = "City of Carson city hall";

	/*Palos Verdes Estates*/
	image_caption[40] = "Malaga Cove, Palos Verdes Estates";
	image_caption[41] = "Malaga Cove, Palos Verdes Estates";
	image_caption[42] = "Palos Verdes Estates";
	image_caption[43] = "Palos Verdes Estates";
	image_caption[44] = "Palos Verdes Estates";
	image_caption[45] = "Manhattan Beach Pier";

	/*Rolling Hills Estates*/
	image_caption[46] = "Rolling Hills Estates: Throwing Horseshoes";
	image_caption[47] = "Rolling Hills Estates: Tracy Austin Tennis Tournament";
	image_caption[48] = "Rolling Hills Estates";
	image_caption[49] = "Rolling Hills Estates";
	image_caption[50] = "Rolling Hills Estates: Pony-Camp";
	image_caption[51] = "Rolling Hills Estates";
	image_caption[52] = "Rolling Hills Estates: Hills Are Alive Run";
	image_caption[53] = "Rolling Hills Estates: Equestrians at Mayor\'s Ride";

	/*City of Torrance Estates*/
	image_caption[54] = "Armed Forces Day Parade & Banquet 2005, City of Torrance";
	image_caption[55] = "Veterans Memorial, City of Torrance";

	/*HAD TO REMOVE IMAGE 25*/
	image_caption[25] = "Torrance Towne Center, City of Torrance";

	/*HAD TO REMOVE IMAGE 27*/
	image_caption[27] = "Bridge, City of Torrance";

	/* HAD TO REMOVE IMAGE 36*/
	image_caption[36] = "City of Torrance at Night";

	/*HAD TO REMOVE IMAGE 30*/
	image_caption[30] = "Torrance Beach, City of Torrance";


	image_credit[0] = "Robert Cetl";
	image_credit[1] = "Robert Cetl";
	image_credit[2] = "Robert Cetl";
	image_credit[3] = "Robert Cetl";
	image_credit[4] = "Robert Cetl";

	image_credit[5] = "City of Hermosa Beach";
	image_credit[6] = "John Post";
	image_credit[7] = "City of Hermosa Beach";
	image_credit[8] = "City of Hermosa Beach";
	image_credit[9] = "City of Hermosa Beach";

	image_credit[10] = "Charles Felix";
	image_credit[11] = "Charles Felix";
	image_credit[12] = "Charles Felix";
	image_credit[13] = "Charles Felix";

	image_credit[14] = "City of Redondo Beach";
	image_credit[15] = "City of Redondo Beach";
	image_credit[16] = "City of Redondo Beach";
	image_credit[17] = "City of Redondo Beach";
	image_credit[18] = "Kris Delano";

	image_credit[19] = "City of Rolling Hills";
	image_credit[20] = "City of Rolling Hills";
	image_credit[21] = "City of Rolling Hills";

	image_credit[22] = "City of Carson";
	image_credit[23] = "City of Carson";
	image_credit[24] = "City of Carson";

	image_credit[26] = "City of Carson";

	image_credit[28] = "City of Carson";
	image_credit[29] = "City of Carson";

	image_credit[31] = "City of Carson";
	image_credit[32] = "City of Carson";
	image_credit[33] = "AEG";
	image_credit[34] = "City of Carson";
	image_credit[35] = "City of Carson";

	image_credit[37] = "City of Carson";
	image_credit[38] = "City of Carson";
	image_credit[39] = "City of Carson";

	image_credit[40] = "City of Palos Verdes Estates";
	image_credit[41] = "City of Palos Verdes Estates";
	image_credit[42] = "City of Palos Verdes Estates";
	image_credit[43] = "City of Palos Verdes Estates";
	image_credit[44] = "City of Palos Verdes Estates";
	image_credit[45] = "City of Palos Verdes Estates";

	image_credit[46] = "City of Rolling Hills Estates";
	image_credit[47] = "City of Rolling Hills Estates";
	image_credit[48] = "City of Rolling Hills Estates";
	image_credit[49] = "City of Rolling Hills Estates";
	image_credit[50] = "City of Rolling Hills Estates";
	image_credit[51] = "City of Rolling Hills Estates";
	image_credit[52] = "City of Rolling Hills Estates";
	image_credit[53] = "City of Rolling Hills Estates";

	image_credit[54] = "City of Torrance";
	image_credit[55] = "City of Torrance";

	/*HAD TO REMOVE IMAGE 25*/
	image_credit[25] = "City of Torrance";

	/*HAD TO REMOVE IMAGE 27*/
	image_credit[27] = "City of Torrance";
	/*HAD TO REMOVE IMAGE 36*/
	image_credit[36] = "City of Torrance";
	/* HAD TO REMOVE IMAGE 30 */
	image_credit[30] = "City of Torrance";

	// DO NOT EDIT BELOW THIS LINE
	// DO NOT EDIT BELOW THIS LINE
	// DO NOT EDIT BELOW THIS LINE

	for(i=0;i<56;i++) {
		image[i]=i;
	}
	var number = Math.floor(Math.random() * image.length);
	// number = 17;
	var caption = image_caption[number];
	/*
	var code = 0, tmp_arr = [];
	for (i = 0; i < caption.length; ++i) {
		code = caption.charCodeAt(i);
		if (code == '\'' || code == '39') {
			tmp_arr[i] = "X&quot;X";
		} else if (code == '&') {
			tmp_arr[i] = "&amp;";
		} else {
			tmp_arr[i] = code + " "; // caption.charAt(i);
		}
	}
	caption = tmp_arr.join('');
	*/
	/*
	*/

	document.write("<div class=\"randomimage\"><div><img src='/files/random/random" + image[number] + ".jpg'" + ' alt="' + caption + '" width="200" height="150"></div><div><span class="caption">' + caption + "</span><br /><span class=\"credit\">Photo Credit: "+image_credit[number]+"</span></div></div>");
}

