<template btnMRD template=a_yzoomin w=36 bmp="routes.bmp#3" fonttype=bw font="tahoma" valign="TOP+2" align="CENTER" fontsize=11 color=#FFFFFF>
<TEMPLATE txtMRD z=100 w=36 font="tahoma" fontsize=11 fonttype=bw color=#FFFFFF align="CENTER">
<TEMPLATE txtMRD1 template=txtMRD fontsize=10 align="CENTER">
<layer d_LMultiRouteDraw y=270 z=30>

	<CHECKBOX d_btnMRD1 template=btnMRD text="" x=0 var=dMRDraw1 onrelease='run d_MultiRouteDrawCheck' onlongclick='run d_MultiRouteDrawSelect 0 dMRDraw1' noreleaseonlongclick>
	<TEXT xxx  template=txtMRD x=2 y=3 w=34 text="Fast" color=#FF0000 font="tahomabd">
	<TEXT d_MRDtxtDist1      template=txtMRD x=2 y=15 w=24 textmodel_wstr="route.multiplan1.dist.number_text" visiblemodel="ui.dMRDraw1&route.multiplan1.dist.valid">
	<TEXT d_MRDtxtDist1Unit template=txtMRD1 x=2 y=16 w=10 textmodel_wstr="route.multiplan1.dist.unit_text" visiblemodel="ui.dMRDraw1&route.multiplan1.dist.valid">
	<DIRDISTALIGNER xxx  x=2 w=36 align="CENTER" control=d_MRDtxtDist1 padding=2 control=d_MRDtxtDist1Unit>
	<TEXT d_MRDtxtTime1      template=txtMRD x=2 y=25 w=24 textmodel_timespan="route.multiplan1.time" formatmodel=3 visiblemodel="ui.dMRDraw1&route.multiplan1.time.valid">
	<TEXT d_MRDtxtTime1Unit template=txtMRD1 x=2 y=26 w=10 textmodel_timespan="route.multiplan1.time" formatmodel=4 visiblemodel="ui.dMRDraw1&route.multiplan1.time.valid">
	<DIRDISTALIGNER xxx x=2 w=36 align="CENTER" control=d_MRDtxtTime1 padding=2 control=d_MRDtxtTime1Unit>

	<CHECKBOX d_btnMRD2 template=btnMRD text="" x=39 var=dMRDraw2 onrelease='run d_MultiRouteDrawCheck' onlongclick='run d_MultiRouteDrawSelect 1 dMRDraw2' noreleaseonlongclick>
	<TEXT xxx  template=txtMRD x=41 y=3 w=34 text="Short" color=#00BE00 font="tahomabd">
	<TEXT d_MRDtxtDist2      template=txtMRD x=41 y=15 w=24 textmodel_wstr="route.multiplan2.dist.number_text" visiblemodel="ui.dMRDraw2&route.multiplan2.dist.valid">
	<TEXT d_MRDtxtDist2Unit template=txtMRD1 x=41 y=16 w=10 textmodel_wstr="route.multiplan2.dist.unit_text" visiblemodel="ui.dMRDraw2&route.multiplan2.dist.valid">
	<DIRDISTALIGNER xxx  x=41 w=36 align="CENTER" control=d_MRDtxtDist2 padding=2 control=d_MRDtxtDist2Unit>
	<TEXT d_MRDtxtTime2      template=txtMRD x=41 y=25 w=24 textmodel_timespan="route.multiplan2.time" formatmodel=3 visiblemodel="ui.dMRDraw2&route.multiplan2.time.valid">
	<TEXT d_MRDtxtTime2Unit template=txtMRD1 x=41 y=26 w=10 textmodel_timespan="route.multiplan2.time" formatmodel=4 visiblemodel="ui.dMRDraw2&route.multiplan2.time.valid">
	<DIRDISTALIGNER xxx x=41 w=36 align="CENTER" control=d_MRDtxtTime2 padding=2 control=d_MRDtxtTime2Unit>

	<CHECKBOX d_btnMRD3 template=btnMRD text="" x=78 var=dMRDraw3 onrelease='run d_MultiRouteDrawCheck' onlongclick='run d_MultiRouteDrawSelect 2 dMRDraw3' noreleaseonlongclick>
	<TEXT xxx  template=txtMRD x=80 y=3 w=34 text="Economical" color=#0000FF font="tahomabd">
	<TEXT d_MRDtxtDist3      template=txtMRD x=80 y=15 w=24 textmodel_wstr="route.multiplan3.dist.number_text" visiblemodel="ui.dMRDraw3&route.multiplan3.dist.valid">
	<TEXT d_MRDtxtDist3Unit template=txtMRD1 x=80 y=16 w=10 textmodel_wstr="route.multiplan3.dist.unit_text" visiblemodel="ui.dMRDraw3&route.multiplan3.dist.valid">
	<DIRDISTALIGNER xxx  x=80 w=36 align="CENTER" control=d_MRDtxtDist3 padding=2 control=d_MRDtxtDist3Unit>
	<TEXT d_MRDtxtTime3      template=txtMRD x=80 y=25 w=24 textmodel_timespan="route.multiplan3.time" formatmodel=3 visiblemodel="ui.dMRDraw3&route.multiplan3.time.valid">
	<TEXT d_MRDtxtTime3Unit template=txtMRD1 x=80 y=26 w=10 textmodel_timespan="route.multiplan3.time" formatmodel=4 visiblemodel="ui.dMRDraw3&route.multiplan3.time.valid">
	<DIRDISTALIGNER xxx  x=80 w=36 align="CENTER" control=d_MRDtxtTime3 padding=2 control=d_MRDtxtTime3Unit>

	<CHECKBOX d_btnMRD4 template=btnMRD text="" x=117 var=dMRDraw4 onrelease='run d_MultiRouteDrawCheck' onlongclick='run d_MultiRouteDrawSelect 3 dMRDraw4' noreleaseonlongclick>
	<TEXT xxx  template=txtMRD x=119 y=3 w=34 text="Easy" color=#00FF00 font="tahomabd">
	<TEXT d_MRDtxtDist4      template=txtMRD x=119 y=15 w=24 textmodel_wstr="route.multiplan4.dist.number_text" visiblemodel="ui.dMRDraw4&route.multiplan4.dist.valid">
	<TEXT d_MRDtxtDist4Unit template=txtMRD1 x=119 y=16 w=10 textmodel_wstr="route.multiplan4.dist.unit_text" visiblemodel="ui.dMRDraw4&route.multiplan4.dist.valid">
	<DIRDISTALIGNER xxx  x=119 w=36 align="CENTER" control=d_MRDtxtDist4 padding=2 control=d_MRDtxtDist4Unit>
	<TEXT d_MRDtxtTime4      template=txtMRD x=119 y=25 w=24 textmodel_timespan="route.multiplan4.time" formatmodel=3 visiblemodel="ui.dMRDraw4&route.multiplan4.time.valid">
	<TEXT d_MRDtxtTime4Unit template=txtMRD1 x=119 y=26 w=10 textmodel_timespan="route.multiplan4.time" formatmodel=4 visiblemodel="ui.dMRDraw4&route.multiplan4.time.valid">
	<DIRDISTALIGNER xxx  x=119 w=36 align="CENTER" control=d_MRDtxtTime4 padding=2 control=d_MRDtxtTime4Unit>

	<CHECKBOX d_btnMRD5 template=btnMRD text="" x=156 var=dMRDraw5 onrelease='run d_MultiRouteDrawCheck' onlongclick='run d_MultiRouteDrawSelect 4 dMRDraw5' noreleaseonlongclick>
	<TEXT xxx  template=txtMRD x=158 y=3 w=34 text="Scenic" color=#00FFFF font="tahomabd">
	<TEXT d_MRDtxtDist5      template=txtMRD x=158 y=15 w=24 textmodel_wstr="route.multiplan5.dist.number_text" visiblemodel="ui.dMRDraw5&route.multiplan5.dist.valid">
	<TEXT d_MRDtxtDist5Unit template=txtMRD1 x=158 y=16 w=10 textmodel_wstr="route.multiplan5.dist.unit_text" visiblemodel="ui.dMRDraw5&route.multiplan5.dist.valid">
	<DIRDISTALIGNER xxx  x=158 w=36 align="CENTER" control=d_MRDtxtDist5 padding=2 control=d_MRDtxtDist5Unit>
	<TEXT d_MRDtxtTime5      template=txtMRD x=158 y=25 w=24 textmodel_timespan="route.multiplan5.time" formatmodel=3 visiblemodel="ui.dMRDraw5&route.multiplan5.time.valid">
	<TEXT d_MRDtxtTime5Unit template=txtMRD1 x=158 y=26 w=10 textmodel_timespan="route.multiplan5.time" formatmodel=4 visiblemodel="ui.dMRDraw5&route.multiplan5.time.valid">
	<DIRDISTALIGNER xxx  x=158 w=36 align="CENTER" control=d_MRDtxtTime5 padding=2 control=d_MRDtxtTime5Unit>

	<BUTTON d_btnMRD6 y=9 template=btnMRD text="Back" x=195 color=#FFFFFF iconspr="$ico_popup_exit.bmp" iconalign="CENTER" iconvalign="TOP+13" onrelease='prevstate'>
</layer>

<layer d_LMultiRouteDrawControl z=30>
   <BUTTON xxx  x=43 y=0 bmp="$map_zoom_vminus.bmp#2" onClick='START_STOP_ZOOM 1 1' onRelease='START_STOP_ZOOM 1 0' onMouseLeave='START_STOP_ZOOM 1 0' > 
   <BUTTON xxx  x=92 y=0 bmp="$zoom_vclose.bmp#2"  clickmodel="map.carviewpresets FRONT1" onlongclick=''>
   <BUTTON xxx  x=141 y=0 bmp="$zoom_vmid.bmp#2"   clickmodel="map.carviewpresets FRONT2" onlongclick=''>
   <BUTTON xxx  x=190 y=0 bmp="$map_zoom_vplus.bmp#2" onClick='START_STOP_ZOOM 0 1' onRelease='START_STOP_ZOOM 0 0' onMouseLeave='START_STOP_ZOOM 0 0'>                 
   
   <BUTTON xxx  x=1 y=2 z=50 w=40  bmp="$fit_multiroute_screen.bmp#2" onrelease='FITROUTETOSCREEN_MULTIPLAN 45 35 240 280'>
   <CHECKBOX xxx  x=1 y=39 bmp="$btn_multidraw_line.bmp#2"  var=dMRDrawProgress onrelease='run d_MultiRouteDrawSpr'>
   <BUTTON xxx  x=1 y=76 z=50 w=40  bmp="$btn_Itiner_screen.bmp#2" onrelease='run d_MultiRouteDrawSwith 0' enabledmodel="navigation.has_route">
</layer>
 
<TEMPLATE d_spr_multi x=60  z=100  w=170 h=23 >
<layer d_LMultiRouteDrawProgress y=39 z=50>
	<SPRITE dpadMPRoute x=39 y=0 z=20 bmp="btn_multidraw_liner_pad.bmp" alpha=32 onrelease='run d_MultiRouteDrawSprL'  visiblemodel="ui.dMRDrawProgress|!route.multiplan4.finished|!route.multiplan5.finished">
	<TEXT xxx template=xtxt x=48 y=3 w=100 z=30 text="Please wait ..." glowsize=1 glowtype=1 fontsize=10 color=#FF0000 color2=#FFFFFF font="tahomabd" visiblemodel="!route.multiplan4.finished|!route.multiplan5.finished">
	<SPRITE dsprMPRoute1 template=d_spr_multi y=10 visiblemodel="!route.multiplan1.finished|ui.dMRDrawProgress&ui.dMRDraw1">
	<SPRITE dsprMPRoute2 template=d_spr_multi y=30 visiblemodel="!route.multiplan2.finished|ui.dMRDrawProgress&ui.dMRDraw2">
	<SPRITE dsprMPRoute3 template=d_spr_multi y=49 visiblemodel="!route.multiplan3.finished|ui.dMRDrawProgress&ui.dMRDraw3">
	<SPRITE dsprMPRoute4 template=d_spr_multi y=69 visiblemodel="!route.multiplan4.finished|ui.dMRDrawProgress&ui.dMRDraw4">
	<SPRITE dsprMPRoute5 template=d_spr_multi y=88 visiblemodel="!route.multiplan5.finished|ui.dMRDrawProgress&ui.dMRDraw5">
</layer>

<element_template det_itinerentry>
	<SPRITE xxx x=2 y=3 z=20 iconindex=1 iconmodel="*.icon_id" visiblemodel="*.icon_visible" zoom=800>
	<SPRITE xxx x=2 y=3 z=20 iconmodel="*.icon_small_id" visiblemodel="!*.icon_visible" zoom=800>
	<BUTTON btnETItinerEntry%ID% bmp="btn_itiner_pad.bmp"  clickmodel="route.itiner.list.setcurrent $i" onrelease='run d_MultiRouteDrawSwith 1'>
	<TEXT txtETItinerEntryCrossing%ID% template=xtxt3 watchstate=btnETItinerEntry%ID% z=20 align="LEFT" valign="TOP" y=0 fontsize=16 textmodel_wstr="*.cross_count" visiblemodel="*.distance_visible">
	<TEXT txtETItinerEntryLength%ID% template=xtxt3 watchstate=btnETItinerEntry%ID% z=20 align="LEFT" valign="TOP" y=0 fontsize=16 textmodel_wstr="*.length.full_text" visiblemodel="*.distance_visible">
	<ALIGNER xxx align="LEFT" x=50 control=txtETItinerEntryCrossing%ID% padding=5 control=txtETItinerEntryLength%ID%>
	<ROADSHIELDEDTEXT xxx template=xtxt3 watchstate=btnETItinerEntry%ID% z=20 x=35 w=155 h=19 align="LEFT" y=15 valign="CENTER-2" fontsize=13 textmodel_wstr="*.text_enc" visiblemodel="*.distance_visible">
	<ROADSHIELDEDTEXT xxx template=xtxt3 watchstate=btnETItinerEntry%ID% z=20 x=35 w=155 h=19 align="LEFT" y=7 valign="CENTER-2" fontsize=13 textmodel_wstr="*.text_enc" visiblemodel="!*.distance_visible">
</element_template>

<layer d_LMultiRouteDrawItiner x=40 y=60 z=30 visiblemodel="route.multiplan4.finished&route.multiplan5.finished">
	<LIST dlist_itiner template=tlist y=0 row=7 cellh=35 element_template="det_itinerentry" listmodel="route.itiner.list" SHOWSELECTION=1 KEEPSELECTIONONSCREEN=1>
</layer>

<layer d_LMultiRouteDrawItinerPage z=30 visiblemodel="route.multiplan4.finished&route.multiplan5.finished">
	<BUTTON xxx bmp="$btn_Itiner_sort.bmp#2" x=1 y=161 w=26 font="tahoma" fontsize=9 fonttype=bw clicked_coloring=1 textmodel_str="route.itiner.detailmode" align="CENTER-2" valign="BOTTOM-7" onrelease='run sc_btnRItN_Mode_OnRelease, run sc_RItMNew_go_to_current_loc'>

	<BUTTON xxx          bmp="$btn_arrowup_itiner.bmp#3" x=1 y=198 clickmodel="ui.dlist_itiner.prevpage" enabledmodel="ui.dlist_itiner.prevpage.valid" onrelease='run sc_RItMNew_go_to_current_loc'>
	<BUTTON xxx          bmp="$btn_arrowdn_itiner.bmp#3" x=1 y=235 clickmodel="ui.dlist_itiner.nextpage" enabledmodel="ui.dlist_itiner.nextpage.valid" onrelease='run sc_RItMNew_go_to_current_loc'>
</layer>

<script d_DMRMapSize>
       map.x 0
       map.w 240
       map.y 0
       map.h 320
</script>

<script d_DMRItinerPos>
	runif bKeepItinerArrow 1 'd_LMultiRouteDrawItiner.h 35, d_LMultiRouteDrawItiner.y 235, dlist_itiner.row 1'
	else_runif bKeepItinerArrow 2 'd_LMultiRouteDrawItiner.h 245, d_LMultiRouteDrawItiner.y 25, dlist_itiner.row 7'
	dlist_itiner.redraw
</script>
