unit zastavka;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, ComCtrls, jpeg;

type
  TForm11 = class(TForm)
    Image1: TImage;
    ProgressBar1: TProgressBar;
    Timer1: TTimer;
    procedure FormCreate(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  form11: TForm11;
   I:integer;
  y,z:integer;
  x,x1:string;
  a,s,d:integer;

implementation

uses glavn;



{$R *.dfm}



procedure TForm11.FormCreate(Sender: TObject);
begin
    Timer1.Enabled:=True;
end;

procedure TForm11.Timer1Timer(Sender: TObject);
begin
  y:=ProgressBar1.Position;
z:=y+2;
ProgressBar1.Position:=z;
y:=z;
 if z=100 then begin
 Form11.Visible:=False;
 form1.Show;
 end;
end;

end.
