// JavaScript Document

//p = number of available pages
//b = bump up list (p+ b should never be more than number of images in image_loc
//  example: total images = 10, p=10, b=0 you get all 10 images
//  example: total images = 10, p=5, b=0 you get first 5 images only
//  example : total images = 10, p=5, b=5 you get last 5 images only
//image_loc = location of files
//pic_width = image width
//pic_height = image height

function showImage(p,b,image_loc,pic_width,pic_height){
// var p = 7;

var whichImage = Math.round(Math.random()*(p-1)) + 1 + b;

document.write('<img src="'+image_loc+whichImage+'.jpg" width="'+pic_width+'" height="'+pic_height+'">');
}

// End

