﻿<krpano version="1.23" title="Virtual Tour" onstart="loadscene('scene_1',null,MERGE,BLEND(0.5)" >

	<include url="plugins/combobox.xml" />
	
	<combobox_design name="glas" margin="2" open_close_speed="0.25">
		<style name="combobox_container_style"
			bgcolor="0xEEEEEE"
			bgalpha="0.85"
			bgborder="1 0x333333 0.5"
			bgroundedge="5"
			bgshadow="0 4 10 0x000000 0.3"
			height="50"
			/>
		<style name="combobox_marker_style"
			css="color:#222222;"
			alpha="0.7"
			bg="false"
			txtshadow=""
			/>
		<style name="comboboxitem_cbscenes_autoname_"
			css="color:#222222;font-size: 0.75em;"
			padding="2"
			/>

	</combobox_design>

	<combobox name="cbscenes" design="glas" align="lefttop" x="10" y="10" onloaded="add_scene_items();" />

	<action name="add_scene_items" scope="local" > 

		for(set(i,0), i LT scene.count, inc(i),
			caller.additem( calc('[img src=[dq]' + scene[get(i)].thumburl +  '[dq] style=[dq]float:left;border:1px solid rgba(255,255,255,0.5);width:72px;height:72px;vertical-align:middle;margin-right:8px;[dq]/]'+scene[get(i)].title), calc('loadscene('+i+',null,MERGE,BLEND(0.5))') );
		
            cl = 'comboboxitem_cbscenes_autoname_' + i;
            layer[*cl].bgcolor = get(scene[get(i)].cbgcol);
            layer[*cl].bg = true;
            layer[*cl].bgalpha = 0.8;
            layer[*cl].onoutitem = calc('set(bg,true);');		
            layer[*cl].onoveritem = calc('set(bgalpha, 0.2);');					
		);
		
	</action>
	
	<scene name="scene_1" title="scene_1" cbgcol="0xffbdbd" onstart="" thumburl="panos/Senza_titolo_1.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<preview type="grid(cube,32,32,512,0xCCCCCC,0xffbdbd,0x999999);"/>

	</scene>

	<scene name="scene_2" title="scene_2" cbgcol="0xaede88" onstart="" thumburl="panos/Senza_titolo_1.tiles/thumb.jpg" lat="" lng="" alt="" heading="">

		<preview type="grid(cube,32,32,512,0xCCCCCC,0xaede88,0x999999);"/>

	</scene>
	
	<scene name="scene_3" title="scene_3" cbgcol="0xa3c0e3" onstart="" thumburl="panos/Senza_titolo_1.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<preview type="grid(cube,32,32,512,0xCCCCCC,0xa3c0e3,0x999999);"/>

	</scene>

	<scene name="scene_4" title="scene_4" cbgcol="0xa643d4" onstart="" thumburl="panos/Senza_titolo_1.tiles/thumb.jpg" lat="" lng="" alt="" heading="">

		<preview type="grid(cube,32,32,512,0xCCCCCC,0xa643d4,0x999999);"/>

	</scene>	
	
</krpano>
