// MVVM, 56.06.2-65.37.5, JS/PostPage.js for mvvm.net
//-------------------------------------------------------------------------->

//==FLOATING MENUS==

function adjFontSize(Incr)
{
 var boxS;
 var messagS='Sorry, even if this facility works with your browser, '
  messagS += 'the font cannot be reduced any more. To read this page with '
  messagS += 'a bigger font, click on the right icon or TEXT LARGER. '
  messagS += '(The font will then be enlarged by 4pt each time, '
  messagS += 'provided that your browser allows the use of this facility.)'

 if (IE4UpT)
 {
  if ((FontSizI<3) && (Incr==-1)) alert(messagS);
   else
   {
    FontSizI += Incr*4;         // increments of 4 points
    if (FontSizI<2) FontSizI=2; // for 2 only structure of text visible 

    for (i=0; i<HTMLTags.length; i++)
    {
     boxS=document.all.tags(HTMLTags[i]);
     if (boxS!=null)
      {
       for (j=0; j<boxS.length; j++)
       boxS[j].style.fontSize=FontSizI;
      }
    }
   }
 }
}

function alertO()
{
 var infoS="As a rule the top part of this menu will be visible at the "+
   "top of the window or frame in which this document is shown. "+
   "If you move your cursor over AAN (on the left) or ON (on the right), "+
   "the bottom part with the list of special links will appear as well. "+
   "The menu, with or without the bottom part, will float down when you "+
   "scroll down, and up when you scroll up."+
   "\n\n"+
   "By moving your cursor over UIT or OFF, either at the top or at the "+
   "bottom of this menu, the whole bottom part with the list of links will "+
   "disappear again."+
   "\n\n"+
   "By clicking MOV at the bottom of this menu it will start "+
   "floating (again), if it is staying still at the top of this "+
   "document at the moment. "+
   "If is floating now, clicking MOV will make it stop floating.";

 alert(infoS);
}

function createMenusO(S)
{
 FontSizI=12;  // global var

 var frameS=name; // for a page in the LEFT frame the target of some links
                  // should not be the RIGHT frame but the LEFT one itself
 var JS_LeftS="javascript:Switch_Move('Left')";
 var JS_RightS="javascript:Switch_Move('Right')";

 HTMLTags=new Array(15);
 // do not make 'strong' resizable; use 'b' instead!
 // 'strong' does not make bold with CSS!
 // 'strong' is given 'span' function for fixed font size:
 // <strong id="..."> ... OR <strong class="..."> ... </strong>
 HTMLTags[0]="span";  // resizable unlike 'strong'
 HTMLTags[1]="font";
 HTMLTags[2]="small";
 HTMLTags[3]="big";
 HTMLTags[4]="th";
 HTMLTags[5]="td";
 HTMLTags[6]="h1";
 HTMLTags[7]="h2";
 HTMLTags[8]="h3";
 HTMLTags[9]="h4";
 HTMLTags[10]="h5";
 HTMLTags[11]="p";
 HTMLTags[12]="li";
 HTMLTags[13]="blockquote";
 HTMLTags[14]="div";

//  if ((S>"62000") && ((IE4UpT) || (Nav4UpT)))
  if ((S>"56134") && ((IE4UpT) || (Nav4UpT)))
  {

// table for MVVM Main Menu
LLinkTxt = new Array(14); LLinkURL = new Array(14);  // 14x PathS
LLinkTxt[0]= "<strong class='NewLinks'><i>IN DEZE TAAL</i></strong>";
 LLinkURL[0]="index.htm";
LLinkTxt[1]= "<i>Aantek.vd.M.</i>"; LLinkURL[1]="Nl/Aant/AvdM.htm";
LLinkTxt[2]= "<i>Gedichten</i>"; LLinkURL[2]="Nl/Poezie.htm";
LLinkTxt[3]= "<i>Hoofdpagina</i>"; LLinkURL[3]="Nl.htm";
LLinkTxt[4]= "<i>Kruiswoordr.</i>"; LLinkURL[4]="Game/Pzzl.htm";
LLinkTxt[5]= "<i>Stamboom</i>"; LLinkURL[5]="Nl/Stamboom.htm";
LLinkTxt[6]= "<strong class='NewLinks'>THIS LANGUAGE</strong>";
 LLinkURL[6]="index.htm";
LLinkTxt[7]= "Crosswords"; LLinkURL[7]="Game/Pzzl.htm";
LLinkTxt[8]= "Main docum."; LLinkURL[8]="En.htm";
LLinkTxt[9]="Poems"; LLinkURL[9]="En/Poetry.htm";
LLinkTxt[10]="Short stories"; LLinkURL[10]="En/ShSt.htm";
LLinkTxt[11]="Vocab of Allit."; LLinkURL[11]="Poet/VocAll.htm";
LLinkTxt[12]= "<i>FOTO'S</i>";
LLinkTxt[12]= "<strong class='NewLinks'>"+LLinkTxt[12]+"/PHOTOS</strong>";
 LLinkURL[12]="Art/Foto.htm";
LLinkTxt[13]= "<strong class='NewLinks'><i>SCHILD.</i>/PAINT.</strong>";
 LLinkURL[13]="Art/Paint/Rien.htm";

// table for TRINPsite Main Menu
RLinkTxt = new Array(14); RLinkURL = new Array(14);  // 14 x TRINPathS
RLinkTxt[0]= "<i>Truth</i>"; RLinkURL[0]="Valu/Tru.htm";
RLinkTxt[1]= "<i>Relevance</i>"; RLinkURL[1]="Valu/Rel.htm";
RLinkTxt[2]= "<i>Inclusiveness</i>"; RLinkURL[2]="Valu/Incl.htm";
RLinkTxt[3]= "<i>Neutrality</i>"; RLinkURL[3]="Valu/Neu.htm";
RLinkTxt[4]= "<i>Personhood</i>"; RLinkURL[4]="Valu/Pers.htm";
RLinkTxt[5]= "Denomin.prim."; RLinkURL[5]="MNI/BoF/6/F6431N2.HTM";
RLinkTxt[6]= "Index page"; RLinkURL[6]="index.htm";
RLinkTxt[7]= "Main docum."; RLinkURL[7]="MainDoc.htm";
RLinkTxt[8]= "Model of N-I."; RLinkURL[8]="MNI/MainDoc.htm";
RLinkTxt[9]= "Notes, papers"; RLinkURL[9]="Note.htm";
RLinkTxt[10]="Poems, songs"; RLinkURL[10]="Poet.htm";
RLinkTxt[11]="Quest.&answ."; RLinkURL[11]="Info/Quest.htm";
RLinkTxt[12]="Short stories"; RLinkURL[12]="ShSt.htm";
RLinkTxt[13]="Sound files"; RLinkURL[13]="Sound.htm";

document.write('<div  lang="EN-US">');  // needed for Chinese font with Ff

document.write('<div onClick="turnMenuL(true)" class="HeadBox" id="HeadLeft">');
 // 'onmouseover' does not work with Netscape here (only within link)
document.write(' <table border="0" cellspacing="0" cellpadding="0" width="100">');
document.write('  <tr>');
document.write('   <td>');
document.write('    <table width="100%" cellpadding="2" cellspacing="0"');
document.write('     border="1"><tr><td background="',PathS,'Graf/Bkgr/HalfTrsp.gif" align="center"><strong');
document.write('     class="MenuHead"><b>M&nbsp;V&nbsp;V&nbsp;M</b><br /></strong><strong');
document.write('     class="MenuSubH"><b>MENU</b></strong><strong class="MenuOnOff">&nbsp; <i><a href="javascript:turnMenuL(true)"');
document.write('     onmouseover="turnMenuL(true)" class="MenuOnOff">AAN/</a>UIT</i></strong></td>');
document.write('    </tr></table>');
document.write('   </td>');
document.write('  </tr>');
document.write(' </table>');
document.write('</div>');

document.write('<div class="MenuBox" id="MenuLeft">');
document.write(' <table border="0" cellspacing="0" cellpadding="0" width="100">');
document.write('  <tr onClick="turnMenuL(false)">');
document.write('   <td>');
document.write('    <table width="100%" cellpadding="2" cellspacing="0"');
document.write('     border="1"><tr><td background="',PathS,'Graf/Bkgr/HalfTrsp.gif" align="center"><strong');
document.write('     class="MenuHead"><b>M&nbsp;V&nbsp;V&nbsp;M</b><br /></strong><strong');
document.write('     class="MenuSubH"><b>MENU</b></strong><strong class="MenuOnOff">&nbsp; <i>AAN<a href="javascript:turnMenuL(false)"');
document.write('     onmouseover="turnMenuL(false)" class="MenuOnOff">/UIT</a></i></strong></td>');
document.write('    </tr></table>');
document.write('   </td></tr>');
document.write('  <tr>');
document.write('   <td>');
document.write('    <table width="100%" cellpadding="0" cellspacing="0"');
document.write('     border="1"><tr><td bgcolor="#008080" align="center">');
 //    <!--maximum 14 items, because of smallest screen with Netscape-->
document.write('    <table cellspacing="0" cellpadding="2" border="0"><tr><td ');
document.write('     align="center" class="FixedLink"><a');
document.write('     href="JavaScript:adjFontSize(-1);" target="',frameS,'"');
document.write('      class="FixedLink"><img src="',PathS,'Graf/Icon/ResizeL.gif" height="27" width="30"');
document.write('     alt="TEXT SMALLER / TEKST KLEINER" border="0"></a><a');
document.write('     href="JavaScript:adjFontSize(1);" target="',frameS,'"');
document.write('      class="FixedLink"><img src="',PathS,'Graf/Icon/ResizeR.gif" height="27" width="30"');
document.write('     alt="TEXT LARGER / TEKST GROTER" border="0"></a></td>');
document.write('    </tr></table>');
document.write('    <table width="89" cellpadding="2" cellspacing="0" border="0">');
document.write('     <tr><td bgcolor="#000000" class="MenuLink">');

for (var n=0; n<14; n++)
 {
document.write('<a href="',PathS,LLinkURL[n],'"');
document.write('class="MenuLink">',LLinkTxt[n],'</a><br />')
 }

document.write('    </td></tr></table>');
document.write('     <table cellspacing="0" cellpadding="3" border="0"><tr><td align="center"><strong class="FixedLink"><a ');
document.write('       href="javascript:void(0)" onmouseover="turnMenuL(false)" class="FixedLink">OFF</a>|<a ');
document.write('       href="javascript:alertO()" target="',frameS,'" class="FixedLink">INFO</a>|<a ');
document.write('       href=',JS_LeftS,' target="',frameS,'" class="FixedLink">MOV</a></strong></td>');
document.write('     </tr></table>');
document.write('    </td></tr></table>');
document.write('   </td>');
document.write('  </tr>');
document.write(' </table>');
document.write('</div>');

document.write('<div onClick="turnMenuR(true)" class="HeadBox" id="HeadRight">');
document.write(' <table border="0" cellspacing="0" cellpadding="0" width="100">');
document.write('  <tr>');
document.write('   <td>');
document.write('    <table width="100%" cellpadding="2" cellspacing="0"');
document.write('     border="1"><tr><td background="',PathS,'Graf/Bkgr/HalfTrsp.gif" align="center"><strong');
document.write('     class="MenuHead"><b>TRINPSITE</b><br /></strong><strong');
document.write('     class="MenuOnOff">OFF<a href="javascript:turnMenuR(true)" onmouseover="turnMenuR(true)" ');
document.write('     class="MenuOnOff">|ON</a> &nbsp;</strong><strong class="MenuSubH"><b>MENU</b></strong></td>');
document.write('    </tr></table>');
document.write('   </td>');
document.write('  </tr>');
document.write(' </table>');
document.write('</div>');

document.write('<div class="MenuBox" id="MenuRight">');
document.write(' <table border="0" cellspacing="0" cellpadding="0" width="100">');
document.write('  <tr onClick="turnMenuR(false)">');
document.write('   <td>');
document.write('    <table width="100%" cellpadding="2" cellspacing="0"');
document.write('     border="1"><tr><td background="',PathS,'Graf/Bkgr/HalfTrsp.gif" align="center"><strong');
document.write('     class="MenuHead"><b>TRINPSITE</b><br /></strong><strong');
document.write('     class="MenuOnOff"><a href="javascript:turnMenuR(true)" onmouseover="turnMenuR(false)" ');
document.write('     class="MenuOnOff">OFF|</a>ON &nbsp;</strong><strong class="MenuSubH"><b>MENU</b></strong></td>');
document.write('    </tr></table>');
document.write('   </td></tr>');
document.write('  <tr>');
document.write('   <td>');
document.write('    <table width="100%" cellpadding="0" cellspacing="0"');
document.write('     border="1"><tr><td bgcolor="#008080" align="center">');
document.write('    <table cellspacing="0" cellpadding="2" border="0"><tr><td ');
document.write('     align="center" class="FixedLink">');
document.write('     <a href="JavaScript:adjFontSize(1);" target="',frameS,'"');
document.write('      class="FixedLink">TEXT LARGER</a><br />');
document.write('     <a href="JavaScript:adjFontSize(-1);" target="',frameS,'"');
document.write('      class="FixedLink">smaller</a></td>');
document.write('    </tr></table>');

document.write('    <table width="89" cellpadding="2" cellspacing="0" border="0">');
document.write('     <tr><td bgcolor="#000000" class="MenuLink">');

for (var n=0; n<14; n++)
 {
document.write('<a href="',TRINPathS,RLinkURL[n],'"');
document.write('class="MenuLink">',RLinkTxt[n],'</a><br />')
 }

document.write('    </td></tr></table>');
document.write('     <table cellspacing="0" cellpadding="3" border="0"><tr><td align="center"><strong class="FixedLink"><a ');
document.write('       href=',JS_RightS,' target="',frameS,'" class="FixedLink">MOV</a>|<a ');
document.write('       href="javascript:alertO()" target="',frameS,'" class="FixedLink">INFO</a>|<a ');
document.write('       href="javascript:void(0)" onmouseover="turnMenuR(false)" class="FixedLink">OFF</a></strong></td>');
document.write('     </tr></table>');
document.write('    </td></tr></table>');
document.write('   </td>');
document.write('  </tr>');
document.write(' </table>');
document.write('</div>');

document.write('</div>');

  }
}

//==========================================================================

//==INLINE FRAMES==

function popUpInfO()
{
 var alertS="By clicking the top bar ADDRESS of the internal frame on the "+
  "right the page with that address will be shown in the frame (again). "+
  "You can also view that page in a separate, wider and resizable window "+
  "by clicking POP-UP at the bottom of the frame. "+
  "If you have followed a link in this frame to a new page, you will get "+
  "to see the original (not the new) page in the frame or pop-up "+
  "window."+
  "\n\n"+
  "Door op het ADRES boven het interne deelraam aan de rechterkant te "+
  "klikken wordt de pagina met dat adres (weer) in het deelraam getoond. "+
  "Je kunt die pagina ook in 'n apart, wijder en aan te passen venster "+
  "bekijken door onder het deelraam op BIJRAAM te klikken. "+
  "Als je in dit deelraam 'n verbinding hebt gevolgd naar 'n nieuwe "+
  "pagina, dan krijg je de oorspronkelijke (niet de nieuwe) pagina te "+
  "zien in het deelraam of bijraam.";

 alert(alertS)
}

function createNewVu(S0,S1,S2,S3)
{
 var cNV_S4="pen"; var cNV_S1="w"+"in"
 var cNV_S3=".o"; var cNV_S2="do"+"w";

 eval(S0+"="+cNV_S1+cNV_S2+cNV_S3+cNV_S4+"(S1,S2,S3)")
}

function popUpO(T,N)
{
 var popUpT=T; var iFrameN=N;
 var windoS="width=622,height=622,resizable=yes,scrollbars=yes,toolbar=yes";
 var NewFileS=withoutVarO(filesA[iFrameN-1]);
// var NewFileS=eval('window.'+"MVVM_IRight"+iFrameN+'.location.href');
// property 'location.href' causes denial of access error on-line!

 if (popUpT)
   {
    NewFileS+="#iFrame";  // disables addresses with genuine anchors!
    if (iFramePopUpT && iFramePopUp.closed) iFramePopUpT=false;
    if (iFramePopUpT)
      { iFramePopUp.location.replace(NewFileS); iFramePopUp.focus() }
     else 
      { createNewVu("iFramePopUp",NewFileS,"TITLE",windoS);
        iFramePopUpT=true }
   }
  else
   { if (iFrameN==1) window.MVVM_IRight1.location.href=PathS+"index.htm";
      else 
eval('window.'+"MVVM_IRight"+iFrameN+'.location.href="'+NewFileS+'"');
   }
}

function getIFramO(N1,N2,S)
{
 var iFrameN=N1;
 var heightN=N2;
 var fileS=S;
 var short_FileS=withoutVarO(S);  // for address at top
 var srcS=fileS;  // for iframe contents  // NOT here at TRINPsite
 var widthN=displayWidN+20  // 20px extra for scrolling
 var pixPerLetN=7;  // 350/50: 50 letters for 350 pixels in Ff
 var styleDefS='#IFrameBox'+iFrameN+
  ' { position:absolute; left:'+widthN+'px; top:0px; z-index:1 }';
//  ' { position:absolute; left:632px; '+
 var iFrameTableS="";
 var C="?";  // if the first var in search string 
 var N=0;

 if (Nav4UpT) widthN=document.getElementById("IFramesCol").clientWidth-4;
  else widthN=document.all.IFramesCol.offsetWidth; 

 if (fileS.substring(4,8)==":///") fileS=fileS.substring(8);
 if (fileS.substring(4,7)=="://") fileS=fileS.substring(7);
 if (fileS.indexOf('?')>0) C="&";  // not the first var in search string
 srcS=srcS+C+"inIFrameT=true";  // NOT at TRINPsite
 if (IE4UpT) pixPerLetN=8;  // with 7 some iframes will stick out 
 N=Math.floor(widthN/pixPerLetN);
 if (short_FileS.length>N)
  short_FileS='...'+short_FileS.substring(short_FileS.length-N+3);

 iFrameTableS=
  '<table width="'+widthN+'" cellpadding="0" cellspacing="0" border="0">'+
  '<tr><td height="15"> </td></tr>'+
  '<tr><td height="15" bgcolor="#606060" align="center" class="PopUpBar">'+
  '<font size="-1" color="#000000" face="Courier">'+
  '<a href="JavaScript:popUpO(false,'+iFrameN+')" class="FrameBarTxt" '+
  'style="background:none">'+
  short_FileS+'</a></font></td></tr>'+
  '<tr><td valign="top" align="left"><iframe name="MVVM_IRight'+iFrameN+
  '" width="'+widthN+'" frameborder="1" '+
  'src="'+srcS+'" '+
//  'src="'+PathS+fileS+C+'inIFrameT=true'+'" '+  // at TRINPsite
    // do not use fileS with PathS (and http://) as part of it!
  'height="'+heightN+'" allowtransparency="true">'+
  'This place reserved for general information, a second display of '+
  'the clues and any page linked to from there.'+
  '</iframe></td></tr>'+
  '<tr><td height="15" bgcolor="#606060" align="center" class="PopUpBar">'+
  '<font size="-1" color="#000000" face="Courier">'+
  '<strong class="FrameBarTxt">'+iFrameN+' | </strong>'+
  '<a href="JavaScript:popUpInfO()" class="FrameBarTxt" '+
  'style="background:none">INFO</a><strong class="FrameBarTxt"> | </strong><a '+
  'href="JavaScript:popUpO(true,'+iFrameN+')" class="FrameBarTxt" '+
  'style="background:none">POP-UP/<i>BIJRAAM</i></a></font></td></tr>'+
  '<tr><td height="15"> </td></tr>'+  // 30
  '</table>';

document.write('<style>'+styleDefS+'</style>');
document.write('<div id="IFrameBox'+iFrameN+'">');
document.write(iFrameTableS);
document.write('</div>');
}

function createUserPrefO(S)  
{
 var verS=S;  // this function only called for S>"65345" (from F7)
 var URL_S=document.URL;
 var searchS=document.location.search;
 var hypoReS=""+hypoResolutioN;
 var alw_excepT = ( URL_S.indexOf('indLeft.htm')+
                    URL_S.indexOf('VocALeft.htm')+2>0 );
 var I=-1;
 var JS_movS="javascript:Switch_Move('Left');Switch_Move('Right')";

 var JS_alert_readS="javascript:alert('"+
  "If and when you want the document on the left to look as simple "+
  "as possible, you may opt for a heart-of-the-matter display by "+
  "clicking one of the four arrows in the corners of that document. "+
  "To return from such a heart display to the present full-body "+
  "display click again on one of the four arrows in the corners. "+
  "(To go from here to the simplest display you may also click the "+
  "reading link on the right.)')"; 
 var JS_alert_printS="javascript:alert('"+
  "The document on the left will not only move to the right on the "+
  "screen but also on paper as the width of this window increases. "+
  "As a result you may only get to see the left side of that document "+
  "on paper when you try to print it out. "+
  "In order to see the document in its entirety and centered on paper "+
  "when printing it out click the printing link on the right. "+
  "This will not start the actual printing process but will only adjust "+
  "the display so that you will not have to do the centering yourself. "+
  "(You can manually adjust the position of the document on paper by "+
  "changing the hypoReS value at the end of the URI or by changing, "+
  "usually decreasing, the width of the display window.)')"; 
 var JS_alert_movS="javascript:alert('"+
  "While you are scrolling up and down, the MVVM and TRINPsite menus on "+
  "the far left and right of the window will stay with you by moving up "+
  "and down as well. "+
  "To stop or (re)start the vertical movement of these menus click: "+
  "movement. "+
  "(You can also use the MOV button in these menus to stop or restart "+
  "their up and down movements separately.)')";

 if (searchS.indexOf("inIFrameT=true")>0) inIFrameT=true;
 I=URL_S.indexOf('iFrameT=true');
 if (I>0) URL_S=URL_S.substring(0,I-1)+URL_S.substring(I+12);
 I=URL_S.indexOf('hypoReS=');
 if (I>0) URL_S=URL_S.substring(0,I-1)+URL_S.substring(I+12);

document.write('<table width="100%" bgcolor="#e0e0e0" cellspacing="0"' +
 'cellpadding="0" border="1" id="UserPrefTbl"><tr><td align="left">');
document.write('<table cellspacing="0" cellpadding="2" border="0"><tr>');
document.write('<td align="left" valign="middle"><font size="-1" '+
 'color="#000000" class="DisplOpt">DISPLAY<br />OPTIONS</font></td>');
document.write('<td width="4"> </td>');
document.write('<td align="left">');
document.write('<font size="-1" color="#000000" class="DisplOpt">');
 if (!puzzlT)
   {
document.write('<a href="',JS_alert_readS,'" class="DisplOpt">Info</a>: ');
    URL_S=withoutVarO(URL_S)+"?hearT=true";
document.write('<a href="',URL_S,'" class="DisplOpt">reading</a> document on the&nbsp;left<br />');
   }
  else  // for puzzles no option without iframes
   {
document.write('<a href="',JS_alert_movS,'" class="DisplOpt">Info</a>: ');
document.write('stop/start <a href="',JS_movS,'" class="DisplOpt">movement</a> of menus<br />');
   }
document.write('<a href="',JS_alert_printS,'" class="DisplOpt">Info</a>: ');  
 URL_S=withoutVarO(URL_S)+"?prinT=true&hypoReS=0"+printWidN;
document.write('<a href="',URL_S,'" class="DisplOpt">printing</a> document on the&nbsp;left');

document.write('</font>');
document.write('</td>');
document.write('</tr></table>');
document.write('</td></tr></table>');
}

function moveToIFramesColLeftO(S)
{
 var objectS=S;
 var MainCol_widN=616;
   // 600(minimum MainCol width)+16(to leave edge of film image free)

 if (Nav5UpT)
   { MainCol_widN=document.getElementById("MainCol").clientWidth+16;
eval("document.getElementById('"+objectS+"').style.left="+'"'+parseInt(MainCol_widN)+'px"')
   }
  else
   { MainCol_widN=document.all.MainCol.offsetWidth+16;
eval("document.all."+objectS+".style.pixelLeft="+parseInt(MainCol_widN))
   }
}

function createIFramesO(S)
{
 var verS=S;  // version date
 var rightBkgrS=PathS+"Graf/Bkgr/Film";
 var frameContentS=PathS+"index.htm";
 var bodyHeightN=0;
 var frameHeightN=600;
 var frameN=1;
 var maxFrameN=21;  // IE may accept no more than 28 frames on the right
                    // Ff may not execute contents in second-last frame
                    // use MaxFrameN=21 in practice
 var initStatuS=window.defaultStatus; var statuS="Loading ...";
 var topValueS="0";
 var nameS="MVVM_IRight1";
 var URL_S=document.URL;
 var N=0;
 var heartS="";
 var iFramesColWidN=hypoResolutioN-displayWidN-52;
   // display+52=16(film edge)+display+20(for scrolling)+16(film edge) 
 var restColWidN=0;
 iFramePopUpT=false;  // global var

 if (iFramesColWidN<600) heartS="?hearT=true";
   // in a narrow iframe only the heart elements shown (see Sound.htm)

 if (PrePageT)
 {  // for pages with one or more internal frames on the right
  document.write('</td>');  // script started in PrePage

  if (iFrameT)
  {

document.write('<td width="16" background="'+rightBkgrS+'L.gif">');
document.write('<table width="16" cellspacing="0" cellpadding="0"><tr>'+
 '<td> </td></tr></table>');
  // fake table (or other object) needed to secure the width of this cell
document.write('</td>');
document.write('<td width="',iFramesColWidN,'" '+
 'background="'+rightBkgrS+'M.gif" align="center" valign="top" '+
 'id="IFramesCol">');

   if (verS>"65345") createUserPrefO(verS);  // verS>"57451" at TRINPsite

document.write('<table width="',iFramesColWidN,'"><tr>'+
 '<td> </td></tr></table>');
   // table only used to get the appropriate (variable!) width of this column, because
   // both IE and Ff need an object of width iFramesColWidN in a cell before taking on that width
document.write('</td>');
document.write('<td width="16" background="'+rightBkgrS+'R.gif">');
document.write('<table width="16" cellspacing="0" cellpadding="0"><tr>'+
 '<td> </td></tr></table>');
document.write('</td>');

  }  // end 'if (iFrameT)'

  if (hypoResolutioN<windoWidthN)
  { restColWidN=windoWidthN-hypoResolutioN;
    if (prinT) rightBkgrS="#ffffff"; else rightBkgrS="#000000";
      // both IE and Ff need a width for this cell
document.write('<td width="',restColWidN,'" bgcolor="',rightBkgrS,'"> </td>');
  }

document.write('</tr></table>');

  if (iFrameT)  // continued
  {
   filesA=new Array(maxFrameN+1);  // 1 more for URL_S = frameContentS 

   for (N=0; N<URL_S.length; N++)
    { if (URL_S.charAt(N)=="\\")
       URL_S=URL_S.substring(0,N)+"/"+URL_S.substring(N+1) }

   filesA[0]=PathS+'index.htm';
   if ((fileC=='3') || (fileC=='8')) filesA[1]=PathS+'Nl.htm';
    else filesA[1]=PathS+'En.htm';  // for frame #2, etc.
   filesA[2]=PathS+'Sound.htm'+heartS;  // F7 with hearT variable
   filesA[3]=TRINPathS+'MainDoc.htm';
   filesA[4]=PathS+'En/Poetry/MyPussy.HTM';
   filesA[5]=PathS+'Art/Paint/Sonj/VrkNrd.HTM';
   filesA[6]=PathS+'Game/Pzzl/JuMi001.HTM';
   filesA[7]=PathS+'Art/Foto.htm';
   filesA[8]=TRINPathS+'MNI/MainDoc.htm';
   filesA[9]=PathS+'Info/VincentVanMechelen.HTM'+heartS;
   filesA[10]=PathS+'Art/Paint/Rien/Geslui.HTM';
   if ((fileC=='1') || (fileC=='6'))
     filesA[11]=PathS+'Tong/ThL/Time/Date.HTM'+heartS;
    else filesA[11]=PathS+'Tong/DzT/Tijd/Datum.HTM'+heartS;
   filesA[12]=PathS+'Nl/Stamboom.htm';
   filesA[13]=TRINPathS+'MNI/BoF/4/1/1.HTM';
   filesA[14]=PathS+'Tong/ThL/Poems/Elephant.HTM';  // from 19 Jan 2009
   filesA[15]=PathS+'Nl/Proza/Hutspot.HTM';
//   filesA[15]=PathS+'En/ShSt/Hotch/HPotch01.HTM';
   filesA[16]=PathS+'Nl/Zaken/Euro/Start.HTM';
   filesA[17]=PathS+'Game/Pzzl/CrssW004.HTM';
   filesA[18]=TRINPathS+'Tong/ZzY/Shige/LiuCheng.HTM';  // from 20 Nov 2009
   if ((fileC=='3') || (fileC=='8')) filesA[19]=PathS+'En.htm';
    else filesA[19]=PathS+'Nl.htm';
   if ((fileC=='1') || (fileC=='6'))
     filesA[20]=PathS+'Tong/ThL/Poems/ThisLang.HTM';
    else 
     { if ((fileC=='2') || (fileC=='7'))
         filesA[20]=PathS+'Tong/ZzY/Shige/ZzYuyan.HTM';
        else filesA[20]=PathS+'Tong/DzT/Poezie/DezeTaal.HTM'
     }  // 21 frames needed for Euro/Start.HTM with Ff default font

   if (Nav4UpT)
     { topS = ".top="; docS = "document."; stlS = "";
       if (Nav5UpT)  // for Netscape 6 and 7
        { docS = "document.getElementById('"; stlS = "').style" }
     }
    else
     { topS=".pixelTop="; docS="document.all."; stlS=".style" }

   bodyHeightN=document.body.offsetHeight-63;
     // first 63 pixels not used (same as for table on the left)
   if ((bodyHeightN/frameHeightN)<maxFrameN+1)
    maxFrameN=Math.floor(bodyHeightN/frameHeightN);
   if ((puzzlT) || (maxFrameN==0)) maxFrameN=1;  // only 1 frame in total
   if (maxFrameN*frameHeightN<bodyHeightN)
     frameHeightN=Math.floor(bodyHeightN/maxFrameN);
    else { if (frameHeightN>bodyHeightN)
           frameHeightN=bodyHeightN }  // only 1 frame, less than 600 high 

   while (frameN<maxFrameN+1)
   {
    frameContentS=filesA[frameN-1];
//    if ((frameContentS.indexOf(PathS+'index.htm')>-1)  // indLeft.htm?
//        && (frameN==maxFrameN-1))
//     { if ((fileC=='3') || (fileC=='8')) frameContentS=PathS+'En.htm';
//        else frameContentS=PathS+"Nl.htm" }
    if (withoutVarO(URL_S)==withoutVarO(frameContentS))
     frameContentS=filesA[20];
       // so that page in window is always different from page in iframe  
    statuS="Please wait. Creating internal frame "+frameN+".";
    window.defaultStatus=statuS;
    getIFramO(frameN,frameHeightN-64,frameContentS);  // -60-4 for Ff
    topValueS=63+(frameN-1)*frameHeightN;
    if (Nav4UpT) topValueS='"'+topValueS+'px"';
    eval(docS+"IFrameBox"+frameN+stlS+topS+topValueS);
    moveToIFramesColLeftO("IFrameBox"+frameN);
    frameN++
   }  // end 'while'

   window.defaultStatus=initStatuS;
  }  // end 'if (iFrameT)'
 }  // end 'if (PrePageT)'
}

//==========================================================================

function Write_PostPage(S)
{
 var verS=S;

 if (verS<"65346") { hearT=false; prinT=false }
   // heart and print options introduced with F7 format ("65346")

 // createMenusO before createIFramesO, otherwise puzzle not located in IE!!!
 if ((verS>"56156") && !prinT) createMenusO(S);  // >"56156" at TRINPsite
 createIFramesO(S);

// if (self.name.indexOf("MVVM_IRight")>-1) window.scroll(134,0);
//  else {
 if (puzzlT) window.scroll(0,223)  // direct showing of puzzle proper
//       }
}

PostPageT=true  // checks whether contents have been transferred
                // (on-line) and scripts executed

//Copyright 56-65 aSWW, M.Vincent van Mechelen, Amsterdam, Netherlands