set(layer[skin_btn_vr].y, 100);
set(control.mousefovchange,0.0);
set(control.usercontrol,off);
set(layer[logo].visible, true);
set(layer[activespot].visible, false);
set(layer[skin_btn_vr].y, 0);
set(control.mousefovchange,2.0);
set(control.usercontrol,all);
set(layer[logo].visible, false);
set(layer[activespot].visible, true);
mul(stagescale,0.5);
if(%1 == 0 AND %1 != 1,
set(layer[houltais].css, font-family:tahoma;color:#ffffff;font-size:32px;);
set(layer[placis].css, font-family:tahoma;color:#ffffff;font-size:16px;);
set(layer[menu].css, font-family:tahoma;color:#ffffff;font-size:16px;);
set(layer[houltais].bgcolor, 0x007ec5);
set(layer[placis].bgcolor, 0x777777);
set(layer[menu].bgcolor, 0x777777);
);
if(%1 == 1,
set(layer[houltais].css, font-family:tahoma;color:#ffffff;font-size:16px;);
set(layer[placis].css, font-family:tahoma;color:#ffffff;font-size:32px;);
set(layer[menu].css, font-family:tahoma;color:#ffffff;font-size:16px;);
set(layer[placis].bgcolor, 0x007ec5);
set(layer[houltais].bgcolor, 0x777777);
set(layer[menu].bgcolor, 0x777777);
);
if(%1 == 2,
set(layer[menu].css, font-family:tahoma;color:#ffffff;font-size:32px;);
set(layer[placis].css, font-family:tahoma;color:#ffffff;font-size:16px;);
set(layer[houltais].css, font-family:tahoma;color:#ffffff;font-size:16px;);
set(layer[menu].bgcolor, 0x007ec5);
set(layer[placis].bgcolor, 0x777777);
set(layer[houltais].bgcolor, 0x777777);
);
set(layer[map1].enable, false);
set(layer[map2].enable, false);
set(layer[houltais].enable, false);
set(layer[placis].enable, false);
set(layer[map1].enable, true);
set(layer[map2].enable, true);
set(layer[houltais].enable, true);
set(layer[placis].enable, true);
set(layer[houltais].css, font-family:tahoma;color:#007ec5;font-size:32px;);
set(layer[placis].css, font-family:tahoma;color:#007ec5;font-size:32px;);
set(layer[map1].onclick, openmap());
set(layer[map1].alpha, 1.0 );
tween(layer[map1].scale, 0.7);
set(layer[map2].onclick, openmap());
set(layer[map2].alpha, 1.0 );
tween(layer[map2].scale, 0.7);
set(events.onclick, null);
set(layer[map1].onclick, closemap() );
set(layer[map1].alpha, 0.6 );
tween(layer[map1].scale, 0.3);
set(layer[map2].onclick, closemap() );
set(layer[map2].alpha, 0.6 );
tween(layer[map2].scale, 0.3);
set(layer[map1].onclick, closemap() );
set(layer[map1].alpha, 0.6 );
tween(layer[map1].scale, 0.3);
set(layer[map2].onclick, closemap() );
set(layer[map2].alpha, 0.6 );
tween(layer[map2].scale, 0.3);
set(layer[radar].parent, layer[%1]);
set(layer[radar].visible, true);
set(layer[radar].heading, %2);
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[2].name););
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions());
if(map_loaded,div(map_expected_aspect,get(image_w),get(image_h));div(screen_expected_aspect,stagewidth,stageheight);fixaspectresize(map_expected_aspect,screen_expected_aspect););
if(%2 LE %1,
mul(new_plugin_width,stagewidth,0.8);
set(plugin[map1].width,get(new_plugin_width));
set(plugin[map1].height,prop);
set(plugin[map2].width,get(new_plugin_width));
set(plugin[map2].height,prop);
,
mul(new_plugin_height,stageheight,0.8);
set(plugin[map1].height,get(new_plugin_height));
set(plugin[map1].width,prop);
set(plugin[map2].height,get(new_plugin_height));
set(plugin[map2].width,prop);
);
if(logo_loaded, div(logo_ratio,get(width),get(height));div(screen_ratio,stagewidth,stageheight);fix_ratio(logo_ratio,screen_ratio););
if(%2 LE %1,
mul(new_width,stagewidth,0.3);
set(plugin[logo].width, get(new_width));
set(plugin[logo].height,prop);
,
mul(new_height,stageheight,0.3);
set(plugin[logo].height, get(new_height));
set(plugin[logo].width,prop);
);
if(plugin[webvr].isenabled == false,
set(layer[map1].visible, true);
set(layer[map2].visible, false);
);
if(plugin[webvr].isenabled == false,
set(layer[map1].visible, false);
set(layer[map2].visible, true);
);
set(layer[map1].visible, false);
set(layer[map2].visible, false);
set(layer[radar].parent, spot1);
set(layer[radar].heading, 55);
set(layer[radar].parent, spot2);
set(layer[radar].heading, -130);
set(layer[radar].parent, spot3);
set(layer[radar].heading, 90);
set(layer[radar].parent, spot4);
set(layer[radar].heading, 190);
set(layer[radar].parent, spot5);
set(layer[radar].heading, 55);
set(layer[radar].parent, spot6);
set(layer[radar].heading, -120);
set(layer[radar].parent, spot7);
set(layer[radar].heading, 10);