function ViewSS(imagenr) {
var jpegs = new Array;
var widths = new Array;
var heights = new Array;
var titles = new Array;
var count = 0;

jpegs[count] = '201108/Gallo-Aug11-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '201108/Gallo-Aug11-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '201107/Pollard-Jul11-ST-05.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '201106/Bastow-Jun11-ST-001.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Brian Bastow';
count++;
jpegs[count] = '201106/Bastow-Jun11-ST-002.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Brian Bastow';
count++;
jpegs[count] = '201106/Bastow-Jun11-ST-003.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Brian Bastow';
count++;
jpegs[count] = '201106/Ascheman-Jun11-ST-001.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Ascheman';
count++;
jpegs[count] = '201106/Ascheman-Jun11-ST-002.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Ascheman';
count++;
jpegs[count] = '201103/Pollard-Mar11-ST-06.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '201103/Pollard-Mar11-ST-10.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '201102/Pollard-Feb11-ST-02.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '201102/Pollard-Feb11-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '201011/Watkins-Nov10-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bill Watkins';
count++;
jpegs[count] = '201011/Watkins-Nov10-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bill Watkins';
count++;
jpegs[count] = '201011/Waingrow-Nov10-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Waingrow';
count++;
jpegs[count] = '201011/Waingrow-Nov10-ST-02.jpg';
widths[count] = 720;
heights[count] = 481;
titles[count] = 'Dan Waingrow';
count++;
jpegs[count] = '201011/Waingrow-Nov10-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Waingrow';
count++;
jpegs[count] = '201007/Gallo-Jul10-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '201007/Gallo-Jul10-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200909/Pollard-Sep09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '200909/Pollard-Sep09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '200907/Studley-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Studley';
count++;
jpegs[count] = '200907/Studley-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Studley';
count++;
jpegs[count] = '200907/Pollard-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '200907/Pollard-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Pollard';
count++;
jpegs[count] = '200901/Grey-Jan09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Aubrey Grey';
count++;
jpegs[count] = '200811/Stone-Nov08-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Loren Stone';
count++;
jpegs[count] = '200811/Stone-Nov08-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Loren Stone';
count++;
jpegs[count] = '200802/Gourlay-Feb08-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = '200802/Gourlay-Feb08-ST-4.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = '200707/Wakefield-Jul07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Wakefield';
count++;
jpegs[count] = '200707/Wakefield-Jul07-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Wakefield';
count++;
jpegs[count] = '200707/CasePall-Jul07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200707/CasePall-Jul07-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200707/CasePall-Jul07-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200704/Denton-Apr07-ST-1.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Tom Denton';
count++;
jpegs[count] = '200704/CasePall-Apr07-ST-1.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200611/Denton-Nov06-ST.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Tom Denton';
count++;
jpegs[count] = '200611/Kingsbury-Nov06-ST.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Richard Kingsbury';
count++;
jpegs[count] = '200609/Purdy-Sep06-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Andrew Purdy';
count++;
jpegs[count] = '200609/Wakefield-Sep06-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Wakefield';
count++;
jpegs[count] = '200507/CasePall-Jul05-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200507/Rogers-Jul05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Neal Rogers';
count++;
jpegs[count] = '200505/Handberg-May05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Arlen Handberg';
count++;
jpegs[count] = '200503/Hergesheimer-Mar05-ST.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200502/Masci-Feb05-ST-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200501/Albers-Jan05-st-01.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-02.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-03.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-04.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-06.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-07.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-08.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-09.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200501/Albers-Jan05-st-10.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200412/Gallo-Dec04-ST-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200412/Gallo-Dec04-ST-2.jpg';
widths[count] = 370;
heights[count] = 600;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200406/CasePall-Jun04-ST-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200406/CasePall-Jun04-ST-2.jpg';
widths[count] = 400;
heights[count] = 600;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200409/Gallo-Sep04-ST.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200405/May04-Gallo-ST.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = 'Nathanson_beretta2.jpg';
widths[count] = 749;
heights[count] = 427;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = 'GourlayBookendsetcetera.jpg';
widths[count] = 540;
heights[count] = 299;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = 'GourlayFootstools.jpg';
widths[count] = 510;
heights[count] = 227;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = 'GourlayPLate-Holders.jpg';
widths[count] = 640;
heights[count] = 372;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = 'GourlayBagLady.jpg';
widths[count] = 177;
heights[count] = 450;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = 'GourlayButler.jpg';
widths[count] = 225;
heights[count] = 450;
titles[count] = 'Bill Gourlay';
count++;
jpegs[count] = 'Case-Scoop.jpg';
widths[count] = 640;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = 'Case-ScoopDog.jpg';
widths[count] = 640;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = 'Case-CodeBook.jpg';
widths[count] = 640;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = 'Case-CodeGun.jpg';
widths[count] = 640;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
if (navigator.userAgent.indexOf("MSIE") != -1) {
	ViewImagef(jpegs[imagenr],widths[imagenr],heights[imagenr],titles[imagenr],'frame043');
	return;
}
var ititle = "Click to Advance";
var nxt = imagenr + 1;
nxt = nxt % count;
var prv = imagenr - 1;
if (prv < 0)
	prv = count - 1;
var win;
var wWidth;
var wHeight;
var reduce = 1;
var aH = screen.availHeight-75, aW = screen.availWidth-75;
var ix = widths[imagenr];
var iy = heights[imagenr];
var ifile = jpegs[imagenr];
if (aH < iy + 100 || aW < ix + 100) {
	reduce = aH / (iy + 100.0);
	if ((aW / (ix + 100.0 ) ) < reduce ) {
		reduce = aW / (ix + 100.0);
	}
	ix = reduce * ix;
	ix = ix - ix%1;
	iy = reduce * iy;
	iy = iy - iy%1;
}
var lx=ix+33;
var by=iy+33;
var bdW=-30;
var bdH=0;
var windows=0;
var mac=0;
var linux=0;
if(navigator.userAgent.indexOf("Linux") != -1 ) {
linux=1;
}
if (navigator.userAgent.indexOf("Windows") != -1) {
windows=1;
}
if (navigator.userAgent.indexOf("Macintosh") != -1) {
mac=1;
}
if (navigator.userAgent.indexOf("Safari") != -1) {
    bdW=-30;
    bdH=-6;
}
if (navigator.userAgent.indexOf("Firefox") != -1) {
    bdW=-30;
    bdH=-7;
    if (windows) {
        bdH=-7+32+30;
        bdW=-30+8;
    }
    if(linux) {
        bdH=-7+32+2;
        bdW=-30+2;
    }
}
if (navigator.userAgent.indexOf("Chrome") != -1) {
    bdW=-30+16;
    bdH=20+18;
}
if (navigator.userAgent.indexOf("MSIE") != -1) {
    bdW=-30+12;
    bdH=48+4;
}
// Firefox
wHeight=iy+96-7;  // these sizes are the smallest which works for IE6 on Windows
wWidth=ix+96-30;
// Chrome
wHeight=iy+96+20;
wWidth=ix+96-30;
// Safari
wHeight=iy+96-6;
wWidth=ix+96-30;
// all
wHeight=iy+96+bdH;
wWidth=ix+96+bdW;
win = window.open("","imageviewer","innerWidth="+wWidth+",innerHeight="+wHeight+",menubar=no,toolbar=no,scrollbars=no,resizable=no,status=no,statusbar=no");
var ddW=win.outerWidth-win.innerWidth;
var ddH=win.outerHeight-win.innerHeight;
var dims=win.outerWidth+"x"+win.outerHeight+" "+win.innerWidth+"x"+win.innerHeight;
if (win.innerWidth > 0) {
win.window.resizeTo(ix+66+ddW,iy+66+ddH);
if (navigator.userAgent.indexOf("Chrome") != -1)
win.window.resizeTo(ix+66+ddW+16,iy+66+ddH+18);
}
win.document.open();
win.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">\n<html><head><title>"+ititle+"</title>");
win.document.write("<script src=\"various-gallery.js\" language=\"JavaScript\" type=\"text/javascript\"></script>");
win.document.write("</head>\n<body style=\"margin: 0 0 0 0;\">\n");

win.document.write("<div style=\"position: absolute; left: 0px; top: 0px; width: 33px; height: 33px\"><img src=\"/frame043_ul.jpg\" width=33 height=33></div>\n");
win.document.write("<div style=\"position: absolute; left: 33px; top: 0px; width: "+ix+"px; height: 33px\"><img src=\"/frame043_t.jpg\" width="+ix+" height=33></div>\n");
win.document.write("<div style=\"position: absolute; left: "+lx+"px; top: 0px; width: 33px; height: 33px\"><img src=\"/frame043_ur.jpg\" width=33 height=33></div>\n");

win.document.write("<div style=\"position: absolute; left: 0px; top: 33px; width: 33px; height: "+iy+"px\" onClick=\"ViewSS("+prv+")\"><img src=\"/frame043_l.jpg\" width=33 height="+iy+"></div>\n");

win.document.write("<div style=\"text-align: center; position: absolute; left: 33px; top: 33px; width: "+ix+"px; height: "+iy+"px\" onClick=\"ViewSS("+nxt+")\"><img src=\"/"+ifile+"\" width="+ix+" height="+iy+" border=0></div>\n");

win.document.write("<div style=\"text-align: center; position: absolute; left: 33px; top: 33px; width: "+ix+"px; height: "+iy+"px\" onClick=\"ViewSS("+nxt+")\">"+titles[imagenr]+"</div>\n");

win.document.write("<div style=\"position: absolute; left: "+lx+"px; top: 33px; width: 33px; height: "+iy+"px\" onClick=\"ViewSS("+nxt+")\"><img src=\"/frame043_r.jpg\" width=33 height="+iy+"></div>\n");

win.document.write("<div style=\"position: absolute; left: 0px; top: "+by+"px; width: 33px; height: 33px\"><img src=\"/frame043_ll.jpg\" width=33 height=33></div>\n");
win.document.write("<div style=\"position: absolute; left: 33px; top: "+by+"px; width: "+ix+"px; height: 33px\"><img src=\"/frame043_b.jpg\" width="+ix+" height=33></div>\n");
win.document.write("<div style=\"position: absolute; left: "+lx+"px; top: "+by+"px; width: 33px; height: 33px\"><img src=\"/frame043_lr.jpg\" width=33 height=33></div>\n");
by = by + 33;
//win.document.write("<div style=\"position: absolute; left: 0px; top: "+by+"px; width: "+ix+"px; height: 15px\">"+titles[imagenr]+"</div>\n");
win.document.close();
win.window.focus();
}


