// Copyright (C)2000 WebYou.com. All right reserved.
// Fri Mar 17 2000  Doytchin Spiridonov
// No part of this code may be reproduced, stored in
// a retrieval system, or transmitted without the
// prior written permission of the copyright holder.


thumb_x = 80;
thumb_y = 60;
border_x = thumb_x + 2;
border_y = 10;

if (vert) thumb_w = thumb_y; else thumb_w = thumb_x;
if (vert) thumb_h = thumb_x; else thumb_h = thumb_y;
if (vert) border_w = border_y; else border_w = border_x;
if (vert) border_h = border_x; else border_h = border_y;

if (vert) all_size = thumb_w + 2*border_w; else all_size = thumb_h + 2*border_h;
htmlall_size = all_size + 5;

picspref = '/image/';
frame1 = picspref + 'f1' + vert + '.gif';
frame2 = picspref + 'f2' + vert + '.gif';
blank = picspref + 'space' + vert + '.jpg';
picssuff = '.jpg';
thumbspref = 'S';
thumbssuff = '.jpg';
linkto = 'v' + setnumber + '.html';
msg = 'Use the mouse to choose a pic and click on it...';

picnum = pics.length/4;
winp1=0; winp2=picnum-1;
if (window.name == 'fr1') {
  winp1 = 0; winp2 = Math.round(picnum/strips)-1;
} else if (window.name == 'fr2') {
  winp1 = Math.round(picnum/strips); winp2 = Math.round((picnum*2)/strips)-1;
} else if (window.name == 'fr3') {
  winp1 = Math.round((picnum*2)/strips); winp2 = Math.round((picnum*3)/strips)-1;
}
winn = winp2 - winp1 + 1;


theurl = new String(window.location);
args = theurl.split(/[&?]/);
pn = args[1]; if (!pn) pn=0;
img_cat = pics[pn*4+0];
img_tit = pics[pn*4+2];
img_desc = pics[pn*4+3];
img_img = '<IMG SRC=' + picspref + pics[pn*4+1] + picssuff + '>';
