function ViewSS(imagenr) {
var jpegs = new Array;
var widths = new Array;
var heights = new Array;
var titles = new Array;
var count = 0;

jpegs[count] = '201006/Hergesheimer-Jun10-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '201006/Hergesheimer-Jun10-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '201006/CasePall-Jun10-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '201006/CasePall-Jun10-ST-04.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '201005/Pearson-May10-ST-06.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Chuck Pearson';
count++;
jpegs[count] = '201005/Pearson-May10-ST-10.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Chuck Pearson';
count++;
jpegs[count] = '201005/Pearson-May10-ST-12.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Chuck Pearson';
count++;
jpegs[count] = '201005/CasePall-May10-ST-14.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '201005/CasePall-May10-ST-16.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '201002/Truman-Feb10-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'W. Lee Truman';
count++;
jpegs[count] = '201002/Knittle-Feb10-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Knittle';
count++;
jpegs[count] = '201002/Knittle-Feb10-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Knittle';
count++;
jpegs[count] = '200911/Lucas-Nov09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Adam Lucas';
count++;
jpegs[count] = '200911/Lucas-Nov09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Adam Lucas';
count++;
jpegs[count] = '200911/Fowler-Nov09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John and Amy Fowler';
count++;
jpegs[count] = '200911/Fowler-Nov09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John and Amy Fowler';
count++;
jpegs[count] = '200909/Masci-Sep09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200909/Masci-Sep09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200909/Masci-Sep09-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200909/CasePall-Sep09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200909/CasePall-Sep09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200909/CasePall-Sep09-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200907/Wolpert-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stan Wolpert';
count++;
jpegs[count] = '200907/Wolpert-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stan Wolpert';
count++;
jpegs[count] = '200907/Wolpert-Jul09-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stan Wolpert';
count++;
jpegs[count] = '200907/Wolf-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Jerry Wolf';
count++;
jpegs[count] = '200907/Wolf-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Jerry Wolf';
count++;
jpegs[count] = '200907/Knittle-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Knittle';
count++;
jpegs[count] = '200907/Knittle-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Knittle';
count++;
jpegs[count] = '200907/Haury-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200907/Haury-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200907/Haury-Jul09-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200907/Haury-Jul09-ST-04.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200907/Haury-Jul09-ST-05.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200907/CasePall-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200907/CasePall-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200907/CasePall-Jul09-ST-04.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200907/CasePall-Jul09-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200907/CasePall-Jul09-ST-05.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200907/Gallo-Jul09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200907/Gallo-Jul09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200905/Truman-May09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'W. Lee Truman';
count++;
jpegs[count] = '200905/Truman-May09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'W. Lee Truman';
count++;
jpegs[count] = '200905/Hergesheimer-May09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200905/CasePall-May09-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200903/Haury-Mar09-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200903/Haury-Mar09-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200903/Haury-Mar09-ST-03.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Gene Haury';
count++;
jpegs[count] = '200901/CasePall-Jan09-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200811/Fowler-Nov08-ST-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Fowler';
count++;
jpegs[count] = '200811/Fowler-Nov08-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Fowler';
count++;
jpegs[count] = '200811/CasePall-Nov08-ST-01.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200811/CasePall-Nov08-ST-05.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200809/CasePall-Sep08-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200806/Masci-Jun08-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200806/Masci-Jun08-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200806/Masci-Jun08-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200801/Hergesheimer-Jan08-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200801/Hergesheimer-Jan08-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200801/Challenge-Jan08-02.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Knittle';
count++;
jpegs[count] = '200711/CasePall-Nov07-ch-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200711/CasePall-Nov07-ch-5.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200711/CasePall-Nov07-ch-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200711/CasePall-Nov07-ch-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200711/CasePall-Nov07-ch-4.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200711/CasePall-Nov07-ch-6.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200709/Fahrnbruch-Sep07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200709/Fahrnbruch-Sep07-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200709/Fahrnbruch-Sep07-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200709/Fahrnbruch-Sep07-ST-4.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200709/Fahrnbruch-Sep07-ST-5.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200707/Harmon-Jul07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Harmon';
count++;
jpegs[count] = '200707/Harmon-Jul07-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Harmon';
count++;
jpegs[count] = '200707/Harmon-Jul07-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Harmon';
count++;
jpegs[count] = '200707/Harmon-Jul07-ST-4.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dick Harmon';
count++;
jpegs[count] = '200707/Cher-CasePall-Jul07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200707/Cher-CasePall-Jul07-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200707/Cher-CasePall-Jul07-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200706/CasePall-Jun07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200706/CasePall-Jun07-ST-2.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200706/CasePall-Jun07-ST-3.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200706/CasePall-Jun07-ST-4.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200706/Gallo-Jun07-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Gallo';
count++;
jpegs[count] = '200706/Knittle-Jun07-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'John Knittle';
count++;
jpegs[count] = '200706/Ruckstuhl-Jun07-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Ron Ruckstuhl';
count++;
jpegs[count] = '200706/Waingrow-Jun07-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dan Waingrow';
count++;
jpegs[count] = '200704/Hergesheimer-Apr07-ST-1.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200703/CasePall-Mar07-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200702/Masci-Feb07-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200702/Masci-Feb07-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200702/Masci-Feb07-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Felix Masci';
count++;
jpegs[count] = '200611/Hergesheimer-Nov06-ST.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200607/Fahrnbruch-Jul06-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200607/Fahrnburch-Jul06-ST-2.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200607/Fahrnburch-Jul06-ST-3.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200607/Fahrnburch-Jul06-ST-4.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200607/Fahrnburch-Jul06-ST-5.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200603/CasePall-Mar06-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200603/CasePall-Mar06-ST-2.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200603/Hergesheimer-Mar06-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Dave Hergesheimer';
count++;
jpegs[count] = '200512/Truman-Dec05-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'W. Lee Truman';
count++;
jpegs[count] = '200509/Johnsa-Sep05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Debi Johnsa';
count++;
jpegs[count] = '200507/Albers-Jul05-ST-1.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Tim Albers';
count++;
jpegs[count] = '200507/Ludeking-Jul05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Wolfgang Ludeking';
count++;
jpegs[count] = '200507/CasePall-Jul05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200507/CasePall-Jul05-ST-3.jpg';
widths[count] = 480;
heights[count] = 720;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200506/CasePall-Jun05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200504/CasePall-Apr05-Balls.jpg';
widths[count] = 720;
heights[count] = 540;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200501/CasePall-Jan05-st-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200501/CasePall-Jan05-st-2.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200501/CasePall-Jan05-st-3.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200501/CasePall-Jan05-st-4.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200507/Fahrnbruch-Jul05-ST-1.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Bob Fahrnbruch';
count++;
jpegs[count] = '200412/Brandt-Dec04-ST-2.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Bill Brandt';
count++;
jpegs[count] = '200412/Brandt-Dec04-ST-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Bill Brandt';
count++;
jpegs[count] = '200412/Brandt-Dec04-ST-3.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Bill Brandt';
count++;
jpegs[count] = '200412/Brandt-Dec04-ST-4.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Bill Brandt';
count++;
jpegs[count] = '200411/CasePall-Nov04-ST-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200411/CasePall-Nov04-ST-2.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200411/CasePall-Nov04-ST-3.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200411/CasePall-Nov04-ST-4.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200409/CasePall-Sep04-ST-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200409/CasePall-Sep04-ST-2.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200407/CasePall-Jul04-ST.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200405/CasePall-Handle-May04-1.jpg';
widths[count] = 600;
heights[count] = 400;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200405/CasePall-Handle-May04-2.jpg';
widths[count] = 600;
heights[count] = 300;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200405/CasePall-Handle-May04-3.jpg';
widths[count] = 600;
heights[count] = 300;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200404/Apr04-CasePall-Bowls-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = '200404/Apr04-CasePall-Pin-ST.jpg';
widths[count] = 720;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = 'CasePall_seal.jpg';
widths[count] = 640;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = 'CasePall_stopper.jpg';
widths[count] = 640;
heights[count] = 480;
titles[count] = 'Stephen Case-Pall';
count++;
jpegs[count] = 'CasePall_awl.jpg';
widths[count] = 360;
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=\"gallery-turnings.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();
}

