// ( )

 

var Rb = new Array(11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99)

var Azbuk = new Array("","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","")

 

var x = new Array(99)

var y = new Array(99)

var Mas = new Array(99)

//

var Kod_mg = 0;

var tip_l = 33; //

 

 

//Vector.CurrObjNmb = Vector.LastNmb()

var n10 = Vector.LastNmb()

 

var s = Math.PI

var fi = (2*s)/91

 

//VbsMsg ("K.y=" + K.y);

 

 

 

//

 

var ngroup1

Vector.Polyline.Reset()

for ( var n=11; n <= 99 ; n++ ) {

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) var K = Unkod1(n,tip_l)

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) Vector.Polyline.AddP (Vector.p(K.x,K.y,0))

}

var K = Unkod1(11,tip_l)

Vector.Polyline.AddP (Vector.p(K.x,K.y,0))

Vector.Polyline.SaveInDoc ( ngroup1 )

Vector.Polyline.Draw()

Vector.Width=1 // 2-

Vector.SetFillColor (100,240,100) //

 

/*

var K = Unkod1(11,tip_l)

VbsMsg ("K.x=" + K.x);

VbsMsg ("K.y=" + K.y);

 

var K = Unkod1(55,tip_l)

VbsMsg ("K.x=" + K.x);

VbsMsg ("K.y=" + K.y);

 

var K = Unkod1(99,tip_l)

VbsMsg ("K.x=" + K.x);

VbsMsg ("K.y=" + K.y);

*/

 

 

var k=0;

 

// , : 45, 14, 65, 26, 78

 

var K = Unkod1(34,tip_l)

x[0]=K.x

y[0]=K.y

 

var K = Unkod1(64,tip_l)

x[1]=K.x

y[1]=K.y

 

var K = Unkod1(66,tip_l)

x[2]=K.x

y[2]=K.y

 

var K = Unkod1(32,tip_l)

x[3]=K.x

y[3]=K.y

 

var K = Unkod1(33,tip_l)

x[4]=K.x

y[4]=K.y

 

var K = Unkod1(63,tip_l)

x[5]=K.x

y[5]=K.y

 

var K = Unkod1(84,tip_l)

x[6]=K.x

y[6]=K.y

 

 

 

/*

Vector.Otrezok.ss(Vector.p(x[0],y[0],0),Vector.p(x[1],y[1],0))

Vector.Otrezok.ss(Vector.p(x[1],y[1],0),Vector.p(x[2],y[2],0))

Vector.Otrezok.ss(Vector.p(x[2],y[2],0),Vector.p(x[3],y[3],0))

Vector.Otrezok.ss(Vector.p(x[3],y[3],0),Vector.p(x[4],y[4],0))

Vector.Otrezok.ss(Vector.p(x[4],y[4],0),Vector.p(x[0],y[0],0))

*/

 

var ngroup

Vector.Polyline.Reset()

for ( var n=0; n < 7 ; n++ ) {

Vector.Polyline.AddP (Vector.p(x[n],y[n],0))

}

Vector.Polyline.AddP (Vector.p(x[0],y[0],0))

Vector.Polyline.SaveInDoc ( ngroup )

Vector.Polyline.Draw()

Vector.Width=1 // 2-

Vector.SetFillColor (240,0,0) //

 

 

 

 

//

for ( var k = 0; k < 7; k++) {

for ( var n=0; n <= 81; n++) {

var P = Unkod1(n,tip_l)

if (rzn(P.x) == rzn(x[k]) && rzn(P.y) == rzn(y[k]) ) Mas[k] =n;

}

}

Vector.SetFillColor (255,110,0) //

 

/*

VbsMsg ("Mas[0]=" + Mas[0]);

VbsMsg ("Mas[1]=" + Mas[1]);

VbsMsg ("Mas[2]=" + Mas[2]);

VbsMsg ("Mas[3]=" + Mas[3]);

VbsMsg ("Mas[4]=" + Mas[4]);

VbsMsg ("Mas[5]=" + Mas[5]);

VbsMsg ("Mas[6]=" + Mas[6]);

*/

 

 

 

 

n1 = Vector.LastNmb+1

//

var k=0;

for ( var n=11; n <= 99 ; n++) {

var K = Unkod1(n,tip_l)

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) Vector.Krug.ss (Vector.p(K.x,K.y,0), 0.05, Vector.p(0,0,1))

// Vector.Ngpoint.ss (Vector.p(K.x,K.y,0))

}

 

n2 = Vector.LastNmb+1

var gr;

Vector.MoveToGroup (n1, n2, "gr")

Vector.SetFillColor (0,0,255) //

 

 

n11 = Vector.LastNmb+1

var k=0;

for ( var n=11; n <= 99 ; n++) {

var K = Unkod1(n,tip_l)

// Vector.Ngpoint.ss (Vector.p(K.x,K.y,0))

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) Vector.Text.ss (Vector.p(K.x,K.y,0), n)

k=k+1;

}

n12 = Vector.LastNmb+1

var gr;

Vector.MoveToGroup (n11, n12, "gr")

 

 

var k=0;

n3 = Vector.LastNmb+1

for ( var n=11; n <= 99 ; n++) {

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) var K = Unkod1(n,tip_l)

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) Vector.Text.ss (Vector.p(K.x,K.y,0), Azbuk[k]) ;

if (n != 20 && n != 30 && n != 40 && n != 50 && n != 60 && n != 70 && n != 80 && n != 90) k=k+1;

}

 

n4 = Vector.LastNmb+1

var gr;

Vector.MoveToGroup (n3, n4, "gr")

 

 

 

 

Vector.obj.All = 1;

Vector.Obj.Translate (Vector.p(-5, -5, 0))

Vector.obj.scale = 0.5

if (tip_l=21) Vector.obj.scale = 3

 

/*

var O = Vector.p(0,0,0)

var N = Vector.p(0,0,1)

Vector.Krug.ss(O,10,N)

*/

 

/*

var k=0;

for ( var t=0; t <= 1 ; t=t+1/91 ) {

Vector.CurrObjNmb = n1 //

var K = Vector.Krug.P(t)

//var K = Vector.Polyline.P (t)

// Vector.Ngpoint.ss (Vector.p(K.x,K.y,0))

Vector.Krug.ss (Vector.p(K.x,K.y,0), 0.1, Vector.p(0,0,1))

Vector.Text.ss (Vector.p(K.x,K.y,0), Rb[k])

//Stx[k]= rznn(K.x)

//Sty[k]= rznn(K.y)

k=k+1;

}

*/

 

 

/*

Vector.CurrObjNmb = Vector.LastNmb()

var n1 = Vector.LastNmb()

Vector.obj.All = 0;

Vector.Obj.Translate (Vector.p(5, 5, 0))

*/

//Vector.Polyline.FromCurrObj (21)

//Vector.SetFillColor (240,200,0) //

 

// ..

 

 

/*

var K = Vector.Krug.P(0.5)

VbsMsg ("K.x=" + K.x);

VbsMsg ("K.y=" + K.y);

 

 

// 10

var k=0;

for ( var t=0; t <=1 ; t=t+0.1 ) {

Vector.CurrObjNmb = n1 //

var K = Vector.Krug.P(t)

// var K = Vector.Polyline.P (t)

// Vector.Krug.ss (Vector.p(K.x,K.y,0), 0.1, Vector.p(0,0,1))

Stx[k]= rznn(K.x)

Sty[k]= rznn(K.y)

k=k+1;

}

VbsMsg ("Stx[5]=" + Stx[5]);

VbsMsg ("Sty[5]=" + Sty[5]);

*/

 

 

 

// var RRt = new Array (729)

 

 

 

function Unkod1(ki,Tip_line)

{

if (Kod_mg == 1) ki = Innkod(ki)

 

var s = Math.PI

// if (Kod_mg == 1) ki = Innkod(ki)

 

var fi = (2*s)/91

if (Tip_line == 1) {

var xr = (5 + 5*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 5*Math.sin((s/2-0.05)+fi*ki))

}

 

if (Tip_line == 2) {

var u = (s/2-0.05)+fi*ki;

var a = 70; var L = 20;

var xr = 0.5 + 0.099*(a*Math.cos(u)*Math.cos(u)*1+ L*Math.cos(u));

var yr = 4.9 + 0.099*(a*Math.cos(u)*Math.sin(u)*1+ L*Math.sin(u));

}

 

if (Tip_line == 3) { //

 

var u = (s/2-0.05)+fi*ki;

var a = 50;

var xrr = 2 + 0.085*a*Math.cos(u)*(1*1+Math.cos(u));

var yrr = 5 + 0.075*a*Math.sin(u)*(1*1+Math.cos(u));

var xr = yrr;

var yr = -xrr + 10.5;

}

 

 

if (Tip_line == 4) { //

var u = (s/2-0.05)+fi*ki;

var a = 50;

var xr = 2 + 0.08*a*Math.cos(u)*(1*1+Math.cos(u));

var yr = 5 + 0.08*a*Math.sin(u)*(1*1+Math.cos(u));

}

 

 

if (Tip_line == 5) { //

var u = (s/2-0.05)+fi*ki;

var a = 60; var c = 50;

var pr = Math.sqrt(c*c*Math.cos(2*u)*1 + Math.sqrt(c*c*c*c*Math.cos(2*u)*Math.cos(2*u)*1+(a*a*a*a-c*c*c*c)));

var xr = 5 + 0.063*pr*Math.cos(u);

var yr = 5 + 0.13*pr*Math.sin(u);

}

 

if (Tip_line == 6) { // 4

ki = ki-10

var fi = (2*s)/23.75

var fi = (2*s)/20

var u = (s/2-0.05)+fi*ki;

if (ki >=11 && ki <= 20) {

var xr = (2.5 + 2.5*Math.cos((s/2-0.05)+fi*ki))

var yr = (2.5 - 2.5*Math.sin((s/2-0.05)+fi*ki))

}

 

if (ki > 20 && ki <= 40) {

var xr = (2.5 + 2.5*Math.cos((s/2-0.05)+fi*ki))

var yr = (7.5 - 2.5*Math.sin((s/2-0.05)+fi*ki))

}

 

if (ki > 40 && ki <= 60) {

var xr = (7.5 + 2.5*Math.cos((s/2-0.05)+fi*ki))

var yr = (2.5 - 2.5*Math.sin((s/2-0.05)+fi*ki))

}

 

if (ki > 60 && ki <= 89){

var xr = (7.5 + 2.5*Math.cos((s/2-0.05)+fi*ki))

var yr = (7.5 + 2.5*Math.sin((s/2-0.05)+fi*ki))

}

 

}

 

if (Tip_line == 7) { //

var u = (s/2-0.05)+fi*ki;

var a = 9; var b = 27;

var xr = 5 + 0.11*((a*1+b)*Math.cos(u) - a*Math.cos((a*1+b)*u/a));

var yr = 5 + 0.11*((a*1+b)*Math.sin(u) - a*Math.sin((a*1+b)*u/a));

}

 

if (Tip_line == 8) { //

var u = (s/2-0.05)+fi*ki;

var b = 40;

var xr = 5 + 0.14*b*Math.cos(u)*Math.cos(u)*Math.cos(u);

var yr = 5 + 0.14*b*Math.sin(u)*Math.sin(u)*Math.sin(u);

}

 

if (Tip_line == 9) { // .

var u = (s/2-0.05)+fi*ki;

 

var a = 10; var b = 40; var L = 3;

var xr = 5 + 0.07*((a*1+b)*Math.cos(u) - L*a*Math.cos((a*1+b)*u/a));

var yr = 5 + 0.07*((a*1+b)*Math.sin(u) - L*a*Math.sin((a*1+b)*u/a));

 

}

 

if (Tip_line == 10) { //

var s = 2*Math.PI

var u = (s/2-0.05)+fi*ki;

var a = 10;

var pr = a*u;

var xr = 5.8 + 0.0625*pr*Math.cos(u);

var yr = 4 + 0.07*pr*Math.sin(u);

}

 

if (Tip_line == 11) { //

var s = 2*Math.PI

var u = (s/2-0.05)+fi*ki;

var a = 10;

var xr = 4 + 0.07*(a*Math.cos(u)*1 + a*u*Math.sin(u));

var yr = 4 + 0.065*(a*Math.sin(u)*1 - a*u*Math.cos(u));

}

 

 

if (Tip_line == 12) { //

var u = (s/2-0.05)+fi*ki;

 

var a = -30; var L = -5

var xr = 5.5 + 0.025*(a*(2*Math.cos(u) - L*Math.cos(2*u)));

var yr = 5 + 0.025*(a*(2*Math.sin(u) - L*Math.sin(2*u)));

}

 

 

if (Tip_line == 13) { //

ki = ki-10

var fi = (2*s)/44.5

if (ki >=11 && ki <= 45) {

var xr = (5 + 5*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 5*Math.sin((s/2-0.05)+fi*ki))

}

 

else {

var xr = (5 + 1*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 1*Math.sin((s/2-0.05)+fi*ki))

}

}

 

if (Tip_line == 14) { //

 

var fi = 1/90;

var t =(ki-11)*fi;

var xx1 = 5; var yy1 =10;

var xx2= 10; var yy2 = 0;

var xx3= 0; var yy3 = 0;

 

if (ki >=11 && ki <= 43) {

var t1 = 0*fi; var t2 = 33*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 43 && ki <= 63) {

var t1 = 33*fi; var t2=53*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 63 && ki <= 99) {

var t1 = 53*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

}

 

if (Tip_line == 15) { //

var fi = 1/90;

var t =(ki-11)*fi;

var xx1 = 0; var yy1 =0;

var xx2= 10; var yy2 = 10;

 

if (ki >=11 && ki <= 33) {

var t1 = 0*fi; var t2 = 23*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 33 && ki <= 53) {

var t1 = 23*fi; var t2=43*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 53 && ki <= 75) {

var t1 = 43*fi; var t2=65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 75 && ki <= 99) {

var t1 = 65*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

}

 

 

if (Tip_line == 16) { //

var fi = 1/90;

var t =(ki-11)*fi;

var xx1 = 5; var yy1 =0;

var xx2= 5; var yy2 = 10;

var xx3= 0; var yy3 = 5;

var xx4= 10; var yy4 = 5;

 

if (ki >=11 && ki <= 55) {

var t1 = 0*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 55 && ki <= 99) {

var t1 = 45*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

}

 

if (Tip_line == 17) { // s-

var fi = 1/90;

var t =(ki-11)*fi;

 

var xx1 = 0; var yy1 = 0;

var xx2 = 5; var yy2 = 0;

var xx3 = 5; var yy3 = 10;

var xx4 = 10; var yy4 = 10;

 

 

if (ki >=11 && ki <= 25) {

var t1 = 0*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 25 && ki <= 45) {

var t1 = 15*fi; var t2=35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 45 && ki <= 55) {

var t1 = 35*fi; var t2=45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

var xx1 = 0; var yy1 = 10;

var xx2 = 0; var yy2 = 5;

var xx3 = 10; var yy3 = 5;

var xx4 = 10; var yy4 = 0;

 

 

if (ki > 55 && ki <= 70) {

var t1 = 45*fi; var t2 = 60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 70 && ki <= 85) {

var t1 = 60*fi; var t2=75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

}

 

 

if (Tip_line == 18) { // 5-

var fi = 1/90;

var t =(ki-11)*fi;

 

var s5 = (2*Math.PI)/5

 

var xx1 = (5 + 5*Math.cos(Math.PI/2))

var yy1 = (5 - 5*Math.sin(-Math.PI/2))

var xx2 = (5 + 5*Math.cos(Math.PI/2+s5))

var yy2 = (5 - 5*Math.sin(-Math.PI/2+s5))

var xx3 = (5 + 5*Math.cos(Math.PI/2+2*s5))

var yy3 = (5 - 5*Math.sin(-Math.PI/2+2*s5))

var xx4 = (5 + 5*Math.cos(Math.PI/2+3*s5))

var yy4 = (5 - 5*Math.sin(-Math.PI/2+3*s5))

var xx5 = (5 + 5*Math.cos(Math.PI/2 + 4*s5))

var yy5 = (5 - 5*Math.sin(-Math.PI/2 + 4*s5))

 

// alert ( "yy5 = " + yy5);

 

if (ki >=11 && ki <= 28) {

var t1 = 0*fi; var t2 = 18*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 28 && ki <= 46) {

var t1 = 18*fi; var t2=36*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy5;

}

 

 

 

if (ki > 46 && ki <= 64) {

var t1 = 36*fi; var t2=54*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 64 && ki <= 72) {

var t1 = 54*fi; var t2=62*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 72 && ki <= 99) {

var t1 = 62*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1

}

}

 

if (Tip_line == 19) { //

var fi = 1/90;

var t =(ki-11)*fi;

 

var s5 = (2*Math.PI)/5

 

var xx1 = 5

var yy1 = 10

var xx2 = 0

var yy2 = 5

var xx3 = 5

var yy3 = 0

var xx4 = 10

var yy4 = 5

 

// alert ( "yy5 = " + yy5);

 

if (ki >=11 && ki <= 32) {

var t1 = 0*fi; var t2 = 22*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 32 && ki <= 54) {

var t1 = 22*fi; var t2=44*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 54 && ki <= 76) {

var t1 = 44*fi; var t2=66*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 76 && ki <= 99) {

var t1 = 66*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

}

 

 

 

if (Tip_line == 20) { //

 

var fi = 1/90;

var t =(ki-11)*fi;

var xx1 = 5; var yy1 =10;

var xx2= 10; var yy2 = 3;

var xx3= 0; var yy3 = 3;

 

if (ki >=11 && ki <= 23) {

var t1 = 0*fi; var t2 = 13*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 23 && ki <= 36) {

var t1 = 13*fi; var t2=26*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 36 && ki <= 49) {

var t1 = 26*fi; var t2=39*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx1 = 5; var yy1 =0;

var xx2= 10; var yy2 = 7;

var xx3= 0; var yy3 = 7;

 

 

if (ki > 49 && ki <= 62) {

var t1 = 39*fi; var t2 = 52*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 62 && ki <= 75) {

var t1 = 52*fi; var t2=65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 75 && ki <= 99) {

var t1 = 65*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

}

 

if (Tip_line == 21) { // //

 

Vector.CurrObjNmb = n10 //

var Ms_m = 1; //Ms_mo.value

var fi = 1/91;

var tv =(ki-11)*fi;

var A = Vector.Polyline.P(tv)

var xr = A.x // 5 + Ms_m*1.5*A.x;

var yr = A.y //5 + Ms_m*1.5*A.y;

/*

var Ms_m = 1; //Ms_mo.value

var fi = 1/91;

var tv =(ki-11)*fi;

var Vector = new ActiveXObject("Vector.Document");

Vector.Import (Picnm, 1) //

n11 = 0

var A = Vector.Polyline.P(tv)

var xr = 5 + Ms_m*1.5*A.x;

var yr = 5 + Ms_m*1.5*A.y;

Vector.RefreshImage();

*/

}

 

 

 

if (Tip_line == 22) { // 4

ki = ki-10

var fi = (2*s)/23.75

var fi = (2*s)/20

var u = (s/2-0.05)+fi*ki;

if (ki >=1 && ki <= 20) {

var xr = (5 + 5*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 5*Math.sin((s/2-0.05)+fi*ki))

}

 

if (ki > 20 && ki <= 40) {

var xr = (5 + 4*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 4*Math.sin((s/2-0.05)+fi*ki))

}

 

if (ki > 40 && ki <= 60) {

var xr = (5 + 3*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 3*Math.sin((s/2-0.05)+fi*ki))

}

 

if (ki > 60 && ki <= 99){

var xr = (5 + 2*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 2*Math.sin((s/2-0.05)+fi*ki))

}

 

}

 

if (Tip_line == 23) { // 8

var fi = 1/90;

var t =(ki-11)*fi;

 

var xx0 = 5; var yy0 = 5;

var xx1 = 0; var yy1 = 0;

var xx2 = 10; var yy2 = 0;

var xx3 = 10; var yy3 = 10;

var xx4 = 0; var yy4 = 10;

var xx5 = 5; var yy5 = 10;

var xx6 = 5; var yy6 = 0;

 

 

if (ki >=11 && ki <= 25) {

var t1 = 0*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 25 && ki <= 45) {

var t1 = 15*fi; var t2=35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 45 && ki <= 55) {

var t1 = 35*fi; var t2=45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy3;

}

 

 

if (ki > 55 && ki <= 70) {

var t1 = 45*fi; var t2 = 60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 70 && ki <= 85) {

var t1 = 60*fi; var t2=75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy5;

}

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy6;

}

}

 

 

if (Tip_line == 24) { //

var fi = 1/90;

var t =(ki-11)*fi;

 

var xx0 = 0; var xx1 = 10;

var yy1 = 1.125; yy2=yy1+1.5; yy3=yy2+1.5; yy4=yy3+1.5; yy5=yy4+1.5; yy6=yy5+1.5;

 

if (ki >=11 && ki <= 25) {

var t1 = 0*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 25 && ki <= 45) {

var t1 = 15*fi; var t2=35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 45 && ki <= 55) {

var t1 = 35*fi; var t2=45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy3;

}

 

 

if (ki > 55 && ki <= 70) {

var t1 = 45*fi; var t2 = 60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 70 && ki <= 85) {

var t1 = 60*fi; var t2=75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy5;

}

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy6;

}

}

 

if (Tip_line == 25) { // ( )

var fi = 1/90;

var t =(ki-11)*fi;

 

var yy0 = 0; var yy1 = 10;

var xx1 = 1.125; xx2=xx1+1.5; xx3=xx2+1.5; xx4=xx3+1.5; xx5=xx4+1.5; xx6=xx5+1.5;

 

if (ki >=11 && ki <= 25) {

var t1 = 0*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 25 && ki <= 45) {

var t1 = 15*fi; var t2=35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 45 && ki <= 55) {

var t1 = 35*fi; var t2=45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

 

 

if (ki > 55 && ki <= 70) {

var t1 = 45*fi; var t2 = 60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 70 && ki <= 85) {

var t1 = 60*fi; var t2=75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy0 + ((t-t1)/(t2-t1))*yy1;

}

}

 

if (Tip_line == 26) { // 9

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx0 = 0; var xx1 = 10;

var yy1 = 1; yy2=yy1+1; yy3=yy2+1; yy4=yy3+1; yy5=yy4+1;

yy6=yy5+1; yy7=yy6+1; yy8=yy7+1; yy9=yy8+1;

 

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy3;

}

 

 

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy5;

}

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 80 && ki <= 90) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 90 && ki <= 99) {

var t1 = 80*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy9;

}

}

 

if (Tip_line == 27) { // // 9 ( )

var fi = 1/90;

var t =(ki-10)*fi;

 

var yy1 = 0; var yy2 = 10;

var xx1 = 1; xx2=xx1*1+1; xx3=xx2*1+1; xx4=xx3*1+1; xx5=xx4*1+1;

xx6=xx5*1+1; xx7=xx6*1+1; xx8=xx7*1+1; xx9=xx8*1+1;

 

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 80 && ki <= 90) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 90 && ki <= 99) {

var t1 = 80*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx9;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

}

 

 

if (Tip_line == 28) { // 9

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx0 = 0; var xx1 = 10;

var yy1 = 1; yy2=yy1+1; yy3=yy2+1; yy4=yy3+1; yy5=yy4+1;

yy6=yy5+1; yy7=yy6+1; yy8=yy7+1; yy9=yy8+1;

 

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy3;

}

 

 

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy5;

}

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 80 && ki <= 90) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 90 && ki <= 99) {

var t1 = 80*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy9;

}

}

 

if (Tip_line == 29) { // // 9 ( )

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var yy1 = 0; var yy2 = 10;

var xx1 = 1; xx2=xx1*1+1; xx3=xx2*1+1; xx4=xx3*1+1; xx5=xx4*1+1;

xx6=xx5*1+1; xx7=xx6*1+1; xx8=xx7*1+1; xx9=xx8*1+1;

 

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 80 && ki <= 90) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 90 && ki <= 99) {

var t1 = 80*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx9;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

}

 

if (Tip_line == 30) { //

var fi = 1/90;

var t =(ki-10)*fi;

var xx1 = 0; var yy1 = 1; var xx2 = 1; var yy2 = 0;

var xx3 = 0; var yy3 = 3; var xx4 = 3; var yy4 = 0;

var xx5 = 0; var yy5 = 5; var xx6 = 5; var yy6 = 0;

var xx7 = 0; var yy7 = 7; var xx8 = 7; var yy8 = 0;

var xx9 = 0; var yy9 = 9; var xx10 = 9; var yy10 = 0;

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx10;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy10;

}

 

var xx11 = 2; var yy11 = 10; var xx12 = 10; var yy12 = 2;

var xx13 = 4; var yy13 = 10; var xx14 = 10; var yy14 = 4;

var xx15 = 6; var yy15 = 10; var xx16 = 10; var yy16 = 6;

var xx17 = 8; var yy17 = 10; var xx18 = 10; var yy18 = 8;

 

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx11 + ((t-t1)/(t2-t1))*xx12;

var yr = (1-(t-t1)/(t2-t1))*yy11 + ((t-t1)/(t2-t1))*yy12;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx13 + ((t-t1)/(t2-t1))*xx14;

var yr = (1-(t-t1)/(t2-t1))*yy13 + ((t-t1)/(t2-t1))*yy14;

}

 

if (ki > 80 && ki <= 89) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx15 + ((t-t1)/(t2-t1))*xx16;

var yr = (1-(t-t1)/(t2-t1))*yy15 + ((t-t1)/(t2-t1))*yy16;

}

}

 

if (Tip_line == 31) { //

var fi = 1/90;

var t =(ki-10)*fi;

var xx1 = 0; var yy1 = 1; var xx2 = 1; var yy2 = 0;

var xx3 = 0; var yy3 = 3; var xx4 = 3; var yy4 = 0;

var xx5 = 0; var yy5 = 5; var xx6 = 5; var yy6 = 0;

var xx7 = 0; var yy7 = 7; var xx8 = 7; var yy8 = 0;

var xx9 = 0; var yy9 = 9; var xx10 = 9; var yy10 = 0;

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx10;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy10;

}

 

var xx11 = 2; var yy11 = 10; var xx12 = 10; var yy12 = 2;

var xx13 = 4; var yy13 = 10; var xx14 = 10; var yy14 = 4;

var xx15 = 6; var yy15 = 10; var xx16 = 10; var yy16 = 6;

var xx17 = 8; var yy17 = 10; var xx18 = 10; var yy18 = 8;

 

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx12 + ((t-t1)/(t2-t1))*xx11;

var yr = (1-(t-t1)/(t2-t1))*yy12 + ((t-t1)/(t2-t1))*yy11;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx13 + ((t-t1)/(t2-t1))*xx14;

var yr = (1-(t-t1)/(t2-t1))*yy13 + ((t-t1)/(t2-t1))*yy14;

}

 

if (ki > 80 && ki <= 89) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx16 + ((t-t1)/(t2-t1))*xx15;

var yr = (1-(t-t1)/(t2-t1))*yy16 + ((t-t1)/(t2-t1))*yy15;

}

}

 

if (Tip_line == 32) { //

var fi = 1/90;

var t =(ki-10)*fi;

var xx1 = 10; var yy1 = 1; var xx2 = 9; var yy2 = 0;

var xx3 = 10; var yy3 = 3; var xx4 = 7; var yy4 = 0;

var xx5 = 10; var yy5 = 5; var xx6 = 5; var yy6 = 0;

var xx7 = 10; var yy7 = 7; var xx8 = 3; var yy8 = 0;

var xx9 = 10; var yy9 = 9; var xx10 = 1; var yy10 = 0;

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx10;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy10;

}

 

var xx11 = 8; var yy11 = 10; var xx12 = 0; var yy12 = 2;

var xx13 = 6; var yy13 = 10; var xx14 = 0; var yy14 = 4;

var xx15 = 4; var yy15 = 10; var xx16 = 0; var yy16 = 6;

var xx17 = 2; var yy17 = 10; var xx18 = 0; var yy18 = 8;

 

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx11 + ((t-t1)/(t2-t1))*xx12;

var yr = (1-(t-t1)/(t2-t1))*yy11 + ((t-t1)/(t2-t1))*yy12;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx13 + ((t-t1)/(t2-t1))*xx14;

var yr = (1-(t-t1)/(t2-t1))*yy13 + ((t-t1)/(t2-t1))*yy14;

}

 

if (ki > 80 && ki <= 89) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx15 + ((t-t1)/(t2-t1))*xx16;

var yr = (1-(t-t1)/(t2-t1))*yy15 + ((t-t1)/(t2-t1))*yy16;

}

}

 

if (Tip_line == 33) { //

var fi = 1/90;

var t =(ki-10)*fi;

var xx1 = 10; var yy1 = 1; var xx2 = 9; var yy2 = 0;

var xx3 = 10; var yy3 = 3; var xx4 = 7; var yy4 = 0;

var xx5 = 10; var yy5 = 5; var xx6 = 5; var yy6 = 0;

var xx7 = 10; var yy7 = 7; var xx8 = 3; var yy8 = 0;

var xx9 = 10; var yy9 = 9; var xx10 = 1; var yy10 = 0;

 

if (ki <= 20) {

var t1 = 0*fi; var t2 = 10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 30) {

var t1 = 10*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 30 && ki <= 40) {

var t1 = 20*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

if (ki > 40 && ki <= 50) {

var t1 = 30*fi; var t2 = 40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 50 && ki <= 60) {

var t1 = 40*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx10;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy10;

}

 

var xx11 = 8; var yy11 = 10; var xx12 = 0; var yy12 = 2;

var xx13 = 6; var yy13 = 10; var xx14 = 0; var yy14 = 4;

var xx15 = 4; var yy15 = 10; var xx16 = 0; var yy16 = 6;

var xx17 = 2; var yy17 = 10; var xx18 = 0; var yy18 = 8;

 

if (ki > 60 && ki <= 70) {

var t1 = 50*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx12 + ((t-t1)/(t2-t1))*xx11;

var yr = (1-(t-t1)/(t2-t1))*yy12 + ((t-t1)/(t2-t1))*yy11;

}

 

if (ki > 70 && ki <= 80) {

var t1 = 60*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx13 + ((t-t1)/(t2-t1))*xx14;

var yr = (1-(t-t1)/(t2-t1))*yy13 + ((t-t1)/(t2-t1))*yy14;

}

 

if (ki > 80 && ki <= 89) {

var t1 = 70*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx16 + ((t-t1)/(t2-t1))*xx15;

var yr = (1-(t-t1)/(t2-t1))*yy16 + ((t-t1)/(t2-t1))*yy15;

}

}

 

if (Tip_line == 34) { //

var fi = 1/90;

 

var t =(ki-10)*fi;

var xx1 = 5; var yy1 = 0;

var xx2 = 9; var yy2 = 6;

var xx3 = 1; var yy3 = 6;

var xx4 = 0; var yy4 = 5;

var xx5 = 5; var yy5 = 10;

var xx6 = 10; var yy6 = 5;

 

 

if (ki <= 22) {

var t1 = 0*fi; var t2 = 12*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 22 && ki <= 34) {

var t1 = 12*fi; var t2=24*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 34 && ki <= 48) {

var t1 = 24*fi; var t2 = 38*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 48 && ki <= 60) {

var t1 = 38*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx4

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 60 && ki <= 72) {

var t1 = 50*fi; var t2=62*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy5;

}

 

if (ki > 72 && ki <= 84) {

var t1 = 62*fi; var t2=74*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 84 && ki <= 99) {

var t1 = 74*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy1;

}

}

 

 

if (Tip_line == 35) { //

var fi = 1/90;

 

var t =(ki-10)*fi;

var xx1 = 2.5; var yy1 = 2.5;

var xx2 = xx1; var yy2 = 7.5;

var xx3 = 7.5; var yy3 = yy2;

var xx4 = xx3; var yy4 = xx1;

 

 

if (ki <= 21) {

var t1 = 0*fi; var t2 = 11*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 21 && ki <= 32) {

var t1 = 12*fi; var t2=22*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 32 && ki <= 43) {

var t1 = 22*fi; var t2 = 33*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 43 && ki <= 54) {

var t1 = 33*fi; var t2=44*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx5 = 5; var yy5 = 0;

var xx6 = 0; var yy6 = 5;

var xx7 = 5; var yy7 = 10;

var xx8 = 10; var yy8 = 5;

 

if (ki > 54 && ki <= 65) {

var t1 = 44*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 65 && ki <= 77) {

var t1 = 55*fi; var t2=67*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 77 && ki <= 88) {

var t1 = 67*fi; var t2=78*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 88 && ki <= 99) {

var t1 = 78*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy5;

}

}

 

 

if (Tip_line == 36) { //

var fi = 1/90;

 

var t =(ki-10)*fi;

var xx1 = 0; var yy1 = 0;

var xx2 = 0; var yy2 = 10;

var xx3 = 10; var yy3 = 10;

var xx4 = 10; var yy4 = 0;

 

 

if (ki <= 21) {

var t1 = 0*fi; var t2 = 11*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 21 && ki <= 32) {

var t1 = 12*fi; var t2=22*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 32 && ki <= 43) {

var t1 = 22*fi; var t2 = 33*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 43 && ki <= 54) {

var t1 = 33*fi; var t2=44*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx5 = 2.5; var yy5 = 2.5;

var xx6 = 2.5; var yy6 = 7.5;

var xx7 = 7.5; var yy7 = 7.5;

var xx8 = 7.5; var yy8 = 2.5;

 

if (ki > 54 && ki <= 65) {

var t1 = 44*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 65 && ki <= 77) {

var t1 = 55*fi; var t2=67*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 77 && ki <= 88) {

var t1 = 67*fi; var t2=78*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 88 && ki <= 99) {

var t1 = 78*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy5;

}

}

 

 

if (Tip_line == 37) { //

var fi = 1/90;

 

var t =(ki-10)*fi;

var xx1 = 1; var yy1 = 1;

var xx2 = 1; var yy2 = 9;

var xx3 = 9; var yy3 = 9;

var xx4 = 9; var yy4 = 1;

 

 

if (ki <= 21) {

var t1 = 0*fi; var t2 = 11*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 21 && ki <= 32) {

var t1 = 12*fi; var t2=22*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 32 && ki <= 43) {

var t1 = 22*fi; var t2 = 33*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 43 && ki <= 54) {

var t1 = 33*fi; var t2=44*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx5 = 2.5; var yy5 = 2.5;

var xx6 = 2.5; var yy6 = 7.5;

var xx7 = 7.5; var yy7 = 7.5;

var xx8 = 7.5; var yy8 = 2.5;

 

if (ki > 54 && ki <= 65) {

var t1 = 44*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 65 && ki <= 77) {

var t1 = 55*fi; var t2=67*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 77 && ki <= 88) {

var t1 = 67*fi; var t2=78*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 88 && ki <= 99) {

var t1 = 78*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy5;

}

}

 

if (Tip_line == 38) { //

var fi = 1/90;

 

var t =(ki-10)*fi;

var xx1 = 4; var yy1 = 0;

var xx2 = 4; var yy2 = 8;

var xx3 = 0; var yy3 = 8;

var xx4 = 0; var yy4 = 10;

var xx5 = 10; var yy5 = 10;

var xx6 = 10; var yy6 = 8;

var xx7 = 6; var yy7 = 8;

var xx8 = 6; var yy8 = 0;

 

 

if (ki <= 21) {

var t1 = 0*fi; var t2 = 11*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 21 && ki <= 32) {

var t1 = 12*fi; var t2=22*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 32 && ki <= 43) {

var t1 = 22*fi; var t2 = 33*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 43 && ki <= 54) {

var t1 = 33*fi; var t2=44*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx5

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy5;

}

 

if (ki > 54 && ki <= 65) {

var t1 = 44*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 65 && ki <= 77) {

var t1 = 55*fi; var t2=67*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 77 && ki <= 88) {

var t1 = 67*fi; var t2=78*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 88 && ki <= 99) {

var t1 = 78*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy1;

}

}

 

if (Tip_line == 39) { //

var fi = 1/90;

var t =(ki-10)*fi;

var xx1 = 4; var yy1 = 0;

var xx2 = 4; var yy2 = 4;

var xx3 = 0; var yy3 = 4;

var xx4 = 0; var yy4 = 6;

var xx5 = 4; var yy5 = 6;

var xx6 = 4; var yy6 = 10;

var xx7 = 6; var yy7 = 10;

var xx8 = 6; var yy8 = 6;

var xx9 = 10; var yy9 = 6;

var xx10 = 10; var yy10 = 4;

var xx11 = 6; var yy11 = 4;

var xx12 = 6; var yy12 = 0;

 

 

if (ki <= 18) {

var t1 = 0*fi; var t2 = 8*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 18 && ki <= 25) {

var t1 = 8*fi; var t2=15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 25 && ki <= 32) {

var t1 = 15*fi; var t2 = 22*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 32 && ki <= 39) {

var t1 = 22*fi; var t2=29*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx5

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy5;

}

 

if (ki > 39 && ki <= 46) {

var t1 = 29*fi; var t2=36*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 46 && ki <= 54) {

var t1 = 36*fi; var t2=44*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 54 && ki <= 61) {

var t1 = 44*fi; var t2=51*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 61 && ki <= 68) {

var t1 = 51*fi; var t2=58*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx9;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy9;

}

if (ki > 68 && ki <= 75) {

var t1 = 58*fi; var t2=65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx10;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy10;

}

if (ki > 75 && ki <= 82) {

var t1 = 65*fi; var t2=72*fi;

var xr = (1-(t-t1)/(t2-t1))*xx10 + ((t-t1)/(t2-t1))*xx11;

var yr = (1-(t-t1)/(t2-t1))*yy10 + ((t-t1)/(t2-t1))*yy11;

}

if (ki > 82 && ki <= 89) {

var t1 = 72*fi; var t2=79*fi;

var xr = (1-(t-t1)/(t2-t1))*xx11 + ((t-t1)/(t2-t1))*xx12;

var yr = (1-(t-t1)/(t2-t1))*yy11 + ((t-t1)/(t2-t1))*yy12;

}

if (ki > 89 && ki <= 99) {

var t1 = 79*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx12 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy12 + ((t-t1)/(t2-t1))*yy1;

}

}

 

if (Tip_line == 40) { //

 

var fi = 1/90;

var t =(ki-10)*fi;

var xx1 = 4; var yy1 = 0;

var xx2 = 4; var yy2 = 4;

var xx3 = 0; var yy3 = 4;

var xx4 = 0; var yy4 = 6;

var xx5 = 4; var yy5 = 6;

var xx6 = 4; var yy6 = 10;

var xx7 = 6; var yy7 = 10;

var xx8 = 6; var yy8 = 6;

var xx9 = 10; var yy9 = 6;

var xx10 = 10; var yy10 = 4;

var xx11 = 6; var yy11 = 4;

var xx12 = 6; var yy12 = 0;

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx5

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy5;

}

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2=25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx6

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2=35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx9;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy9;

}

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2=45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx10;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy10;

}

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx10 + ((t-t1)/(t2-t1))*xx11;

var yr = (1-(t-t1)/(t2-t1))*yy10 + ((t-t1)/(t2-t1))*yy11;

}

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx11 + ((t-t1)/(t2-t1))*xx12;

var yr = (1-(t-t1)/(t2-t1))*yy11 + ((t-t1)/(t2-t1))*yy12;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx12 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy12 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 65 && ki <= 99) {

var fi = (2*s)/(99-65)

var xr = (5 + 5*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 5*Math.sin((s/2-0.05)+fi*ki))

}

}

 

if (Tip_line == 41) { // 4

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 4; var yy1 = 4;

var xx2 = 4; var yy2 = 0;

var xx3 = 0; var yy3 = 0;

var xx4 = 0; var yy4 = 4;

 

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 4; var yy1 = 6;

var xx2 = 0; var yy2 = 6;

var xx3 = 0; var yy3 = 10;

var xx4 = 4; var yy4 = 10;

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2 = 25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2 = 35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

var xx1 = 6; var yy1 = 6;

var xx2 = 6; var yy2 = 10;

var xx3 = 10; var yy3 = 10;

var xx4 = 10; var yy4 = 6;

 

 

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2 = 55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 6; var yy1 = 4;

var xx2 = 10; var yy2 = 4;

var xx3 = 10; var yy3 = 0;

var xx4 = 6; var yy4 = 0;

 

 

if (ki > 70 && ki <= 75) {

var t1 = 60*fi; var t2 = 65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 75 && ki <= 80) {

var t1 = 65*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 80 && ki <= 85) {

var t1 = 70*fi; var t2 = 75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

}

 

 

if (Tip_line == 42) { // 4

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 6; var yy1 = 6;

var xx2 = 6; var yy2 = 0;

var xx3 = 0; var yy3 = 0;

var xx4 = 0; var yy4 = 6;

 

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 6; var yy1 = 4;

var xx2 = 0; var yy2 = 4;

var xx3 = 0; var yy3 = 10;

var xx4 = 6; var yy4 = 10;

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2 = 25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2 = 35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

var xx1 = 4; var yy1 = 4;

var xx2 = 4; var yy2 = 10;

var xx3 = 10; var yy3 = 10;

var xx4 = 10; var yy4 = 4;

 

 

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2 = 55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 4; var yy1 = 6;

var xx2 = 10; var yy2 = 6;

var xx3 = 10; var yy3 = 0;

var xx4 = 4; var yy4 = 0;

 

 

if (ki > 70 && ki <= 75) {

var t1 = 60*fi; var t2 = 65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 75 && ki <= 80) {

var t1 = 65*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 80 && ki <= 85) {

var t1 = 70*fi; var t2 = 75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

}

 

 

if (Tip_line == 43) { // 4

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 10; var yy1 = 10;

var xx2 = 4; var yy2 = 0;

var xx3 = 0; var yy3 = 0;

var xx4 = 0; var yy4 = 4;

 

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2=20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 10; var yy1 = 0;

var xx2 = 0; var yy2 = 6;

var xx3 = 0; var yy3 = 10;

var xx4 = 4; var yy4 = 10;

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2 = 25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2 = 35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

var xx1 = 0; var yy1 = 0;

var xx2 = 6; var yy2 = 10;

var xx3 = 10; var yy3 = 10;

var xx4 = 10; var yy4 = 6;

 

 

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2 = 55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 0; var yy1 = 10;

var xx2 = 10; var yy2 = 4;

var xx3 = 10; var yy3 = 0;

var xx4 = 6; var yy4 = 0;

 

 

if (ki > 70 && ki <= 75) {

var t1 = 60*fi; var t2 = 65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 75 && ki <= 80) {

var t1 = 65*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 80 && ki <= 85) {

var t1 = 70*fi; var t2 = 75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 85 && ki <= 99) {

var t1 = 75*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx1

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy1;

}

 

}

 

 

if (Tip_line == 44) { // 4 -

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 5; var yy1 = 10;

var xx2 = 0; var yy2 = 0;

var xx3 = 10; var yy3 = 0;

 

 

if (ki <= 17) {

var t1 = 0*fi; var t2 = 7*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 17 && ki <= 24) {

var t1 = 7*fi; var t2=14*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 24 && ki <= 31) {

var t1 = 14*fi; var t2 = 21*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 5; var yy1 = 0;

var xx2 = 0; var yy2 = 10;

var xx3 = 10; var yy3 = 10;

 

if (ki > 31 && ki <= 38) {

var t1 = 21*fi; var t2 = 28*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 38 && ki <= 48) {

var t1 = 28*fi; var t2=38*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 48 && ki <= 55) {

var t1 = 38*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx1 = 0; var yy1 = 5;

var xx2 = 10; var yy2 = 10;

var xx3 = 10; var yy3 = 0;

 

if (ki > 55 && ki <= 62) {

var t1 = 45*fi; var t2 = 52*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 62 && ki <= 69) {

var t1 = 52*fi; var t2=59*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 69 && ki <= 76) {

var t1 = 59*fi; var t2 = 66*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 10; var yy1 = 5;

var xx2 = 0; var yy2 = 10;

var xx3 = 0; var yy3 = 0;

 

 

if (ki > 76 && ki <= 83) {

var t1 = 66*fi; var t2 = 73*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 83 && ki <= 90) {

var t1 = 73*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 90 && ki <= 99) {

var t1 = 80*fi; var t2 = 89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

}

 

if (Tip_line == 45) { // 4

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 0; var yy1 = 0;

var xx2 = 0; var yy2 = 5;

var xx3 = 5; var yy3 = 0;

 

 

if (ki <= 17) {

var t1 = 0*fi; var t2 = 7*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 17 && ki <= 24) {

var t1 = 7*fi; var t2=14*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 24 && ki <= 31) {

var t1 = 14*fi; var t2 = 21*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx1 = 0; var yy1 = 10;

var xx2 = 5; var yy2 = 10;

var xx3 = 0; var yy3 = 5;

 

if (ki > 31 && ki <= 38) {

var t1 = 21*fi; var t2 = 28*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 38 && ki <= 48) {

var t1 = 28*fi; var t2=38*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 48 && ki <= 55) {

var t1 = 38*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

var xx1 = 10; var yy1 = 10;

var xx2 = 5; var yy2 = 10;

var xx3 = 10; var yy3 = 5;

 

if (ki > 55 && ki <= 62) {

var t1 = 45*fi; var t2 = 52*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 62 && ki <= 69) {

var t1 = 52*fi; var t2=59*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 69 && ki <= 76) {

var t1 = 59*fi; var t2 = 66*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 10; var yy1 = 0;

var xx2 = 10; var yy2 = 5;

var xx3 = 5; var yy3 = 0;

 

 

if (ki > 76 && ki <= 83) {

var t1 = 66*fi; var t2 = 73*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 83 && ki <= 90) {

var t1 = 73*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 90 && ki <= 99) {

var t1 = 80*fi; var t2 = 89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

}

 

if (Tip_line == 46) { // 4 +

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 0; var yy1 = 0;

var xx2 = 10; var yy2 = 0;

var xx3 = 5; var yy3 = 5;

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 0; var yy1 = 0;

var xx2 = 0; var yy2 = 10;

var xx3 = 5; var yy3 = 5;

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2 = 20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2=25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2 = 30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 0; var yy1 = 10;

var xx2 = 10; var yy2 = 10;

var xx3 = 5; var yy3 = 5;

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2 = 35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 10; var yy1 = 10;

var xx2 = 10; var yy2 = 0;

var xx3 = 5; var yy3 = 5;

 

 

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2 = 50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2 = 60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 65 && ki <= 99) {

var fi = (2*s)/(99-65)

var xr = (5 + 5*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 5*Math.sin((s/2-0.05)+fi*ki))

}

 

}

 

 

if (Tip_line == 47) { // 4 +

 

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx1 = 0; var yy1 = 0;

var xx2 = 10; var yy2 = 0;

var xx3 = 5; var yy3 = 2.5;

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2 = 15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 0; var yy1 = 0;

var xx2 = 0; var yy2 = 10;

var xx3 = 2.5; var yy3 = 5;

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2 = 20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2=25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2 = 30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 0; var yy1 = 10;

var xx2 = 10; var yy2 = 10;

var xx3 = 5; var yy3 = 7.5;

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2 = 35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2 = 45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

 

var xx1 = 10; var yy1 = 10;

var xx2 = 10; var yy2 = 0;

var xx3 = 7.5; var yy3 = 5;

 

 

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2 = 50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy3;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2 = 60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 65 && ki <= 99) {

var fi = (2*s)/(99-65)

var xr = (5 + 3*Math.cos((s/2-0.05)+fi*ki))

var yr = (5 - 3*Math.sin((s/2-0.05)+fi*ki))

}

 

}

 

if (Tip_line == 48) { //

var fi = 1/90;

var t =(ki-10)*fi;

 

var xx0 = 0; var xx1 = 10;

var yy1 = 1; yy2=yy1+1; yy3=yy2+1; yy4=yy3+1; yy5=yy4+1;

yy6=yy5+1; yy7=yy6+1; yy8=yy7+1; yy9=yy8+1;

 

 

if (ki <= 15) {

var t1 = 0*fi; var t2 = 5*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 15 && ki <= 20) {

var t1 = 5*fi; var t2=10*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 20 && ki <= 25) {

var t1 = 10*fi; var t2=15*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy3 + ((t-t1)/(t2-t1))*yy3;

}

 

 

if (ki > 25 && ki <= 30) {

var t1 = 15*fi; var t2 = 20*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy4 + ((t-t1)/(t2-t1))*yy4;

}

 

if (ki > 30 && ki <= 35) {

var t1 = 20*fi; var t2=25*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy5 + ((t-t1)/(t2-t1))*yy5;

}

if (ki > 35 && ki <= 40) {

var t1 = 25*fi; var t2=30*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy6 + ((t-t1)/(t2-t1))*yy6;

}

 

if (ki > 40 && ki <= 45) {

var t1 = 30*fi; var t2=35*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy7 + ((t-t1)/(t2-t1))*yy7;

}

 

if (ki > 45 && ki <= 50) {

var t1 = 35*fi; var t2=40*fi;

var xr = (1-(t-t1)/(t2-t1))*xx0 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy8 + ((t-t1)/(t2-t1))*yy8;

}

 

if (ki > 50 && ki <= 55) {

var t1 = 40*fi; var t2=45*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx0;

var yr = (1-(t-t1)/(t2-t1))*yy9 + ((t-t1)/(t2-t1))*yy9;

}

 

var yy1 = 0; var yy2 = 10;

var xx1 = 1; xx2=xx1*1+1; xx3=xx2*1+1; xx4=xx3*1+1; xx5=xx4*1+1;

xx6=xx5*1+1; xx7=xx6*1+1; xx8=xx7*1+1; xx9=xx8*1+1;

 

 

if (ki > 55 && ki <= 60) {

var t1 = 45*fi; var t2=50*fi;

var xr = (1-(t-t1)/(t2-t1))*xx1 + ((t-t1)/(t2-t1))*xx1;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 60 && ki <= 65) {

var t1 = 50*fi; var t2=55*fi;

var xr = (1-(t-t1)/(t2-t1))*xx2 + ((t-t1)/(t2-t1))*xx2;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 65 && ki <= 70) {

var t1 = 55*fi; var t2=60*fi;

var xr = (1-(t-t1)/(t2-t1))*xx3 + ((t-t1)/(t2-t1))*xx3;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

if (ki > 70 && ki <= 75) {

var t1 = 60*fi; var t2 = 65*fi;

var xr = (1-(t-t1)/(t2-t1))*xx4 + ((t-t1)/(t2-t1))*xx4;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 75 && ki <= 80) {

var t1 = 65*fi; var t2=70*fi;

var xr = (1-(t-t1)/(t2-t1))*xx5 + ((t-t1)/(t2-t1))*xx5;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

if (ki > 80 && ki <= 85) {

var t1 = 70*fi; var t2=75*fi;

var xr = (1-(t-t1)/(t2-t1))*xx6 + ((t-t1)/(t2-t1))*xx6;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 85 && ki <= 90) {

var t1 = 75*fi; var t2=80*fi;

var xr = (1-(t-t1)/(t2-t1))*xx7 + ((t-t1)/(t2-t1))*xx7;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

 

if (ki > 90 && ki <= 95) {

var t1 = 80*fi; var t2=85*fi;

var xr = (1-(t-t1)/(t2-t1))*xx8 + ((t-t1)/(t2-t1))*xx8;

var yr = (1-(t-t1)/(t2-t1))*yy2 + ((t-t1)/(t2-t1))*yy1;

}

 

if (ki > 95 && ki <= 99) {

var t1 = 85*fi; var t2=89*fi;

var xr = (1-(t-t1)/(t2-t1))*xx9 + ((t-t1)/(t2-t1))*xx9;

var yr = (1-(t-t1)/(t2-t1))*yy1 + ((t-t1)/(t2-t1))*yy2;

}

}

var p99 = {};

p99.x = xr;

p99.y = yr;

return (p99);

}

 

 

function Innkod(ink) {

var im;

if (ink == 11) imn=15

if (ink == 12) imn=61

if (ink == 13) imn=26

if (ink == 14) imn=72

if (ink == 15) imn=37

if (ink == 16) imn=83

if (ink == 17) imn=48

if (ink == 18) imn=94

if (ink == 19) imn=59

 

if (ink == 21) imn=69

if (ink == 22) imn=25

if (ink == 23) imn=71

if (ink == 24) imn=36

if (ink == 25) imn=82

if (ink == 26) imn=47

if (ink == 27) imn=93

if (ink == 28) imn=58

if (ink == 29) imn=14

 

if (ink == 31) imn=24

if (ink == 32) imn=79

if (ink == 33) imn=35

if (ink == 34) imn=81

if (ink == 35) imn=46

if (ink == 36) imn=92

if (ink == 37) imn=57

if (ink == 38) imn=13

if (ink == 39) imn=68

 

if (ink == 41) imn=78

if (ink == 42) imn=34

if (ink == 43) imn=89

if (ink == 44) imn=45

if (ink == 45) imn=91

if (ink == 46) imn=56

if (ink == 47) imn=12

if (ink == 48) imn=67

if (ink == 49) imn=23

 

if (ink == 51) imn=33

if (ink == 52) imn=88

if (ink == 53) imn=44

if (ink == 54) imn=99

if (ink == 55) imn=55

if (ink == 56) imn=11

if (ink == 57) imn=66

if (ink == 58) imn=22

if (ink == 59) imn=77

 

if (ink == 61) imn=87

if (ink == 62) imn=43

if (ink == 63) imn=98

if (ink == 64) imn=54

if (ink == 65) imn=19

if (ink == 66) imn=65

if (ink == 67) imn=21

if (ink == 68) imn=76

if (ink == 69) imn=32

 

if (ink == 71) imn=42

if (ink == 72) imn=97

if (ink == 73) imn=53

if (ink == 74) imn=18

if (ink == 75) imn=64

if (ink == 76) imn=29

if (ink == 77) imn=75

if (ink == 78) imn=31

if (ink == 79) imn=86

 

if (ink == 81) imn=96

if (ink == 82) imn=52

if (ink == 83) imn=17

if (ink == 84) imn=63

if (ink == 85) imn=28

if (ink == 86) imn=74

if (ink == 87) imn=39

if (ink == 88) imn=85

if (ink == 89) imn=41

 

if (ink == 91) imn=51

if (ink == 92) imn=16

if (ink == 93) imn=62

if (ink == 94) imn=27

if (ink == 95) imn=73

if (ink == 96) imn=38

if (ink == 97) imn=84

if (ink == 98) imn=49

if (ink == 99) imn=95

return imn;

}

 

function rzn ( vv ) {

return ( Math.round ( vv * 10 ) ) / 10 ;

}

 

/*

var nq = randow_number(0, 3)

VbsMsg ("nq=" + nq);

 

function randow_number(lower_bound, upper_bound){

var initial_random =(upper_bound - lower_bound +1)*Math.random() + lower_bound

return Math.floor(initial_random)

}

*/