function Layout (code)
{
  switch (code)
  {
    case 1:
      window.defaultStatus=WndDefStatIndex;
      break;
    case 2:
      window.defaultStatus=WndDefStatNu;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      NuSelectPict (randS, randPh, false);
      break;
    case 4:
      window.defaultStatus=WndDefStatPortrait;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      PortraitSelectPict (randS, randPh, false);
      break;
    case 5:
      window.defaultStatus=WndDefStatGenre;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      GenreSelectPict (randS, randPh, false);
      break;
    case 6:
      window.defaultStatus=WndDefStatNature;
      break;
    case 7:
      window.defaultStatus=WndDefStatAnimals;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      AnimalsSelectPict (randS, randPh, false);
      break;
    case 8:
      window.defaultStatus=WndDefStatNtrFlor;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          FlorSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 36.999) + 1;
          FlorSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 36.999) + 1;
        FlorSelectPict (randPh, false);
      }
      break;
    case 9:
      window.defaultStatus=WndDefStatMuseum;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      MuseumSelectPict (randS, randPh, false);
      break;
    case 10:
      window.defaultStatus=WndDefStatCity;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      CitySelectPict (randS, randPh, false);
      break;
    case 11:
      window.defaultStatus=WndDefStatTravels;
      break;
    case 12:
      window.defaultStatus=WndDefStatOthers;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      OthersSelectPict (randS, randPh, false);
      break;
    case 13:
      window.defaultStatus=WndDefStatReport;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      ReportSelectPict (randS, randPh, false);
      break;
    case 3:
      window.defaultStatus=WndDefStatLargePh;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      LargePhSelectPict (randS, randPh, false);
      break;
    case 58:
      window.defaultStatus=WndDefStatCalendars;
      var pSer="VSer"+randS;
      document.getElementById (pSer).style.display="block";
      CalendarsSelectPict (randS, randPh, false);
      break;
    case 14:
      window.defaultStatus=WndDefStatLiterat;
      break;
    case 15:
      window.defaultStatus=WndDefStatLiteratTutchev;
      break;
    case 16:
      window.defaultStatus=WndDefStatExcursions;
      break;
    case 17:
      window.defaultStatus=WndDefStatDifferBryansk;
      if (navigator.userAgent.indexOf ("Opera") != -1)
        document.getElementById ("MapBr").style.top="1771px";
      else if (navigator.userAgent.indexOf ("Safari") != -1)
        document.getElementById ("MapBr").style.top="1773px";
      else if (navigator.appName=="Netscape")
        document.getElementById ("MapBr").style.top="1773px";
      else
        document.getElementById ("MapBr").style.top="1771px";
      document.getElementById ("MarkMapBr1").style.top="414px";
      document.getElementById ("MarkMapBr6").style.top="626px";
      document.getElementById ("MarkMapBr9").style.top="619px";
      document.getElementById ("MarkMapBr10").style.top="498px";
      document.getElementById ("MarkMapBr12").style.top="585px";
      document.getElementById ("MarkMapBr15").style.top="618px";
      document.getElementById ("MarkMapBr16").style.top="597px";
      document.getElementById ("MarkMapBr19").style.top="622px";
      document.getElementById ("MarkMapBr29").style.top="627px";
      document.getElementById ("MarkMapBr30").style.top="621px";
      document.getElementById ("MarkMapBr31").style.top="230px";
      document.getElementById ("MarkMapBr32").style.top="246px";
      document.getElementById ("MarkMapBr33").style.top="250px";
      document.getElementById ("MarkMapBr34").style.top="610px";
      document.getElementById ("MarkMapBr36").style.top="612px";
      document.getElementById ("MarkMapBr37").style.top="273px";
      document.getElementById ("MarkMapBr38").style.top="289px";
      document.getElementById ("MarkMapBr40").style.top="307px";
      document.getElementById ("MarkMapBr41").style.top="214px";
      document.getElementById ("MarkMapBr42").style.top="224px";
      document.getElementById ("MarkMapBr44").style.top="212px";
      document.getElementById ("MarkMapBr45").style.top="246px";
      document.getElementById ("MarkMapBr46").style.top="281px";
      document.getElementById ("MarkMapBr47").style.top="247px";
      document.getElementById ("MarkMapBr48").style.top="247px";
      document.getElementById ("MarkMapBr49").style.top="254px";
      document.getElementById ("MarkMapBr50").style.top="261px";
      BryanskSelectPict (randPh, false);
      break;
    case 18:
      window.defaultStatus=WndDefStatNotes;
      break;
    case 62:
      window.defaultStatus=WndDefStatNotesNudeAsArt;
      break;
    case 63:
      window.defaultStatus=WndDefStatNotesNorwayTrag;
      break;
    case 47:
      window.defaultStatus=WndDefStatRus2011Elections;
      break;
    case 19:
      window.defaultStatus=WndDefStatInfoSite;
      break;
    case 20:
      window.defaultStatus=WndDefStatInfoAuth;
      break;
    case 21:
      window.defaultStatus=WndDefStatLiteratKnives1;
      break;
    case 22:
      window.defaultStatus=WndDefStatLiteratKnives2;
      break;
    case 23:
      window.defaultStatus=WndDefStatLiteratKnives3;
      break;
    case 24:
      window.defaultStatus=WndDefStatPhilosAristot;
      break;
    case 25:
      window.defaultStatus=WndDefStatPhilosLocke;
      break;
    case 26:
      window.defaultStatus=WndDefStatLogicSillog;
      break;
    case 27:
      window.defaultStatus=WndDefStatLiteratBulgakov;
      break;
    case 28:
      window.defaultStatus=WndDefStatLinks;
      break;
    case 29:
      window.defaultStatus=WndDefStatSPb;
      SPbSelectPict (randPh, false);
      break;
    case 30:
      window.defaultStatus=WndDefStatOvstug;
      OvstugSelectPict (randPh, false);
      break;
    case 31:
      window.defaultStatus=WndDefStatKlintsy;
      KlintsySelectPict (randPh, false);
      break;
    case 32:
      window.defaultStatus=WndDefStatPhilLog;
      break;
    case 33:
      window.defaultStatus=WndDefStatAmFight;
      break;
    case 34:
      window.defaultStatus=WndDefStatPartners;
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("ExpandCatalogNude");
        if (cookiePhNum)
        {
          DeleteCookie ("ExpandCatalogNude");
          ExpandLinkGroup (2);
          location.href="#Extended";
        }
      }
      break;
    case 35:
      window.defaultStatus=WndDefStatSigulda;
      SiguldaSelectPict (randPh, false);
      break;
    case 36:
      window.defaultStatus=WndDefStatTrBryansk;
      if (navigator.userAgent.indexOf ("Opera") != -1)
        document.getElementById ("MapBr").style.top="4538px";
      else if (navigator.userAgent.indexOf ("Safari") != -1)
        document.getElementById ("MapBr").style.top="4542px";
      else if (navigator.appName=="Netscape")
        document.getElementById ("MapBr").style.top="4542px";
      else
        document.getElementById ("MapBr").style.top="4538px";
      document.getElementById ("MarkMapBr1").style.top="414px";
      document.getElementById ("MarkMapBr6").style.top="626px";
      document.getElementById ("MarkMapBr9").style.top="619px";
      document.getElementById ("MarkMapBr10").style.top="498px";
      document.getElementById ("MarkMapBr12").style.top="585px";
      document.getElementById ("MarkMapBr15").style.top="618px";
      document.getElementById ("MarkMapBr16").style.top="597px";
      document.getElementById ("MarkMapBr19").style.top="622px";
      document.getElementById ("MarkMapBr29").style.top="627px";
      document.getElementById ("MarkMapBr30").style.top="621px";
      document.getElementById ("MarkMapBr31").style.top="230px";
      document.getElementById ("MarkMapBr32").style.top="246px";
      document.getElementById ("MarkMapBr33").style.top="250px";
      document.getElementById ("MarkMapBr34").style.top="610px";
      document.getElementById ("MarkMapBr36").style.top="612px";
      document.getElementById ("MarkMapBr37").style.top="273px";
      document.getElementById ("MarkMapBr38").style.top="289px";
      document.getElementById ("MarkMapBr40").style.top="307px";
      document.getElementById ("MarkMapBr41").style.top="214px";
      document.getElementById ("MarkMapBr42").style.top="224px";
      document.getElementById ("MarkMapBr44").style.top="212px";
      document.getElementById ("MarkMapBr45").style.top="246px";
      document.getElementById ("MarkMapBr46").style.top="281px";
      document.getElementById ("MarkMapBr47").style.top="247px";
      document.getElementById ("MarkMapBr48").style.top="247px";
      document.getElementById ("MarkMapBr49").style.top="254px";
      document.getElementById ("MarkMapBr50").style.top="261px";
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          BryanskSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 49.999) + 1;
          BryanskSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 49.999) + 1;
        BryanskSelectPict (randPh, false);
      }
      break;
    case 37:
      window.defaultStatus=WndDefStatTrRailways;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          RailwaysSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 3.999) + 1;
          RailwaysSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 3.999) + 1;
        RailwaysSelectPict (randPh, false);
      }
      break;
    case 38:
      window.defaultStatus=WndDefStatTrRoads;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          RoadsSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 14.999) + 1;
          RoadsSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 14.999) + 1;
        RoadsSelectPict (randPh, false);
      }
      break;
    case 39:
      window.defaultStatus=WndDefStatTrOvstug;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          OvstugSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 60.999) + 1;
          OvstugSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 60.999) + 1;
        OvstugSelectPict (randPh, false);
      }
      break;
    case 40:
      window.defaultStatus=WndDefStatTr480km;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          Km480SelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 13.999) + 1;
          Km480SelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 13.999) + 1;
        Km480SelectPict (randPh, false);
      }
      break;
    case 41:
      window.defaultStatus=WndDefStatTrKlintsy;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          KlintsySelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 20.999) + 1;
          KlintsySelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 20.999) + 1;
        KlintsySelectPict (randPh, false);
      }
      break;
    case 42:
      window.defaultStatus=WndDefStatTrSigulda;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          SiguldaSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 50.999) + 1;
          SiguldaSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 50.999) + 1;
        SiguldaSelectPict (randPh, false);
      }
      break;
    case 43:
      window.defaultStatus=WndDefStatTrBaltica;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          BalticaSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 6.999) + 1;
          BalticaSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 6.999) + 1;
        BalticaSelectPict (randPh, false);
      }
      break;
    case 44:
      window.defaultStatus=WndDefStatTrSUral;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoTravel");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoTravel");
          SUralSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 28.999) + 1;
          SUralSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 28.999) + 1;
        SUralSelectPict (randPh, false);
      }
      break;
    case 45:
      window.defaultStatus=WndDefStatNtrMonths;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          MonthsSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 11.999) + 1;
          MonthsSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 11.999) + 1;
        MonthsSelectPict (randPh, false);
      }
      break;
    case 46:
      window.defaultStatus=WndDefStatNtrMidZRus;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          MidZRusSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 84.999) + 1;
          MidZRusSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 84.999) + 1;
        MidZRusSelectPict (randPh, false);
      }
      break;
    case 48:
      window.defaultStatus=WndDefStatNtrMush;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          MushSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 1.999) + 1;
          MushSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 1.999) + 1;
        MushSelectPict (randPh, false);
      }
      break;
    case 49:
      window.defaultStatus=WndDefStatNtrLepid;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          LepidSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 3.999) + 1;
          LepidSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 3.999) + 1;
        LepidSelectPict (randPh, false);
      }
      break;
    case 50:
      window.defaultStatus=WndDefStatNtrLtAutumn;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          LtAutumnSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 8.999) + 1;
          LtAutumnSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 8.999) + 1;
        LtAutumnSelectPict (randPh, false);
      }
      break;
    case 51:
      window.defaultStatus=WndDefStatNtrSnow;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          SnowSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 26.999) + 1;
          SnowSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 26.999) + 1;
        SnowSelectPict (randPh, false);
      }
      break;
    case 52:
      window.defaultStatus=WndDefStatNtrFight;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          FightSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 4.999) + 1;
          FightSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 4.999) + 1;
        FightSelectPict (randPh, false);
      }
      break;
    case 53:
      window.defaultStatus=WndDefStatNtrFantast;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          FantastSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 1.999) + 1;
          FantastSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 1.999) + 1;
        FantastSelectPict (randPh, false);
      }
      break;
    case 54:
      window.defaultStatus=WndDefStatNtrPhPaint;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          PhPaintSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 2.999) + 1;
          PhPaintSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 2.999) + 1;
        PhPaintSelectPict (randPh, false);
      }
      break;
    case 55:
      window.defaultStatus=WndDefStatNtrBWLands;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          BWLandsSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 51.999) + 1;
          BWLandsSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 51.999) + 1;
        BWLandsSelectPict (randPh, false);
      }
      break;
    case 56:
      window.defaultStatus=WndDefStatNtrKuskovo;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          KuskovoSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 1.999) + 1;
          KuskovoSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 1.999) + 1;
        KuskovoSelectPict (randPh, false);
      }
      break;
    case 57:
      window.defaultStatus=WndDefStatNtrRoads;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          RoadsSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 0.999) + 1;
          RoadsSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 0.999) + 1;
        RoadsSelectPict (randPh, false);
      }
      break;
    case 59:
      window.defaultStatus=WndDefStatNtrSigulda;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          SiguldaSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 19.999) + 1;
          SiguldaSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 19.999) + 1;
        SiguldaSelectPict (randPh, false);
      }
      break;
    case 60:
      window.defaultStatus=WndDefStatNtrBaltica;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          BalticaSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 2.999) + 1;
          BalticaSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 2.999) + 1;
        BalticaSelectPict (randPh, false);
      }
      break;
    case 61:
      window.defaultStatus=WndDefStatNtrSUral;
      document.getElementById ("VSer1").style.display="block";
      if (navigator.cookieEnabled)
      {
        var cookiePhNum=GetCookie ("NumPhotoNature");
        if (cookiePhNum)
        {
          randPh=parseInt (cookiePhNum);
          DeleteCookie ("NumPhotoNature");
          SUralSelectPict (randPh, false);
          location.href="#VPict";
        }
        else
        {
          randPh=Math.floor (Math.random () * 27.999) + 1;
          SUralSelectPict (randPh, false);
        }
      }
      else
      {
        randPh=Math.floor (Math.random () * 27.999) + 1;
        SUralSelectPict (randPh, false);
      }
      break;
    default:
      break;
  }
}

function menuGrPhOver ()
{
  document.getElementById ("menuPh").className="MMenuHL";
  document.getElementById ("menuDDPh").style.visibility="visible";
}

function menuGrPhOut ()
{
  document.getElementById ("menuPh").className="MMenu";
  document.getElementById ("menuDDPh").style.visibility="hidden";
}

function menuGrLitOver ()
{
  document.getElementById ("menuLit").className="MMenuHL";
  document.getElementById ("menuDDLit").style.visibility="visible";
}

function menuGrLitOut ()
{
  document.getElementById ("menuLit").className="MMenu";
  document.getElementById ("menuDDLit").style.visibility="hidden";
}

function menuGrDiffOver ()
{
  document.getElementById ("menuDiff").className="MMenuHL";
  document.getElementById ("menuDDDiff").style.visibility="visible";
}

function menuGrDiffOut ()
{
  document.getElementById ("menuDiff").className="MMenu";
  document.getElementById ("menuDDDiff").style.visibility="hidden";
}

function menuGrInfOver ()
{
  document.getElementById ("menuInf").className="MMenuHL";
  document.getElementById ("menuDDInf").style.visibility="visible";
}

function menuGrInfOut ()
{
  document.getElementById ("menuInf").className="MMenu";
  document.getElementById ("menuDDInf").style.visibility="hidden";
}

