// JavaScript Document

		var squares = new Array();
		squares[0] = new Image();
		squares[0].src = "images/working/square/BarrysGirl.jpg";
		/*squares[1] = new Image();
		squares[1].src = "images/working/square/Boy01.jpg";
		squares[2] = new Image();
		squares[2].src = "images/working/square/Boy02.jpg";
		squares[3] = new Image();
		squares[3].src = "images/working/square/Girl01.jpg";
		squares[4] = new Image();
		squares[4].src = "images/working/square/Girl02.jpg";
		squares[5] = new Image();
		squares[5].src = "images/working/square/Mad_BarryMulti02.jpg";
		squares[6] = new Image();
		squares[6].src = "images/working/square/JeanPaul01.jpg";
		squares[7] = new Image();
		squares[7].src = "images/working/square/JeanPaul02.jpg";
		squares[8] = new Image();
		squares[8].src = "images/working/square/PuppetManBoy.jpg";*/


		var narrows = new Array();
		narrows[0] = new Image();
		narrows[0].src = "images/working/narrow/BarryBoy01.jpg";
		narrows[1] = new Image();
		narrows[1].src = "images/working/narrow/Mad_BarryMulti02.jpg";
		narrows[2] = new Image();
		narrows[2].src = "images/working/narrow/Mad_MaddyBarry.jpg";
		narrows[3] = new Image();
		narrows[3].src = "images/working/narrow/Mad_Cucuface.jpg";
		narrows[4] = new Image();
		narrows[4].src = "images/working/narrow/Mad-Gypsy.jpg";
		narrows[5] = new Image();
		narrows[5].src = "images/working/narrow/BarryBoyC.jpg";
		narrows[6] = new Image();
		narrows[6].src = "images/working/narrow/BoyGirl.jpg";		

		
		var features = new Array();
		features[0] = new Image();
		features[0].src = "images/working/headshot/barry.jpg";
		features[1] = new Image();
		features[1].src = "images/working/headshot/MamaDinosaur.jpg";	
		features[2] = new Image();
		features[2].src = "images/working/headshot/BabyButtons.jpg";
		features[3] = new Image();
		features[3].src = "images/working/headshot/ChimpPansy.jpg";
		features[4] = new Image();
		features[4].src = "images/working/headshot/DiggityDragon.jpg";
		features[5] = new Image();
		features[5].src = "images/working/headshot/DinahDinosaur.jpg";
		features[6] = new Image();
		features[6].src = "images/working/headshot/GiraldoGiraffe.jpg";
		features[7] = new Image();
		features[7].src = "images/working/headshot/grasshopper.jpg";
		features[8] = new Image();
		features[8].src = "images/working/headshot/MadamBlingBling.jpg";
		features[9] = new Image();
		features[9].src = "images/working/headshot/PrincessPerfect.jpg";
		features[10] = new Image();
		features[10].src = "images/working/headshot/Biancia.jpg";
		features[11] = new Image();
		features[11].src = "images/working/headshot/PuppetMan.jpg";
		features[12] = new Image();
		features[12].src = "images/working/headshot/WizardSchnozz.jpg";
		features[13] = new Image();
		features[13].src = "images/working/headshot/KingPuppet.jpg";		
		features[14] = new Image();
		features[14].src = "images/working/headshot/TerriDactyl.jpg";
		features[15] = new Image();
		features[15].src = "images/working/headshot/David.jpg";		
		features[16] = new Image();
			
	
		var featureLinks = new Array();
		featureLinks[0] = "barry.html";
	featureLinks[1] = "MamaDinosaur.html";	
		featureLinks[2] = "ShyBabyButtons.html";
		featureLinks[3] = "ChimpPansy.html";
		featureLinks[4] = "DiggityDragon.html";
		featureLinks[5] = "DinahDinosaur.html";
		featureLinks[6] = "GeraldGiraffe.html";
		featureLinks[7] = "SupSupGrasshopper.html";
		featureLinks[8] = "MadamBlingBling.html";
		featureLinks[9] = "PrincessPerfect.html";
		featureLinks[10] = "PrincessDiva.html";
		featureLinks[11] = "PuppetMan.html";
		featureLinks[12] = "WizardSchnozz.html";
		featureLinks[13] = "KingPuppet.html";
		featureLinks[14] = "TerriDactyl.html";
		featureLinks[15] = "David.html";						
			
						
		var featureNames = new Array();
		featureNames[0] = "Barry Keating";
		featureNames[1] = "Mama T-Rex";	
		featureNames[2] = "Baby Buttons";
		featureNames[3] = "Chimp Pansy";
		featureNames[4] = "Diggity Dragon";
		featureNames[5] = "Dinah Dinosaur";
		featureNames[6] = "Jackson Giraffe";
		featureNames[7] = "Hip Hop Grasshopper";
		featureNames[8] = "Madam Bling Bling";
		featureNames[9] = "Princess Perfect";
		featureNames[10] = "Princess Diva";
		featureNames[11] = "Puppetman";
		featureNames[12] = "Wizard of Schnozz";
		featureNames[13] = "Old King Cole Slaw";
		featureNames[14] = "Terri Dactyl";
		featureNames[15] = "David Schechter";						
	
				
		function randomImg(arr, id) {
			var i = 0;
			i = Math.floor(Math.random() * arr.length);
			var objI = document.getElementById(id);
			if (objI) {
				objI.src = arr[i].src;
			}
			return true;
		}
		
		function featureImg() {
			var i = 0;
			var dt = new Date();
			//remove the random component after testing
			i = (dt.getDate() - 1 + (Math.floor(Math.random() * features.length))) % features.length;
			
			var obj = document.getElementById("featureI");
			if (obj) {
				obj.src = features[i].src;
			}
			obj = document.getElementById("featureL")
			if (obj) {
				obj.href = featureLinks[i];
				obj.innerHTML = featureNames[i];
			}
			
			
			return true;
		}
	