window.onload = initAll;

var infotext = "";  //  initialize global for use in functions that show extra information

var cell = "none";  //  identifies which cell in project selection grid was clicked

var ajaxquery = "";  //  for string used with http Request Object

//  This file displays the appropriate block when user clicks on a button.
function initAll()
	{
	//  NOTE:  It is not possible to reference elements that are not in the current window.
	//			That is why the branches are used to detect the active window by the presence
	//			of a uniquely named field.

	if (document.getElementById("cyclepanelshow"))
		{
		document.getElementById("cyclepanelshow").onclick = runPanelShow;
		}

	if (document.getElementById("cycleprojectshow"))
		{
		document.getElementById("cycleprojectshow").onclick = runProjectShow;
		}

	if (document.getElementById("projectpix"))
		{
		document.getElementById("projectpix").onclick = hideProjectPix;
		}

	if (document.getElementById("addon1"))
		{
		document.getElementById("addon1").onclick = showAddon1;
		}

	if (document.getElementById("addon2"))
		{
		document.getElementById("addon2").onclick = showAddon2;
		}

	if (document.getElementById("addon3"))
		{
		document.getElementById("addon3").onclick = showAddon3;
		}

	if (document.getElementById("addon4"))
		{
		document.getElementById("addon4").onclick = showAddon4;
		}

	if (document.getElementById("addon5"))
		{
		document.getElementById("addon5").onclick = showAddon5;
		}

	if (document.getElementById("remod1"))
		{
		document.getElementById("remod1").onclick = showRemod1;
		}

	if (document.getElementById("remod2"))
		{
		document.getElementById("remod2").onclick = showRemod2;
		}

	if (document.getElementById("remod3"))
		{
		document.getElementById("remod3").onclick = showRemod3;
		}

	if (document.getElementById("remod4"))
		{
		document.getElementById("remod4").onclick = showRemod4;
		}

	if (document.getElementById("remod5"))
		{
		document.getElementById("remod5").onclick = showRemod5;
		}

	if (document.getElementById("build1"))
		{
		document.getElementById("build1").onclick = showBuild1;
		}

	if (document.getElementById("build2"))
		{
		document.getElementById("build2").onclick = showBuild2;
		}

	if (document.getElementById("build3"))
		{
		document.getElementById("build3").onclick = showBuild3;
		}

	if (document.getElementById("build4"))
		{
		document.getElementById("build4").onclick = showBuild4;
		}

	if (document.getElementById("build5"))
		{
		document.getElementById("build5").onclick = showBuild5;
		}

	if (document.getElementById("exter1"))
		{
		document.getElementById("exter1").onclick = showExter1;
		}

	if (document.getElementById("exter2"))
		{
		document.getElementById("exter2").onclick = showExter2;
		}

	if (document.getElementById("exter3"))
		{
		document.getElementById("exter3").onclick = showExter3;
		}

	if(document.getElementById("hideproject"))
		{
		document.getElementById("hideproject").onclick = hideProject;
		}

	if(document.getElementById("l160"))
		{
		document.getElementById("l160").onclick = raiseLeft640;
		document.getElementById("m160").onclick = raiseMid640;
		document.getElementById("r160").onclick = raiseRight640;

		document.getElementById("l640").onclick = hideBig640;
		document.getElementById("m640").onclick = hideBig640;
		document.getElementById("r640").onclick = hideBig640;
		}

	if(document.getElementById("l160r2"))
		{
		document.getElementById("l160r2").onclick = raiseLeft640r2;
		document.getElementById("m160r2").onclick = raiseMid640r2;
		document.getElementById("r160r2").onclick = raiseRight640r2;

		document.getElementById("l640r2").onclick = hideBig640r2;
		document.getElementById("m640r2").onclick = hideBig640r2;
		document.getElementById("r640r2").onclick = hideBig640r2;
		}

	//  showBlock();  //  must show one of the overlain blocks upon first entry
	}  //  end of function initAll()

//  Basic data interchange via an HTTP Request object,
//  capable of working with Mozilla based browsers, and
//  distinguishing between earlier and later MSIE versions.
//  Theory provided by sitepoint.com sample chapters from
//  a book called "Build Your Own AJAX Web Applications".

//  Note that all functions are defined within one large function,
//  which seems to be how Javascript creates a class.

function webx()
	{
	this.req = null;
	this.url = null;
	this.method = 'POST';
	this.async = true;
	this.status = null;
	this.statusText = '';
	this.postData = '';
	this.readyState = null;
	this.responseText = null;
	this.responseXML = null;
	this.handleResp = null;
	this.responseFormat = 'text';  //  could also be either 'xml' or 'object'
	this.mimeType = null;

	this.init = function()
		{
		if (!this.req)
			{
			try  //  first look for Mozilla-based browsers or MSIE 7
				{
				this.req = new XMLHttpRequest;
				}
			catch (e)
				{
				try  //  next look for later versions of MSIE
					{
					this.req = new ActiveXObject('MSXML2.XMLHTTP');
					}
					catch (e)
					{
					try  //  finally, look for older MSIE versions
						{
						this.req = new ActiveXObject('Microsoft.XMLHTTP');
						}
					catch (e)
						{
						alert("Beware -- your browser does not support the AJAX technology, ie., the XMLHttpRequest; therefore this website will not show up properly in your browser. We recommend using a late version of Firefox, Safari, or Opera for your real work; and if your computer is running the Windows Operating System, then use Internet Explorer just for upgrading your MicroSoft software.");
						return false;  //  no Ajax ability found in browser
						}
					}
				}
			}
		return this.req;  //  upon successful creation of the instance
		}

	this.prepOpen = function()
		{
		this.req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		this.req.setRequestHeader("Content.length", this.postData.length);
		this.req.setRequestHeader("Connection", "close");
		}

	this.setMimeType = function(mimeType)
		{
		this.mimeType = mimeType;   //  Allows forcing the response from server to seem to be
									//  what we expect, or at least to fool the browser!
		}

	this.doReq = function()
		{
		//  alert('In doReq function before attempting the init method...');
		if (!this.init())
			{
			alert('Could not create an XMLHttpRequest object.');
			return;
			}
		this.req.open(this.method, this.url, this.async);
		 	//  The arguments, especially the url, will have to be changed
			//  if the defaults for these properties are not pertinent.
			//  Defaults are POST, none, and true.
		//  alert('In doReq function immediately after attempting the init method...');

		this.prepOpen();

		var self = this;  //  adds another layer of scope needed by inner functions


		this.req.onreadystatechange = function()
			{
			if (self.req.readyState == 4)
				{
				switch (self.responseFormat)
					{
					case 'text':
						resp = self.req.responseText;
						break;
					case 'xml':
						resp = self.req.responseXML;
						break;
					case 'object':
						resp = req;
						break;
					default :
						resp = "";
					}

				if(self.req.status >= 200 && self.req.status <= 299)
						{
						self.handleResp(resp);
						}
					else
						{
						self.handleErr(resp);
						}
				}
			}
		this.req.send(this.postData);  //  arg shoul be null for GET style requests
		}  //  end of doReq function

	this.handleErr = function()
		{
		var errorWin;
		try
			{
			errorWin = window.open('', 'errorWin');
			errorWin.document.body.innerHTML = this.responseText;  //  Note use of DOM
			}
		catch (e)
			{
			alert('An error occurred, but the message cannot be shown, possibly '
				+ 'because of a popup blocker. You might want to allow popup '
				+ 'windows from this particular website. Check your browser '
				+ 'configuration options.\n) Otherwise, the status code is: '
				+ this.req.status + '\n and means: ' + this.req.statusText);
			}
		}

	this.abort = function ()
		{
		if (this.req)
			{
			this.req.onreadystatechange = function () { };  //  null out existing function
			this.req.abort();
			this.req = null;  //  clear out existing request object and remove it from memory
			}
		}
	
	this.doGet = function(url, hand, format)
		{
		//  alert('In the doGet function inside the webx object.');
		this.url = url;  //  incoming URL passed to webx property for use in accessing server
		this.handleResp = hand;  //  external function that will use the response from server
		this.responseFormat = format || 'text';  //  use arg if given, or assume response is text 
		this.doReq();  //  invoke the request to the server after the above lines prepared for it
		}
	}  //  end of function webex()

	var webX = new webx();  //  create an instance of the AJAX tool for client-server data exchange
	//  Now any function called by the element tags above being clicked can use webX to
	//  exchange requests and replies with any CGI or PHP page server.
	if (!webX)
			{
			alert("Could not create the webX object outside function initAll in motor_index.js -- panic!");
			}
		else
			{
			;
			//  alert("In whatwhen.js, supposedly a new webx object called webX has been created.");
			}

function usereply(replystring)
	{
	document.getElementById("hiddenDIV").style.visibility = "visible";
	document.getElementById("hiddenDIV").innerHTML = '';
	document.getElementById("hiddenDIV").innerHTML = replystring;

	}  //  end of function usereply()

function raisereply(replystring)
	{
	document.getElementById("feedbackbox").style.display = "block";
	document.getElementById("txtFeedback").innerHTML = '';
	document.getElementById("txtFeedback").innerHTML = replystring;
	}  //  end of function raisereply()

function userequest(replystring)
	{
	document.getElementById("projectpix").style.display = "block";
	document.getElementById("projectpix").style.visibility = "visible";
	document.getElementById("projectpix").innerHTML = '';
	document.getElementById("projectpix").innerHTML = replystring;
	}  //  end of function userequest()

function sendRequest()
	{

	var myRandom=parseInt(Math.random()*99999999);  // cache buster

	request_format = "text";

	var phpfile = "projects.php";
	var wanted = "";

	//  mode = escape("list");  //  uses same near-end area of PHP file as true multi

	wanted = escape(cell);

	request_string = phpfile+"?cellwanted="+wanted+"&rand="+myRandom;
	//  alert("Request string is : " + request_string);

	webX.doGet(request_string, userequest, request_format);
	
	return;
	}  //  end of function sendRequest()	

function showAddon1()
	{
	hideGrid();
	cell = "addon1";
	sendRequest();
	return;
	}  //  end of function showAddon1()

function showAddon2()
	{
	hideGrid();
	cell = "addon2";
	sendRequest();
	return;
	}  //  end of function showAddon2()

function showAddon3()
	{
	hideGrid();
	cell = "addon3";
	sendRequest();
	return;
	}  //  end of function showAddon3()

function showAddon4()
	{
	hideGrid();
	cell = "addon4";
	sendRequest();
	return;
	}  //  end of function showAddon4()

function showAddon5()
	{
	hideGrid();
	cell = "addon5";
	sendRequest();
	return;
	}  //  end of function showAddon5()

function showRemod1()
	{
	hideGrid();
	cell = "remod1";
	sendRequest();
	return;
	}  //  end of function showRemod1()

function showRemod2()
	{
	hideGrid();
	cell = "remod2";
	sendRequest();
	return;
	}  //  end of function showRemod2()

function showRemod3()
	{
	hideGrid();
	cell = "remod3";
	sendRequest();
	return;
	}  //  end of function showRemod3()

function showRemod4()
	{
	hideGrid();
	cell = "remod4";
	sendRequest();
	return;
	}  //  end of function showRemod4()

function showRemod5()
	{
	hideGrid();
	cell = "remod5";
	sendRequest();
	return;
	}  //  end of function showRemod5()

function showBuild1()
	{
	hideGrid();
	cell = "build1";
	sendRequest();
	return;
	}  //  end of function showBuild1()

function showBuild2()
	{
	hideGrid();
	cell = "build2";
	sendRequest();
	return;
	}  //  end of function showBuild2()

function showBuild3()
	{
	hideGrid();
	cell = "build3";
	sendRequest();
	return;
	}  //  end of function showBuild3()

function showBuild4()
	{
	hideGrid();
	cell = "build4";
	sendRequest();
	return;
	}  //  end of function showBuild4()

function showBuild5()
	{
	hideGrid();
	cell = "build5";
	sendRequest();
	return;
	}  //  end of function showBuild5()

function showExter1()
	{
	hideGrid();
	cell = "exter1";
	sendRequest();
	return;
	}  //  end of function showExter1()

function hideProjectPix()
	{
	document.getElementById("projectpix").style.display = "none";

	document.getElementById("row1").style.display = "block";
	document.getElementById("row2").style.display = "block";
	document.getElementById("row3").style.display = "block";
	document.getElementById("row4").style.display = "block";
	document.getElementById("gridtoptext").innerHTML = "";
	document.getElementById("gridtoptext").innerHTML = 
		"&nbsp;&nbsp;<b>Click any picture below to see all the photos from that project.</b>";
	return;
	}  //  end of function hideProjectPix()

function hideGrid()
	{
	document.getElementById("row1").style.display = "none";
	document.getElementById("row2").style.display = "none";
	document.getElementById("row3").style.display = "none";
	document.getElementById("row4").style.display = "none";
	document.getElementById("gridtoptext").innerHTML = "";
	document.getElementById("gridtoptext").innerHTML = 
		"&nbsp;&nbsp;<b>Click on any of the large photos to return to the project photo grid.</b>";
	return;
	}  //  end of function hideGrid()


function hideBanner()
	{
	if (document.getElementById("banner"))
		{
		document.getElementById("banner").style.display = "none"
		}
	return;
	}  //  end of function hideBanner()

function hide3x160()
	{
	//  document.getElementById("caption").innerHTML = "";
	if (document.getElementById("3x160"))
		{
		document.getElementById("3x160").style.display = "none";
		}
	return;
	}  //  end of function hide3x160()

function hide3x160r2()
	{
	//  document.getElementById("caption").innerHTML = "";
	if (document.getElementById("3x160r2"))
		{
		document.getElementById("3x160r2").style.display = "none";
		}
	return;
	}  //  end of function hide3x160r2()

function hideBig640()
	{
	//  document.getElementById("caption").innerHTML = "";
	document.getElementById("l640").style.display = "none";
	document.getElementById("m640").style.display = "none";
	document.getElementById("r640").style.display = "none";
	if (document.getElementById("banner"))
		{
		raiseBanner();
		}
	if (document.getElementById("3x160"))
		{
		raise3x160();
		}
	if (document.getElementById("3x160r2"))
		{
		raise3x160r2();
		}
	return;
	}  //  end of function hideBig640()

function hideBig640r2()
	{
	//  document.getElementById("caption").innerHTML = "";
	document.getElementById("l640r2").style.display = "none";
	document.getElementById("m640r2").style.display = "none";
	document.getElementById("r640r2").style.display = "none";
	if (document.getElementById("banner"))
		{
		raiseBanner();
		}
	if (document.getElementById("3x160"))
		{
		raise3x160();
		}
	if (document.getElementById("3x160r2"))
		{
		raise3x160r2();
		}
	return;
	}  //  end of function hideBig640r2()

function raiseBanner()
	{
	if (document.getElementById("banner"))
		{
		document.getElementById("banner").style.display = "block";
		}
	return;
	}  //  end of function raiseBanner()

function raise3x160()
	{
	if (document.getElementById("3x160"))
		{
		document.getElementById("3x160").style.display = "block";	
		}
	return;
	}  //  end of function raise3x160()

function raise3x160r2()
	{
	if (document.getElementById("3x160r2"))
		{
		document.getElementById("3x160r2").style.display = "block";	
		}
	return;
	}  //  end of function raise3x160r2()


function raiseLeft640()
	{
	hide3x160();
	if (document.getElementById("l160r2"))
		{
		hide3x160r2();
		}
	//  document.getElementById("caption").innerHTML = pixcap;
	if (document.getElementById("banner"))
		{
		hideBanner();
		}
	document.getElementById("l640").style.display = "block";
	return;
	}  //  end of function raiseLeft160()

function raiseMid640()
	{
	hide3x160();
	if (document.getElementById("l160r2"))
		{
		hide3x160r2();
		}
	//  document.getElementById("m640caption").innerHTML = pixcap;
	if (document.getElementById("banner"))
		{
		hideBanner();
		}
	document.getElementById("m640").style.display = "block";
	return;
	}  //  end of function raiseMid640()

function raiseRight640()
	{
	hide3x160();
	if (document.getElementById("l160r2"))
		{
		hide3x160r2();
		}
	//  document.getElementById("r640caption").innerHTML = pixcap;
	if (document.getElementById("banner"))
		{
		hideBanner();
		}
	document.getElementById("r640").style.display = "block";
	return;
	}  //  end of function raiseRight640()

function raiseLeft640r2()
	{
	hide3x160();
	if (document.getElementById("l160r2"))
		{
		hide3x160r2();
		}
	//  document.getElementById("l640r2caption").innerHTML = pixcap;
	if (document.getElementById("banner"))
		{
		hideBanner();
		}
	document.getElementById("l640r2").style.display = "block";
	return;
	}  //  end of function raiseLeft160r2()

function raiseMid640r2()
	{
	hide3x160();
	if (document.getElementById("l160r2"))
		{
		hide3x160r2();
		}
	//  document.getElementById("m640r2caption").innerHTML = pixcap;
	if (document.getElementById("banner"))
		{
		hideBanner();
		}
	document.getElementById("m640r2").style.display = "block";
	return;
	}  //  end of function raiseMid640r2()

function raiseRight640r2()
	{
	hide3x160();
	if (document.getElementById("l160r2"))
		{
		hide3x160r2();
		}
	//  document.getElementById("r640r2caption").innerHTML = pixcap;
	if (document.getElementById("banner"))
		{
		hideBanner();
		}
	document.getElementById("r640r2").style.display = "block";
	return;
	}  //  end of function raiseRight640r2()

function showPanel2()
	{
	if (document.getElementById("panel2"))
		{
		document.getElementById("panel2").style.display = "block";
		}
	return;
	}  //  end of function showPanel2

function showPanel3()
	{
	if (document.getElementById("panel2"))
		{
		document.getElementById("panel2").style.display = "none";
		}
	if (document.getElementById("panel3"))
		{
		document.getElementById("panel3").style.display = "block";
		}
	return;
	}  //  end of function showPanel3

function showPanel4()
	{
	if (document.getElementById("panel3"))
		{
		document.getElementById("panel3").style.display = "none";
		}
	if (document.getElementById("panel4"))
		{
		document.getElementById("panel4").style.display = "block";
		}
	return;
	}  //  end of function showPanel4

function showPanel5()
	{
	if (document.getElementById("panel4"))
		{
		document.getElementById("panel4").style.display = "none";
		}
	if (document.getElementById("panel5"))
		{
		document.getElementById("panel5").style.display = "block";
		}
	return;
	}  //  end of function showPanel5

function showPanel6()
	{
	if (document.getElementById("panel5"))
		{
		document.getElementById("panel5").style.display = "none";
		}
	if (document.getElementById("panel6"))
		{
		document.getElementById("panel6").style.display = "block";
		}
	return;
	}  //  end of function showPanel6

function showPanel7()
	{
	if (document.getElementById("panel6"))
		{
		document.getElementById("panel6").style.display = "none";
		}
	if (document.getElementById("panel7"))
		{
		document.getElementById("panel7").style.display = "block";
		}
	return;
	}  //  end of function showPanel7

function showPanel8()
	{
	if (document.getElementById("panel7"))
		{
		document.getElementById("panel7").style.display = "none";
		}
	if (document.getElementById("panel8"))
		{
		document.getElementById("panel8").style.display = "block";
		}
	return;
	}  //  end of function showPanel8

function showPanel9()
	{
	if (document.getElementById("panel8"))
		{
		document.getElementById("panel8").style.display = "none";
		}
	if (document.getElementById("panel9"))
		{
		document.getElementById("panel9").style.display = "block";
		}
	return;
	}  //  end of function showPanel9

function showPanel10()
	{
	if (document.getElementById("panel9"))
		{
		document.getElementById("panel9").style.display = "none";
		}
	if (document.getElementById("panel10"))
		{
		document.getElementById("panel10").style.display = "block";
		}
	return;
	}  //  end of function showPanel10

function showPanel11()
	{
	if (document.getElementById("panel10"))
		{
		document.getElementById("panel10").style.display = "none";
		}
	if (document.getElementById("panel11"))
		{
		document.getElementById("panel11").style.display = "block";
		}
	return;
	}  //  end of function showPanel11

function raiseCyclePanelShow()
	{
	if (document.getElementById("panel11"))
		{
		document.getElementById("panel11").style.display = "none";
		}
	if (document.getElementById("cyclepanelshow"))
		{
		document.getElementById("cyclepanelshow").style.display = "block";
		}
	return;
	}  //  end of function raiseCyclePanelShow()

function runPanelShow()
	{
	if (document.getElementById("cyclepanelshow"))
		{
		document.getElementById("cyclepanelshow").style.display = "none";
		}
	p2 = setTimeout('showPanel2()', 50);
	p3 = setTimeout('showPanel3()', 2000);
	p4 = setTimeout('showPanel4()', 4000);
	p5 = setTimeout('showPanel5()', 6000);
	p6 = setTimeout('showPanel6()', 8000);
	p7 = setTimeout('showPanel7()', 10000);
	p8 = setTimeout('showPanel8()', 12000);
	p9 = setTimeout('showPanel9()', 14000);
	p10 = setTimeout('showPanel10()', 16000);
	p11 = setTimeout('showPanel11()', 18000);
	p12 = setTimeout('raiseCyclePanelShow()', 20000);
	return;
	}  //  end of function runPanelShow()



function showProject2()
	{
	if (document.getElementById("project2"))
		{
		document.getElementById("project2").style.display = "block";
		}
	return;
	}  //  end of function showProject2

function showProject3()
	{
	if (document.getElementById("project2"))
		{
		document.getElementById("project2").style.display = "none";
		}
	if (document.getElementById("project3"))
		{
		document.getElementById("project3").style.display = "block";
		}
	return;
	}  //  end of function showProject3

function showProject4()
	{
	if (document.getElementById("project3"))
		{
		document.getElementById("project3").style.display = "none";
		}
	if (document.getElementById("project4"))
		{
		document.getElementById("project4").style.display = "block";
		}
	return;
	}  //  end of function showProject4

function showProject5()
	{
	if (document.getElementById("project4"))
		{
		document.getElementById("project4").style.display = "none";
		}
	if (document.getElementById("project5"))
		{
		document.getElementById("project5").style.display = "block";
		}
	return;
	}  //  end of function showProject5

function showProject6()
	{
	if (document.getElementById("project5"))
		{
		document.getElementById("project5").style.display = "none";
		}
	if (document.getElementById("project6"))
		{
		document.getElementById("project6").style.display = "block";
		}
	return;
	}  //  end of function showProject6

function showProject7()
	{
	if (document.getElementById("project6"))
		{
		document.getElementById("project6").style.display = "none";
		}
	if (document.getElementById("project7"))
		{
		document.getElementById("project7").style.display = "block";
		}
	return;
	}  //  end of function showProject7

function showProject8()
	{
	if (document.getElementById("project7"))
		{
		document.getElementById("project7").style.display = "none";
		}
	if (document.getElementById("project8"))
		{
		document.getElementById("project8").style.display = "block";
		}
	return;
	}  //  end of function showProject8

function showProject9()
	{
	if (document.getElementById("project8"))
		{
		document.getElementById("project8").style.display = "none";
		}
	if (document.getElementById("project9"))
		{
		document.getElementById("project9").style.display = "block";
		}
	return;
	}  //  end of function showProject9

function showProject10()
	{
	if (document.getElementById("project9"))
		{
		document.getElementById("project9").style.display = "none";
		}
	if (document.getElementById("project10"))
		{
		document.getElementById("project10").style.display = "block";
		}
	return;
	}  //  end of function showProject10

function showProject11()
	{
	if (document.getElementById("project10"))
		{
		document.getElementById("project10").style.display = "none";
		}
	if (document.getElementById("project11"))
		{
		document.getElementById("project11").style.display = "block";
		}
	return;
	}  //  end of function showProject11

function showProject12()
	{
	if (document.getElementById("project11"))
		{
		document.getElementById("project11").style.display = "none";
		}
	if (document.getElementById("project12"))
		{
		document.getElementById("project12").style.display = "block";
		}
	return;
	}  //  end of function showProject12

function showProject13()
	{
	if (document.getElementById("project12"))
		{
		document.getElementById("project12").style.display = "none";
		}
	if (document.getElementById("project13"))
		{
		document.getElementById("project13").style.display = "block";
		}
	return;
	}  //  end of function showProject13

function showProject14()
	{
	if (document.getElementById("project13"))
		{
		document.getElementById("project13").style.display = "none";
		}
	if (document.getElementById("project14"))
		{
		document.getElementById("project14").style.display = "block";
		}
	return;
	}  //  end of function showProject14

function showProject15()
	{
	if (document.getElementById("project14"))
		{
		document.getElementById("project14").style.display = "none";
		}
	if (document.getElementById("project15"))
		{
		document.getElementById("project15").style.display = "block";
		}
	return;
	}  //  end of function showProject15

function showProject16()
	{
	if (document.getElementById("project15"))
		{
		document.getElementById("project15").style.display = "none";
		}
	if (document.getElementById("project16"))
		{
		document.getElementById("project16").style.display = "block";
		}
	return;
	}  //  end of function showProject16

function raiseCycleProjectShow()
	{
	if (document.getElementById("project16"))
		{
		document.getElementById("project16").style.display = "none";
		}
	if (document.getElementById("cycleprojectshow"))
		{
		document.getElementById("cycleprojectshow").style.display = "block";
		}
	return;
	}  //  end of function raiseCycleProjectShow()


function runProjectShow()
	{
	if (document.getElementById("cycleprojectshow"))
		{
		document.getElementById("cycleprojectshow").style.display = "none";
		}
	p2 = setTimeout('showProject2()', 50);
	p3 = setTimeout('showProject3()', 2000);
	p4 = setTimeout('showProject4()', 4000);
	p5 = setTimeout('showProject5()', 6000);
	p6 = setTimeout('showProject6()', 8000);
	p7 = setTimeout('showProject7()', 10000);
	p8 = setTimeout('showProject8()', 12000);
	p9 = setTimeout('showProject9()', 14000);
	p10 = setTimeout('showProject10()', 16000);
	p11 = setTimeout('showProject11()', 18000);
	p11 = setTimeout('showProject12()', 20000);
	p11 = setTimeout('showProject13()', 22000);
	p11 = setTimeout('showProject14()', 24000);
	p11 = setTimeout('showProject15()', 26000);
	p11 = setTimeout('showProject16()', 28000);
	p12 = setTimeout('raiseCycleProjectShow()', 30000);
	return;
	}  //  end of function runProjectShow()

