# script pulsanti itinerario

# E1-1


OnClicked:
	if Track(22,22).pathdir=1 and Track(22,22).color=green
		do delitinerary E1-1
		do delitinerary 1I-1
	else
		if Track(22,22).color=black
			do itinerary E1-1
		end
	end
end

# E1-2

OnClicked:
	if Track(22,22).pathdir=1 and Track(22,22).color=green
		do delitinerary E1-2
		do delitinerary 1I-2
	else
		if Track(22,22).color=black
			do itinerary E1-2
		end
	end
end

# E1-3

OnClicked:
	if Track(22,22).pathdir=1 and Track(22,22).color=green
		do delitinerary E1-3
		do delitinerary 1I-3
	else
		if Track(22,22).color=black
			do itinerary E1-3
		end
	end
end

# E1-4

OnClicked:
	if Track(22,22).pathdir=1 and Track(22,22).color=green
		do delitinerary E1-4
		do delitinerary 1I-4
	else
		if Track(22,22).color=black
			do itinerary E1-4
		end
	end
end

# E2-1

OnClicked:
	if Track(22,19).pathdir=1 and Track(22,19).color=green
		do delitinerary E2-1
	else
		if Track(22,19).color=black
			do itinerary E2-1
		end
	end
end

# E2-2

OnClicked:
	if Track(22,19).pathdir=1 and Track(22,19).color=green
		do delitinerary E2-2
	else
		if Track(22,19).color=black
			do itinerary E2-2
		end
	end
end

# E2-3

OnClicked:
	if Track(22,19).pathdir=1 and Track(22,19).color=green
		do delitinerary E2-3
	else
		if Track(22,19).color=black
			do itinerary E2-3
		end
	end
end

# E2-4

OnClicked:
	if Track(22,19).pathdir=1 and Track(22,19).color=green
		do delitinerary E2-4
	else
		if Track(22,19).color=black
			do itinerary E2-4
		end
	end
end

# 1-E1

OnClicked:
	if Track(43,19).pathdir=0 and Track(43,19).color=green
		do delitinerary 1-E1
		do delitinerary R2-E1
	else
		if Track(43,19).color=black
			do itinerary 1-E1
		end
	end
end

# 2-E1

OnClicked:
	if Track(49,22).pathdir=0 and Track(49,22).color=green
		do delitinerary 2-E1
		do delitinerary R2-E1
	else
		if Track(49,22).color=black
			do itinerary 2-E1
		end
	end
end

# 3-E1

OnClicked:
	if Track(51,25).pathdir=0 and Track(51,25).color=green
		do delitinerary 3-E1
		do delitinerary R2-E1
	else
		if Track(51,25).color=black
			do itinerary 3-E1
		end
	end
end

# 4-E1

OnClicked:
	if Track(51,28).pathdir=0 and Track(51,28).color=green
		do delitinerary 4-E1
		do delitinerary R2-E1
	else
		if Track(51,28).color=black
			do itinerary 4-E1
		end
	end
end

# 1-E2

OnClicked:
	if Track(43,19).pathdir=0 and Track(43,19).color=green
		do delitinerary 1-E2
	else
		if Track(43,19).color=black
			do itinerary 1-E2
		end
	end
end

# 2-E2

OnClicked:
	if Track(49,22).pathdir=0 and Track(49,22).color=green
		do delitinerary 2-E2
	else
		if Track(49,22).color=black
			do itinerary 2-E2
		end
	end
end

# 3-E2

OnClicked:
	if Track(51,25).pathdir=0 and Track(51,25).color=green
		do delitinerary 3-E2
	else
		if Track(51,25).color=black
			do itinerary 3-E2
		end
	end
end

# 4-E2

OnClicked:
	if Track(51,28).pathdir=0 and Track(51,28).color=green
		do delitinerary 4-E2
	else
		if Track(51,28).color=black
			do itinerary 4-E2
		end
	end
end

# 1-D2

OnClicked:
	if Track(81,19).pathdir=1 and Track(81,19).color=green
		do delitinerary 1-D2
	else
		if Track(81,19).color=black
			do itinerary 1-D2
		end
	end
end

# 2-D2

OnClicked:
	if Track(73,22).pathdir=1 and Track(73,22).color=green
		do delitinerary 2-D2
		do delitinerary 2-R6
	else
		if Track(73,22).color=black
			do itinerary 2-D2
		end
	end
end

# 2-D1

OnClicked:
	if Track(73,22).pathdir=1 and Track(73,22).color=green
		do delitinerary 2-D1
	else
		if Track(73,22).color=black
			do itinerary 2-D1
		end
	end
end

# 3-D2

OnClicked:
	if Track(66,25).pathdir=1 and Track(66,25).color=green
		do delitinerary 3-D2
		do delitinerary N4-R6
	else
		if Track(66,25).color=black
			do itinerary 3-D2
		end
	end
end

# 3-D1

OnClicked:
	if Track(66,25).pathdir=1 and Track(66,25).color=green
		do delitinerary 3-D1
		do delitinerary N4-D1
	else
		if Track(66,25).color=black
			do itinerary 3-D1
		end
	end
end

# 4-D2

OnClicked:
	if Track(64,28).pathdir=1 and Track(64,28).color=green
		do delitinerary 4-D2
		do delitinerary N4-R6
	else
		if Track(64,28).color=black
			do itinerary 4-D2
		end
	end
end

# 4-D1

OnClicked:
	if Track(64,28).pathdir=1 and Track(64,28).color=green
		do delitinerary 4-D1
		do delitinerary N4-D1
	else
		if Track(64,28).color=black
			do itinerary 4-D1
		end
	end
end

# D2-1

OnClicked:
	if Track(96,19).pathdir=0 and Track(96,19).color=green
		do delitinerary D2-1
		do delitinerary 1III-1
	else
		if Track(96,19).color=black
			do itinerary D2-1
		end
	end
end

# D2-3

OnClicked:
	if Track(96,19).pathdir=0 and Track(96,19).color=green
		do delitinerary D2-3
		do delitinerary 1III-3
	else
		if Track(96,19).color=black
			do itinerary D2-3
		end
	end
end

# D2-4

OnClicked:
	if Track(96,19).pathdir=0 and Track(96,19).color=green
		do delitinerary D2-4
		do delitinerary 1III-4
	else
		if Track(96,19).color=black
			do itinerary D2-4
		end
	end
end

# D1-2

OnClicked:
	if Track(89,22).pathdir=0 and Track(89,22).color=green
		do delitinerary D1-2
		do delitinerary 2II-2
	else
		if Track(89,22).color=black
			do itinerary D1-2
		end
	end
end

# D1-3

OnClicked:
	if Track(89,22).pathdir=0 and Track(89,22).color=green
		do delitinerary D1-3
		do delitinerary 2II-3
	else
		if Track(89,22).color=black
			do itinerary D1-3
		end
	end
end

# D1-4

OnClicked:
	if Track(89,22).pathdir=0 and Track(89,22).color=green
		do delitinerary D1-4
		do delitinerary 2II-4
	else
		if Track(89,22).color=black
			do itinerary D1-4
		end
	end
end

# 3-C
OnClicked:
	if Track(66,25).pathdir=1 and Track(66,25).color=green
		do delitinerary 3-C
		do delitinerary N4-C
	else
		if Track(66,25).color=black
			do itinerary 3-C
		end
	end
end

# 4-C

OnClicked:
	if Track(64,28).pathdir=1 and Track(64,28).color=green
		do delitinerary 4-C
		do delitinerary N4-C
	else
		if Track(64,28).color=black
			do itinerary 4-C
		end
	end
end

# C-3

OnClicked:
	if Track(96,29).pathdir=0 and Track(96,29).color=green
		do delitinerary C-3
		do delitinerary 3II-3
	else
		if Track(96,29).color=black
			do itinerary C-3
		end
	end
end

# C-4

OnClicked:
	if Track(96,29).pathdir=0 and Track(96,29).color=green
		do delitinerary C-4
		do delitinerary 3II-4
	else
		if Track(96,29).color=black
			do itinerary C-4
		end
	end
end



























