function writePicRow(wotSect){
var theSect=wotSect;
var theSectArray=eval("section"+theSect);
var theStarter=1;
var theIncrement=rowSize;
var fullSectNum=eval(theSectArray.length);
var rowNumsFull=(fullSectNum/theIncrement);
var rowNumsMod=(fullSectNum%theIncrement);
var emptyCells=(theIncrement-rowNumsMod);
var rowNums;

document.write('<div align="left"><table border="0" cellspacing="'+outerCellSpace+'" cellpadding="'+outerCellPadd+'"><tr>');

if (rowNumsMod>0){
strNums=""+rowNumsFull;
len=strNums.length;
var rowNums=(strNums.substring(0,1));
}
else {rowNums=eval(fullSectNum/theIncrement);}
for (z=0;z<rowNums;z++){
var theRowSize=eval(theStarter+theIncrement);
document.write('<tr>');
for (ctr=theStarter;ctr<theRowSize;ctr++){
var currentSect=theSectArray[(ctr-1)];

var whichPic=myUnescape(currentSect[0]);
var wotPicW=eval(currentSect[1]);
var wotPicH=eval(currentSect[2]);
var haveHeading=eval(currentSect[3]);
var wotHeading=myUnescape(currentSect[4]);
var isWinCap=eval(currentSect[5]);
var winCap=myUnescape(currentSect[6]);
var pageCap=myUnescape(currentSect[7]);
var isCredit=eval(currentSect[8]);
var photographer=myUnescape(currentSect[9]);

if (haveHeading==0){wotHeading=theTitle;}
document.write('<td valign="top" class="">');
document.write('<table border="0" cellspacing="'+innerCellSpace+'" cellpadding="'+innerCellPadd+'">');
document.write('<tr><td valign="middle" align="center">');
document.write('<a href="javascr'+'ipt:launchFullPic(\''+whichPic+'\','+wotPicW+','+wotPicH+',\''+picPath+'\',\''+wotHeading+'\','+isWinCap+',\''+winCap+'\',\''+pageCap+'\','+isCredit+',\''+photographer+'\',\''+whichPic+'Win\')">');
document.write('<img src="'+thumbPath+whichPic+'.jpg" alt="" border="0" class="blackBorder" width="'+thumbW+'" ');
document.write('height="'+thumbH+'" hspace="0" vspace="0" title="Click to see a bigger version of this pic"><'+'/a>');
document.write('<'+'/td><'+'/tr>');
document.write('<'+'/table>');
if (isPageCap>0){
  document.write('<table border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr><td valign="middle" align="center" class="gallTxtLink"><a href="javascr'+'ipt:launchFullPic(\''+whichPic+'\','+wotPicW+','+wotPicH+',\''+picPath+'\',\''+wotHeading+'\','+isWinCap+',\''+winCap+'\',\''+pageCap+'\','+isCredit+',\''+photographer+'\',\''+whichPic+'Win\')" class="gallTxtLink">'+pageCap+'<'+'/a><'+'/td><'+'/tr>');
  document.write('<'+'/table>');
}
document.write('<'+'/td>');
}
document.write('<'+'/tr>');
var theStarter=eval(theStarter+theIncrement);
}

if (fullSectNum<rowSize){theRowSize=1};
document.write('<tr>');
for (a=0;a<rowNumsMod;a++){
for (var ctr=theStarter;ctr<(theRowSize+rowNumsMod);ctr++){
var currentSect=theSectArray[(ctr-1)];
 
var whichPic=myUnescape(currentSect[0]);
var wotPicW=eval(currentSect[1]);
var wotPicH=eval(currentSect[2]);
var haveHeading=eval(currentSect[3]);
var wotHeading=myUnescape(currentSect[4]);
var isWinCap=eval(currentSect[5]);
var winCap=myUnescape(currentSect[6]);
var pageCap=myUnescape(currentSect[7]);
var isCredit=eval(currentSect[8]);
var photographer=myUnescape(currentSect[9]);
 
if (haveHeading==0){wotHeading=theTitle;}
document.write('<td valign="top" class="">');
document.write('<table border="0" cellspacing="'+innerCellSpace+'" cellpadding="'+innerCellPadd+'">');
document.write('<tr><td valign="middle" align="center">');
document.write('<a href="javascr'+'ipt:launchFullPic(\''+whichPic+'\','+wotPicW+','+wotPicH+',\''+picPath+'\',\''+wotHeading+'\','+isWinCap+',\''+winCap+'\',\''+pageCap+'\','+isCredit+',\''+photographer+'\',\''+whichPic+'Win\')">');
document.write('<img src="'+thumbPath+whichPic+'.jpg" alt="" border="0" class="blackBorder" width="'+thumbW+'" ');
document.write('height="'+thumbH+'" hspace="0" vspace="0" title="Click to see a bigger version of this pic"><'+'/a>');
document.write('<'+'/td><'+'/tr>');

if (isPageCap>0){
document.write('<tr><td valign="top" align="center">');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td valign="middle" align="center" class="gallTxtLink"><a href="javascr'+'ipt:launchFullPic(\''+whichPic+'\','+wotPicW+','+wotPicH+',\''+picPath+'\',\''+wotHeading+'\','+isWinCap+',\''+winCap+'\',\''+pageCap+'\','+isCredit+',\''+photographer+'\',\''+whichPic+'Win\')" class="gallTxtLink">'+pageCap+'<'+'/a><'+'/td><'+'/tr>');
document.write('<'+'/table>');
document.write('<'+'/td><'+'/tr>');
}

document.write('<'+'/table>');
document.write('<'+'/td>');
var theStarter=eval(theStarter+1);
}
}
for (zz=0;zz<emptyCells;zz++){document.write('<td><img src="'+imgFolderPath+'spacer.gif" alt="" width="10" height="1" hspace="0" vspace="0"><'+'/td>');}
document.write('<'+'/tr>');
document.write('<'+'/table><'+'/div>');
}

var newwin=null;
var pic = new Image();
function launchFullPic(pic,width,height,path,winTitle,isWinCap,winCap,pageCap,isCredit,photographer,winName) {

var topMar="12";
var heightX="48";
var widthX="37";
var normH="20";
var capW="2";

if (wotBrowser=="Firefox"){capW="0";}
else{capW="2";}

if (bSetup=="Mac_Firefox"){var heightX="50";var widthX="37";normH="32";}
if (bSetup=="Mac_MSIE"){var heightX="28";var widthX="25";normH="15";}
if (bSetup=="Mac_Netscape"){var heightX="50";var widthX="37";normH="30";}
if (bSetup=="Mac_Safari"){var heightX="48";var widthX="35";normH="35";}

if (bSetup=="Win_Firefox"){var heightX="48";var widthX="35";normH="28";}
if (bSetup=="Win_MSIE"){var heightX="43";var widthX="25";normH="26";}
if (bSetup=="Win_Netscape"){var heightX="48";var widthX="35";normH="20";}

if (isWinCap>0){
var winFeatures='width='+(width+eval(widthX))+',height='+(height+eval(heightX))+',dependent,left=0,top=0';
}
else {var winFeatures='width='+(width+eval(widthX))+',height='+(height+eval(normH))+',dependent,left=0,top=0';}

newwin=window.open('',winName,winFeatures);
if(jsvers>1.0){setTimeout('newwin.focus();',250);}
var doc=newwin.document; 
doc.open('text/html','replace');

var sMarkup='<html><head><title>'+winTitle+'<'+'/title><'+'/head>';
sMarkup+='<style type="text/css">';
sMarkup+='.blackBorder {border:1px solid #000000;}';
sMarkup+='body {font-family:Arial, Helvetica, sans-serif;font-size:11px;}';
if (isWinCap=="2"){
sMarkup+='.theCap {background-color:#ffffff;color:#000000;padding-left:4px;}';
sMarkup+='.theCredit {background-color:#ffffff;color:#000000;text-align:right;}';
sMarkup+='#cap {border-style:solid;border-color:#000000;border-width:0 1px 1px 1px; width:'+(width+eval(capW))+'px;height:16px;background-color:#ffffff;vertical-align:middle;padding-top:1px;}';
}
sMarkup+='<'+'/style>';
sMarkup+='<body bgcolor="#'+winBgndColor+'" topmargin="'+(eval(topMar))+'" leftmargin="0" marginheight="'+(eval(topMar))+'" marginwidth="0">';
sMarkup+='<div align="center" id="pageContainer">';
sMarkup+='<img src="'+path+pic+'.jpg" width="'+width+'" height="'+height+'" vspace="0" hspace="0" class="blackBorder">';
if (isWinCap>0){sMarkup+='<div id="cap">'+winCap+'<'+'/div>';}
sMarkup+='<'+'/div>';
sMarkup+='<'+'/body><'+'/html>';
doc.write(sMarkup);
doc.close();
}

