// JavaScript Document - Ink Blot Page -  Main Routines

// Other routines called are in 'zcommon.js'

// ************** Data *************************************************
var PMarty = "Marty> \n ";				// Marty Pefix

var dvalue = null;					// value of Display textbox (document.castform.Display.value)
var iform = null;					// document.castform.
										


// *********************************************************************
var  photoA = new Array();

photoA[0]     = new Image(150, 151);
photoA[0].src = "images/castfraz.jpg";

photoA[1]     = new Image(150, 151);
photoA[1].src = "images/castniles.jpg";

photoA[2]     = new Image(150, 151);
photoA[2].src = "images/castdap.jpg";

photoA[3]     = new Image(150, 151);
photoA[3].src = "images/castroz.jpg";

photoA[4]     = new Image(150, 151);
photoA[4].src = "images/casteddie.jpg";

photoA[5]     = new Image(150, 151);
photoA[5].src = "images/castmarty.jpg";

// ********************************************************************

function SendFraz() {
	document.cast.src = photoA[0].src;		// display Photo 
	dvalue.value = PMarty + bioA[0];
} // end function
// *********************************************************************
function SendNiles() {
	document.cast.src = photoA[1].src;		// display Photo
	dvalue.value = PMarty + bioA[1];
} // end function
// *********************************************************************
function SendDap() {
	document.cast.src = photoA[2].src;		// display Photo
	dvalue.value = PMarty + bioA[2];
} // end function
// *********************************************************************
function SendRoz() {
	document.cast.src = photoA[3].src;		// display Photo
	dvalue.value = PMarty + bioA[3];
} // end function
// *********************************************************************
function SendEddie() {
	document.cast.src = photoA[4].src		// display Photo
	dvalue.value = PMarty + bioA[4]
} // end function
// *********************************************************************
function SendMarty() {
	document.cast.src = photoA[5].src;		// display Photo
	dvalue.value = PMarty + bioA[5];
} // end function
// *********************************************************************

function WelcomeF() { //  Send Welcome
 	dvalue.value  =  PMarty + introMarty + introMarty1;
 return 
} // end function
// *********************************************************************

// 1st Routine called upon load
function Loaded()  {								// ***** Main Routine *****
 	iform = window.document.castform;				// form
 	dvalue = window.document.castform.Display;		// dvalue.value = Marty textarea
 	dvalue.value = "";								// clear Marty.display area
 	WelcomeF();										// Send Welcome																	
} // end function
// *********************************************************************


 