SetActivLeaf("jmp_turma");
AddObjForCur()
Spirit_Particles()

To_Prison={
500,177,
653,177,
653,408,
500,408
}

To_TGate={
0,580,
1024,580,
1024,768,
0,768
}

Med_pol={
728,501,
728,551,
778,551,
778,501
}

AddObjForCur()
addstaticobjecttogame(10,"jmp_turmag",953 ,800,"",0,0,15,28);
addstaticobjecttogame(11,"jmp_turmag",71 ,800,"",15,0,15,28);
addstaticobjecttogame(12,"jmp_turmag",71 ,800,"",15,0,15,28);

gad1 = {"InstantiationOfLine", 2, 953 ,800, 953, -100, 40, true};
gad2 = {"InstantiationOfLine", 2,-15 ,470, 199, -100, 45, true};
gad3 = {"InstantiationOfLine", 2,840, 95, 450, 95, 35, true};
--StartTravel(10,1,nil,nil,gad1);
StartTravel(11,1,nil,nil,gad2);
StartTimer(1219999,3)
speciale_action(2,10)
StartTimer(1239999,5)
speciale_action(2,12)
CreatePolygon(1,4,"To_Prison")


CreatePolygon(2,4,"To_TGate")


-- AddParticleToObject(1,"tkap",470,136);
-- MoveEmiter("tkap",470,136);
-- StartEmiter("tkap");
-- StartTimer(1999991,4)
-- StartTimer(2999991,8)

-- AddParticleToObject(2,"tkap1",764,129);
-- MoveEmiter("tkap1",764,129);
-- StartEmiter("tkap1");
-- StartTimer(1999992,3)
--StartTimer(2999992,10)


-- NewObj("svetka","fonar",2000,2000,"173"); 
-- if not obj.svetka.is_collapsed then
-- addactivobjecttogame(101,"jmp_turma1",367,482,"","")
-- CreatePolygon(101,4,"Fon_pol")
-- end;

NewObj("medal","medal1",2000,2000,"325"); --половина медальона
if not obj.medal.is_collapsed then
NewObj("medla","jmp_turma1",728,501,"325"); --половина медальона
CreatePolygon(obj.medla.id,4,"Med_pol")
end;

addstaticobjecttogame(3,"jmp_turma3",0  ,0  ,""); --бг

Block_Show_Cur(false);

addfade(501,1);