// ACTD Feature System 1.10 - rimage.js
// Creator: Jason Jackson
// Revision Date: August 31, 2005, Trish Lynam
// For inquires please email itohwebmaster@acalltoduty.com
// Copyright 2002-2004 - ACTDR: In The Time of Heroes
// http://inthetimeofheroes.acalltoduty.com


//constants

var fPath = "images/characters/"


//characters

var characterFile = new Array()
var characterAlt = new Array()

characterFile[1]="itohhero1.jpg"
characterAlt[1]="ITOH Hero"

characterFile[2]="itohhero2.jpg"
characterAlt[2]="ITOH Hero"

characterFile[3]="itohhero3.jpg"
characterAlt[3]="ITOH Hero"

characterFile[4]="itohhero4.jpg"
characterAlt[4]="ITOH Hero"

characterFile[5]="itohhero5.jpg"
characterAlt[5]="ITOH Hero"

characterFile[6]="itohhero6.jpg"
characterAlt[6]="ITOH Hero"

characterFile[7]="itohhero7.jpg"
characterAlt[7]="ITOH Hero"

characterFile[8]="itohhero8.jpg"
characterAlt[8]="ITOH Hero"

characterFile[9]="itohhero9.jpg"
characterAlt[9]="ITOH Hero"

characterFile[10]="itohhero10.jpg"
characterAlt[10]="ITOH Hero"

characterFile[11]="itohhero11.jpg"
characterAlt[11]="ITOH Hero"

//begin code

var fIndex

function fRandom(fFile,fAlt){

	if(fFile==characterFile){	
		while(!fIndex || !characterFile[fIndex]){
			fIndex = Math.round(Math.random()*(fFile.length-1))
		}
	}

	return '<alt="'+fAlt[fIndex]+'"><img src="'+fPath+fFile[fIndex]+'" border="0"></a>'

}
