// JavaScript Document

//Random photo

var thePhoto=new Array();

thePhoto[1]='images/p1.jpg';
thePhoto[2]='images/p2.jpg';
thePhoto[3]='images/p3.jpg';
thePhoto[4]='images/p4.jpg';
thePhoto[5]='images/p5.jpg';
thePhoto[6]='images/p6.jpg';
thePhoto[7]='images/p7.jpg';
thePhoto[8]='images/p8.jpg';

var ry=Math.floor(Math.random()*thePhoto.length);
if (ry==0)
ry=1;

function showPhoto() {
	document.write('<img src="'+thePhoto[ry]+'" width="250" height="206" border="0" alt="Zebiak project in progress">');
}

if(document.images) {
	fp1= new Image();
	fp1.src="images/fp1.jpg";
	
	fp2= new Image();
	fp2.src="images/fp2.jpg";
	
	fp1a= new Image();
	fp1a.src="images/fp1a.jpg";
	
	fp2a= new Image();
	fp2a.src="images/fp2a.jpg";
	
	fp1b= new Image();
	fp1b.src="images/fp1b.jpg";
	
	fp2b= new Image();
	fp2b.src="images/fp2b.jpg";
}

function swap(id1,iName1,id2,iName2) {
	document.images[id1].src = eval(iName1 + ".src");
	document.images[id2].src = eval(iName2 + ".src");
}