
picNum=47;  //number of pics in the folder
thesePics=new Array(10); //number of pics to load
var tryAgain;
var nextImage;
function randomPicz(){
pst: for (i=0;i<thesePics.length;i++){
		newRand=Math.ceil(Math.random()*picNum);
		for(a=0;a<47;a++){if (newRand==thesePics[a]){tryAgain=1;break}else{tryAgain=0}; //test if image already chosen
		}
			if(tryAgain==1)
				{i--;newRand=Math.ceil(Math.random()*picNum);continue pst;} //try again
			else
				{thesePics[i]=newRand; //nope, that's fine, add it to the list
				nextImage="document.images.im"+(i+1);};
				eval(nextImage).src="pics/"+thesePics[i]+".jpg"; //pop him in
				 if (eval(nextImage).complete) {continue pst};
				}
}

function posRight(g){
if (document.all){w=cell.offsetWidth;
		var me=eval(g)
		var obj=me.style;
obj.width=w;}
}
