<!--
var strThisLoc, intPos, intPathStart, intUrlLen, strPathFile;

  if (top.location == self.location)
  {
    //deze pagina staat alleen in een window, niet in de frameset
    //dat mag alleen als de gebruiker daar voor gekozen heeft,
    //niet als hij van een ander domein, bijv. van een search engine, komt.
    if (document.referrer.indexOf("vangorcum.nl") == -1)
    {
      //"vangorcum.nl" not found, redirect to frameset builder
      strThisLoc = "" + this.location;
      intPos = strThisLoc.indexOf("vangorcum.nl");
      intPathStart = intPos + 12;
      if (intPos == -1) { intPos = strThisLoc.indexOf("vgorcum.nl"); intPathStart = intPos + 10; }
      if (intPos != -1)
      {
        intUrlLen = strThisLoc.length;
        strPathFile = strThisLoc.substr(intPathStart, intUrlLen-intPathStart);

        if ( strPathFile.indexOf("/en/") != -1 )
          strRedirURL = "/en/f_build_1.asp?ro=" + strPathFile;
        else
          strRedirURL = "/nl/f_build_1.asp?ro=" + strPathFile;
        //alert("self.loc = " + self.location);
        //alert(strRedirURL);
        top.location = strRedirURL;
      }
    }
  }
//-->

