

   seepagnr = 3 ;

function viewPicUp(nam) {
 if (seepagnr==4) { see.close() } else {seepagnr=4} ;
see=window.open('','see','scrollbars=1');
see.document.write("<HTML><HEAD>");
see.document.write("<style type='text/css'> BODY {");
see.document.write("scrollbar-face-color: '#E9B196' ;") ;
see.document.write("scrollbar-shadow-color: '#977A00' ;") ;
see.document.write("scrollbar-track-color: 'purple' ;") ;
see.document.write("scrollbar-arrow-color: '#FF0000' ;") ;
see.document.write("scrollbar-highlight-color: 'purple' ;") ;
see.document.write("scrollbar-3dlight-color: '#000000' ;") ;
see.document.write("scrollbar-darkshadow-color: '#505050' ;") ;
see.document.write("}</style>");
see.document.write("<style type='text/css'>") ;
see.document.write("<A:link { text-decoration: underline: none;  }  A:visited { text-decoration: underline: none; color:brown; } A:hover { text-decoration: underline: none; font-weight: none; color: '#ff5a00';} ></style>") ;
see.document.write("<TITLE>_ PictureParade _ The Popuppies</TITLE>" );
see.document.write("</HEAD><BODY bgcolor='purple'><center>" );
see.document.write("<table cellpadding=6 cellspacing=3 border=2><tr><td bgcolor=darkgreen background='"+PicsDir+"2bg.gif'><div align=center><center>");
see.document.write("<div align=center><font color=gold face='Comic Sans MS' size=4>");
see.document.write("<B>This is picture : "+nam + "&nbsp;</B>");

see.document.write("</font><br>");
see.document.write("<font color='blue'>");
see.document.write("Found at <a href='http://www.imagenetion.com' target=_blank>Imagenetion</A>.(1997)");

see.document.write("</font><br><font color=red>");
see.document.write("<div align=left>");
see.document.write("<font size=1>Click the pic to go back</font></div>");
see.document.write("<div align=right>");
see.document.write("<a href='window.close' onClick='window.close(); return false'><img border=0 src='"+PicsDir+"gbani.gif'></a>");
see.document.write("</div></font><font color=yellow>");
see.document.write("<a href='"+PicsDir+"pics/" + nam +".close' onClick='window.close(); return false'><img border=0 alt='Click to go BACK' src="+PicsDir+"pics/" + nam +"></a>");
see.document.write("<br>");
see.document.write("<a href='window.close' onClick='window.close(); return false'><img src='"+PicsDir+"gbani.gif' BORDER=0></a>");
see.document.write("</font></center></div></td></tr></table>");
   see.document.write("</center></BODY></HTML>");
} ;


function filIt(item,leng) {df= item.toString() ;  lent= df.length ; 
 while (lent<leng) {df="0"+ df ; lent= df.length ;  } ;
return df ; }


// this one is used only once, initialize base-sequence, one picture.
 function showArryPic(pictitl,num,leng,picnas,txtkleur,toevkleur) {
frstpicnam = "gp" +  filIt((num),leng) + "x.jpg" ;
scndpicnam = "gp" +  filIt((num),leng) + "t.jpg" ;
 nam3 = PicsDir+"thmbs/" + scndpicnam ;
  document.write("<font color="+txtkleur+" size=2><B>"+pictitl+"</B></font><BR>");
document.write("<a href=\"" + frstpicnam +"\" onClick='viewPicUp(\"") ;
document.write(""+frstpicnam) ;
document.write("\"); return false'><img width=66 height=100 border=0 alt="+frstpicnam+" src=\"") ;
document.write(nam3 + "\"></a><br>") ;
 if (picnas!=="") document.write("<font color="+txtkleur+" size=2><B>"+picnas+"</B></font><BR>");
document.write("<font face=arial size=1 color="+toevkleur+"><B><I>",frstpicnam,
"</I></B><br>");
document.write("</font> ");
} ;


function viewPicArry(nr) {
// aantal plaatjes achter elkaar, the sequence, de filmstrook.
 
// het nummer de middelste laten zijn of links van het midden bij een even aantal
  //    nr = (nr-(Math.floor(picsArrayLen/2.1))) ;
   //     nr = (nr-(Math.floor(picsArrayLen/2.1))) ;

      for ( piclengte = 0 ; piclengte <  picsArrayLen ; piclengte++ ) {

  // nummer bepalen (variabel)
   newnr = nr + piclengte ;
 
 
 
 // als het nummer het maximum of minimum overschrijd
        if (newnr<1) { newnr = (totalpics + newnr) } ;
       while (newnr>totalpics){ newnr= (newnr-totalpics)  ;  } ;

  frstpicnam = "gp" +  filIt((newnr),4) + "x.jpg" ;
 nnam = PicsDir + "thmbs/gp" +  filIt((newnr),4) + "t.jpg" ;

 if (walkIt) { var   pnam = "PicInf[" + (newnr) + "]" ; } 
else {  var   pnam = "PicInf[" + (piclengte + 1) + "]" ; } 
    var   picnam = eval(pnam) ;
             nsn =  picnam.split("¥") ;
 
  Tline = "<font color="+nsn[2]+" size=2><B>" ;
  var sometry = nsn[0] ;
  Tline1 = sometry + "</B></font><BR>" ;
  Tline1a = "<a href=\"" + frstpicnam +"\" onClick='viewPicUp" ;
  Tline1c = "(\""+frstpicnam + "\"); return false' ";
  Tline2 = ">";
  Tline3 = "<img src=\"" + nnam + "\" width=66 height=100 border=0  alt='"+frstpicnam +"\n"+nsn[4] + newnr +"'></a><br>" ;
    Tline4 = "<font color="+nsn[2]+" size=2><B>" + nsn[1]+"</B></font><BR>" ;
    Tline5 = "<font face=arial size=1 color="+nsn[3]+"><B><I>" + frstpicnam +
"</I></B><br></font> " ;
 
 newTransLine = Tline + Tline1 + Tline1a + Tline1c + Tline2 + Tline3 + Tline4 + Tline5  ; 

   tryret = "ArrayThumb" + (piclengte + 1) ; 
  document.getElementById(tryret).innerHTML = newTransLine ;
  
                 } ; // einde van de FORloop
     oldPicNr = chanchedPicNr ; 
                      } ;  // einde van "function viewPicArry(nr)"
 
 
function calArrylast() {
 chanchedPicNr= oldPicNr ; // misschien is ie veranderd?
 chanchedPicNr= chanchedPicNr - picsSkip ; 
     viewPicArry(chanchedPicNr);
                       };

function calArrynext() {
 chanchedPicNr= oldPicNr + picsSkip ;
      viewPicArry(chanchedPicNr);
                       } ;

function calArryrandm(nummax,nummin){
 gemnum = nummax - nummin ;
  n1  = Math.floor(Math.random() * gemnum) + 1 ;
  chanchedPicNr = nummin + n1 ;
     viewPicArry(chanchedPicNr);
                                    } ;
 
 
//  thanx 4 watching ArrPicBron1.js

