!! no need for translation

# the "$subject" variable is set in intro.phtml
buttontext=!record 12 of remarks.$taal

!if $subject=5
    # to build an isosceles triangle with a principal point
    identify=A,B,C,$alphabet
    file=0
	principal=!randitem 1,2,3
    question=!record 29 of remarks.$taal
	princ=!item $principal of A,B,C
	question= $question $princ
    checkfile=exercise5.proc
    customToolBar=0 | 1 | 10 34 | 16 15 | 6
 !exit
!endif

!if $subject=1
    # to build an isosceles triangle
    identify=A,B,C,$alphabet
    file=0
    question=!record 27 of remarks.$taal
    checkfile=exercise1.proc
    customToolBar=0 | 1 | 10 34 | 16 15 | 6
 !exit
!endif

!if $subject=2
    # to build an equilateral triangle
    identify=A,B,C,$alphabet
    file=0
    question=!record 30 of remarks.$taal
    checkfile=exercise2.proc
    customToolBar=0 | 1 | 10 34 | 16 15 | 6
 !exit
!endif

!if $subject=3
    # to build a rhombus
    identify=A,B,C,D,$alphabet
    file=0
    question=!record 33 of remarks.$taal
    checkfile=exercise3.proc
    customToolBar=0 | 1 | 10 34 | 16 15 | 6
 !exit
!endif

!if $subject=4
    # to build a kite
    identify=A,B,C,D,$alphabet
    file=0
    question=!record 36 of remarks.$taal
    checkfile=exercise4.proc
    customToolBar=0 | 1 | 10 34 | 16 15 | 6
 !exit
!endif

!if $subject=6
    # paralelogram tool "parallel lines"
    identify=A,B,C,D,$alphabet
    file=0
    question=!record 37 of remarks.$taal
    checkfile=exercise6.proc
    customToolBar=0 | 1 | 3 | 2 | 16 15 | 6
    xB=!randitem 5,10
    yB=!randitem 0,4  
    xD=!randitem -1,-5
    ch=!randitem 1,2
    name=!item $ch of D,C
    name2=!item $ch of A,B
    point=!item $ch of D=($xD,4) , C=(5,3)
    Segment=!record 53 of remarks.$taal
!!the appletcomman must be in the same langage than appletlangage
    appletcommand=document.applets[0].evalCommand("A=(1,1)")\
document.applets[0].evalCommand("B=($xB,$yB)")\
document.applets[0].evalCommand("$point")\
document.applets[0].evalCommand("a=$Segment[A,B]")\
document.applets[0].evalCommand("b=$Segment[$name2,$name]")
 !exit
!endif

!if $subject=7
    # parallelogram tool "circle" and three points
    identify=A,B,C,D,$alphabet
    file=1
    question=!record 37 of remarks.$taal
    checkfile=exercise7.proc
    customToolBar=0 | 1 | 34 | 2 | 16 15 | 6
    xA=!randitem 1,10
    yA=!randitem 1,6 
    appletcommand=document.applets[0].evalCommand("A=($xA,$yA)")
    HINT=!record 32 of remarks.$taal
 !exit
!endif

!if $subject=8
    # parallelogram tool "circle" and two points and the center
    identify=A,B,C,D,I,$alphabet
    question=!record 35 of remarks.$taal
    file=0
    checkfile=exercise8.proc
    customToolBar=0 | 1 | 2 | 10 | 16 15 | 6
    yB=!randitem 0,4,6
    Segment=!record 53 of remarks.$taal
    appletcommand=document.applets[0].evalCommand("A=(1,1)")\
document.applets[0].evalCommand("B=(5,$yB)")\
document.applets[0].evalCommand("I=(4,2)")\
document.applets[0].evalCommand("a=$Segment[A,B]")
 !exit
!endif

!if $subject=11
    # parallelogram tool "symetry" and two points and the center
    identify=A,B,C,D,I,$alphabet
    question=!record 35 of remarks.$taal
    file=0
    Segment=!record 53 of remarks.$taal
    checkfile=exercise11.proc
    customToolBar=0 | 1 | 29 | 16 15 | 6
    yB=!randitem 0,4,6
    appletcommand=document.applets[0].evalCommand("A=(1,1)")\
document.applets[0].evalCommand("B=(5,$yB)")\
document.applets[0].evalCommand("I=(4,2)")\
document.applets[0].evalCommand("a=$Segment[A,B]")
 !exit
!endif

!if $subject=9
    # to construct a point C in [AB] with AC=x1/x2 AB
    identify=A,B,C,$alphabet
    file=2
    yy=!randint 3,10
    xx=!randint 1,$yy-1
    question=!record 43 of remarks.$taal
    checkfile=exercise9.proc
    customToolBar=0 | 1 | 2 | 3 | 16 15 | 6
    appletcommand=
    HINT=!record 45 of remarks.$taal
 !exit
!endif

!if $subject=10
    # to construct another point C in (AB) with AC=x1/x2 AB
    identify=A,B,C,$alphabet
    file=3
    yy=!randint 6,9
    xx=!randint 1,10-$yy
    question=!record 44 of remarks.$taal
    checkfile=exercise10.proc
    customToolBar=0 | 1 | 2 | 3 | 16 15 | 6
    appletcommand=
    HINT=!record 45 of remarks.$taal
 !exit
!endif
