// ******************************************************
// Hitchcock JavaScript Document zjsmarhitch
// ******************************************************


var hitch;


// Load Images for Rollover in Browser's Cache so page loads faster 
hitch = new Image(120,120);          			 // photo width and height
hitch.src = "images/psy0.jpg";       			// photo source (name)

var p = new Array;

p[0] = new Image(120,120);
p[0].src = "images/psy1.jpg";

p[1] = new Image(120,120);
p[1].src = "images/psy2.jpg";

p[2] = new Image(120,120);
p[2].src = "images/psy3.jpg";

p[3] = new Image(120,120);
p[3].src = "images/psy4.jpg";


var ws = new Array
ws = 	[["Hint  1:  This guy is hiding behind his mother's skirt."], 
      	["Hint  2:  Visitors to this house are not the lively kind."],
		["Hint  3:  What a Woman! I wonder who took this photo?"],
		["Hint  4:  Did you know you can apply your hobbies to life?"] ];



function ClickIt(x)  {
  	var tForm=window.document.mForm;	
	
   	tForm.thecell.value = "Marlene's Favorite Film is:  PSYCHO !!!!";
	window.status = "Marlene's Favorite Film is:  PSYCHO !!!!";
} // end function


function mouseOver(x)  {
  	var tForm=window.document.mForm;										
  	var cName = new Array; 
  	
	cName[0] = document.cover0;
 	cName[1] = document.cover1;
 	cName[2] = document.cover2;
  	cName[3] = document.cover3;

  	tForm.thecell.value = ws[x];
  
  	cName[x].src = p[x].src;
	window.status = ws[x];  					// display window status msg	

	return true;
} // edn function


function mouseOut(x)  {
  	var tForm=window.document.mForm;		
  	var cName = new Array; 
  	
	cName[0] = document.cover0;
  	cName[1] = document.cover1;
  	cName[2] = document.cover2;
  	cName[3] = document.cover3;
	
   	var tForm = window.document.mForm;		
  			
  	cName[x].src = hitch.src;
	window.status = "";

 	return true;
} // end function



