
<!-- Begin
/*  imgServer - random image server , Copyright @2004 Cimarron Valley Solutions, All Rights Reserved 

Purpose -  js function call to routine which returns img specs randomly from a list of images contained within this js.
 Parameters - input(Path - relative or absolute path to images folder);	Output:	image scr parameter for <img src=....>
	How it works:
 1) Include this .js in the head section of your script.
 2) Create a copy of the Thumbs_list.js, put it in your images folder. Modify it so that it contains a list of your images.
 3) Include the xxxxxx_list.js in the head section of your script. (where xxx is the name of your list of images.
 4) Where ever you want an image to display, create an img src= tag which invokes the fnImgServer(path) function. Set path parameter = the relative or absolute path to your images folder.
 
// Where ever you want an image include this: ... language=javascript>
path=""
document.write("<img src='" + fnImgServer(path, ImageArrayName) + "' ....>")... //
*/

function fnImgServer(Path,ImageArrayName){
/*
Path contains the absolute or relative path to the images folder. Example 1: http://..../; Example 2: ../../images/thumbs/

Caller must end Path with a "/"

*/
var CVS_imgChosen=eval("Math.floor(Math.random()*" + ImageArrayName +".length)"); //pickup a random image index that is between 0 and the total number of images in the array
return eval("Path+" + ImageArrayName+"[CVS_imgChosen]")
} // end function

// End -->
