//MVVM, 56.06.2-65.36.4, JS/PrePage.js at mvvm.net/
//-------------------------------------------------------------------------->

function Write_PrePage(S)  // versions such as "56073" have no S
{
 var verS=S;
 var refS=""; var refS4="er"+"rer"; var refS1="do";
 var refS3="t."+"re"+"f"; var refS2="cu"+"m"+"en";
 eval("refS="+refS1+refS2+refS3+refS4+".toLowerCase()");
   // refS empty when off-line
 var url_S=document.URL.toLowerCase();
 var charN=0;
 var widN=600;
 var MainCol_widN=600;

//==from advanced TRINPsite script with a hypothetical resolution==
 if (verS==undefined) verS="00000";  // for function without S
/*
 if (verS<"56454")
   { 
    if (IE4UpT) widN=document.body.clientWidth;  // -17?
     else widN=window.innerWidth-20;
    if (widN<600) widN=600;
    if (widN>1003) widN=1003;
    hypoResolutioN=widN;
    iFrameT=false
   }  // PrePage.js used in versions "56073" and "56116"
      // without Bodyobjs or BodyFnct.js
*/
//==end TRINPsite script (continued with ELSE)==

 while (charN < url_S.length)
 { if (url_S.charAt(charN)=='\\')
    url_S=url_S.substring(0,charN)+'/'+url_S.substring(charN+1);
   charN++
 }

 determine_DimensiO();
 if (displayWidN>hypoResolutioN) displayWidN=hypoResolutioN;
 if (windoWidthN>hypoResolutioN) widN=windoWidthN;
  else widN=hypoResolutioN;  // with & without black column on the right 

 if (hypoResolutioN<901) iFrameT=false;
//    if (hypoResolutioN-printWidN<261) iFrameT=false;
   // 261=16[edge]+(209[min iframe width]+20[scroll bar])+16[edge]
   // 640[min printWidN]+16+209[min]+20+16=901 > 900[max displayWidN] 

 if (url_S.indexOf('/poet/vocal')>-1) iFrameT=false;
   // no iframe(s) for Voc of Allit pages
 if (url_S.indexOf('/game/pzzl/')>-1) puzzlT=true;
 if ((puzzlT) || (url_S.indexOf('retecool')>0)) // iFrameT=true;
    // always iframes for crossword puzzles and /Nl/Zaken/Retecool/ pages
  { iFrameT=true;
    if (hypoResolutioN<1002) hypoResolutioN=1002;
      // min 600+16+min 350 for displays over iframe +20+16=min 1002
    if (hypoResolutioN<displayWidN+402) displayWidN=hypoResolutioN-402
  }

 if (url_S.indexOf('/art/foto/')>-1) iFrameT=false; 
   // these pages need room (max 1030 pixels) for expansion 
 if (url_S.indexOf('/newyearc.htm')>-1) iFrameT=false; 
 if (url_S.indexOf('/henianp.htm')>-1) iFrameT=false; 
 if (url_S.indexOf('/nieuwjrk.htm')>-1) iFrameT=false;
   // these cards need 976-1024 pixels for expansion 

 if (iFrameT) MainCol_widN=displayWidN;
  else MainCol_widN=hypoResolutioN;
 document.write('<table width="',widN,'" cellpadding="0" cellspacing="0" '+
                                        'border="0" id="ResoluTbl"><tr>');
 document.write('<td width="',MainCol_widN,'" align="center" valign="top" '+
                                        'id="MainCol">');
   // rest of this table in PostPage.js
}

PrePageT=true  // checks whether contents have been transferred
               // (on-line) and scripts executed

//Copyright 56-65 aSWW, M.Vincent van Mechelen, Amsterdam, NL