myPix = new Array(
	"images/title_01_01.jpg",
	"images/title_01_02.jpg",
	"images/title_01_03.jpg",
	"images/title_01_04.jpg",
	"images/title_01_05.jpg",
	"images/title_01_06.jpg",
	"images/title_01_07.jpg",
	"images/title_01_08.jpg",
	"images/title_01_09.jpg",
	"images/title_01_10.jpg",
	"images/title_01_11.jpg",
	"images/title_01_12.jpg",
	"images/title_01_13.jpg",
	"images/title_01_14.jpg",
	"images/title_01_15.jpg",
	"images/title_01_16.jpg",
	"images/title_01_17.jpg",
	"images/title_01_18.jpg",
	"images/title_01_19.jpg",
	"images/title_01_20.jpg",
	"images/title_01_21.jpg",
	"images/funny.jpg"
)
imgCt = myPix.length

function choosePic(){
	var imagePause1 = (3.5 * 1000);
	//if(document.myPicture.complete){
		randomNum = Math.floor((Math.random() * imgCt));
		cachePic = new Image;
		cachePic.src = myPix[randomNum];
		setTimeout("swap(myPix[randomNum])", imagePause1);
	//}
}

function swap (image){
	var imagePause2 = ( 1 * 1000 );
	document.myPicture.src = image;
	setTimeout("choosePic()", imagePause2);
}
// end