<?xml version="1.0" encoding="utf-8"?>


	<!-- PARAMETROS INICIALES -->
	<memory maxmem="350" />
	<network downloadqueues="" decodequeues="" />

	<events onenterfullscreen=""
	        onexitfullscreen=""
	        />

	<progress showload="bar()"
	          showwait="loopings()"
	          />

	<display fps="60"
	         details="16"
	         tessmode="-1"
	         movequality="LOW"
	         stillquality="HIGH"
	         stilltime="0.25"
	         />


	<view hlookat       ="-498.711581"
	      vlookat       ="-3.870150"
	      camroll       ="0.000000"
	      fov           ="146.177853"
	      fovmin        ="1.000000"
	      fovmax        ="179.000000"
	      limitfov      ="true"
	      fisheye       ="0.30"
	      fisheyefovlink="0.80"
	      stereographic ="false"
	      architectural ="0.0"
	      architecturalonlymiddle="false"
	      limitview     ="lookat"
	      hlookatmin    ="0.000000"
	      hlookatmax    ="360.000000"
	      vlookatmin    ="-90.000000"
	      vlookatmax    ="90.000000"
	      />

	<control usercontrol    ="all"
	         mousetype      ="moveto"
	         movetocursor   ="none"
	         cursorsize     ="10.0"
	         mouseaccelerate="1.00"
	         mousespeed     ="10.00"
	         mousefriction  ="0.80"
	         headswing      ="0.00"
	         keybaccelerate ="0.50"
	         keybspeed      ="10.00"
	         keybfriction   ="0.90"
	         keybinvert     ="false"
	         mousefovchange ="1.00"
	         keybfovchange  ="0.75"
	         fovspeed       ="3.00"
	         fovfriction    ="0.90"
	         keycodesleft   ="37"
	         keycodesright  ="39"
	         keycodesup     ="38"
	         keycodesdown   ="40"
	         keycodesin     ="16,65,107"
	         keycodesout    ="17,89,90,109"
	         />

	<contextmenu fullscreen="true">
	</contextmenu>

	<autorotate enabled ="false"
	            waittime="1.5"
	            accel   ="1"
	            speed   ="10"
	            horizon ="0"
	            tofov   ="NaN"
	            />


			   
	<textstyle name="default" font="Arial" fontsize="12" bold="true" italic="false" 
	           textcolor="16777215" background="false" backgroundcolor="16777215" border="false" bordercolor="0" 
	           alpha="1" blendmode="normal" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);" 
	           origin="cursor" edge="bottom" textalign="center" xoffset="0" yoffset="-10" showtime="0.1" noclip="true"
	           />

	<data name="buttontext">
		<p align="center"><font size="+3" face="arial"><b><i>Mostrar Opciones 2</i></b></font></p>
	</data>
	
	<data name="buttontextHDR">
		<p align="center"><font size="+3" face="arial"><b><i>HDR off</i></b></font></p>
	</data>	
	<data name="buttontextHDRon">
		<p align="center"><font size="+3" face="arial"><b><i>HDR on</i></b></font></p>
	</data>		
	<!-- DATA HTML Y CSS -->
	<data name="html1">
		<p align="center"><font size="+4" face="times"><b>Hello from Actionscript HTML</b></font></p><a href="event:action(loadpano);"><img src="image.jpg" /></a>
		styles test:<br /><b>bold</b><br /><i>italic</i><br /><u>underlined</u><br /><br />
		links test:<br /><a href="http://www.krpano.com">open krpano site</a><br /><a href="event:lookto(0,0,130);lookto(90,0,150);">do some lookto actions</a><br /><a href="event:action(move,htmltext);">click to move field</a><br /><a href="event:action(show_html_field2);">open second field</a><br /><br />
		color test:<br /><font color="#FF0000">red </font><font color="#00FF00">green </font><font color="#0000FF">blue</font><br /><br /><br /><br />
		list test:<br /><li><ul>list1</ul><br /><ul>list2</ul><br /><ul>list3</ul><br /></li><p align="left">
		left align test left align test left align test left align test left align test<br />
		left align testleft align testleft align test<br /></p><p align="center">
		center align test center align test center align test center align test center align test<br />
		center align test center align test center align test<br /></p><p align="right">
		right align test right align test right align test right align test right align test<br />
		right align test right align test right align test<br /></p><p align="center"><font size="+4"><a href="event:action(hidewindow2,htmltext);action(showbutton);">close window</a><br /></font></p>
	</data>

	<data name="css1">
		a       { text-decoration:underline;  color:#110088;  font-weight:bold; }
		a:hover { color:#885500; }
	</data>

	<data name="css2">
		a       { text-decoration:underline;  color:#0000FF;  font-weight:bold; }
		a:hover { color:#FF0000; }
	</data>

	<data name="html22">
		<html>
			<p align="center">Pagina de prueba 2</p>
			<p align="center"><font size="+4">
			
			<a href="event:action(hidewindow2,htmltext2);">close</a><br />
			</font></p><br /><br /><br />
		</html>
	</data>			  
	
	<data name="html2">
		<include url="externo.html" />
	</data>
	
	
	<data name="htmldata1">
	   <p align="center">
		 <font face="times" size="+4">
		   <b>PRUEBAS DE SCRIPT</b>
		 </font>
	   </p>
	   
	   <a href="event:action(loadpano);"><img src="laboral_1_th.jpg" /></a><br/><br/>

	   <a href="event:
	   action(hidewindow2,htmldata);
	    lookto(88.517,1.097,6,smooth());
		lookat(180.8,1.9,22);
		wait(blend);
		lookto(263.711,0.982,87,smooth(100,20,50));
		lookto(100,20,130);
		timerset(9,0,lookto(-70,-36,40),1,0,linear,,,lookto(-70,-36,40));
		wait(1);
		lookto(100,20,50);
		wait(1);
		lookto(100,20,150);
		wait(1);
		lookto(-70,-36,40);
		wait(1);
		lookto(-133,-27,40);
		loadpano(test.xml,null,KEEPBASE|NOPREVIEW,BLEND(1));
	   ">Centrar visión</a><br/>
	   
	   <a href="event:lookto(100,20,150);">Centrar visión</a><br/><br/>
	   
	   <a href="event:action(show_html_field2);">Abrir Ventana 2</a><br/><br/>	 
	     
	   <a href="event:action(hidewindow2,htmldata);action(showbutton);">CERRAR VENTANA</a><br/><br/>
	   
	</data>  
	
	<data name="cssdata1">
	   a       { text-decoration:underline; font-weight:bold; }
	   a:hover { color:#885500; }
	</data>  
	
	
		



	<action name="show_html_field">
		set(plugin[button].enabled,false);
		set(plugin[htmltext].y,-1500);
		tween(plugin[button].alpha,0,,,set(plugin[button].visible,false));
		tween(plugin[htmltext].alpha,1,0);
		tween(plugin[htmltext].textblur,0,0);
		tween(plugin[htmltext].blur,0,0);
		set(plugin[htmltext].visible,true);
		set(plugin[htmltext].enabled,true);
		tween(plugin[htmltext].y,0);
	</action>

	<action name="showbutton">
		set(plugin[button].visible,true);
		set(plugin[button].enabled,true);
		tween(plugin[button].alpha,1);
	</action>

	<action name="move">
		plugin[%1].changeorigin(lefttop,lefttop);
		tween(plugin[%1].x,0,1,easeoutquad);
		tween(plugin[%1].y,0,1,easeoutquad,action(move2,%1));
	</action>

	<action name="move2">
		plugin[%1].changeorigin(rightbottom,rightbottom);
		tween(plugin[%1].x,0,1,easeoutquad);
		tween(plugin[%1].y,0,1,easeoutquad,action(moveback,%1));
	</action>

	<action name="moveback">
		plugin[%1].changeorigin(center,center);
		tween(plugin[%1].x,0,1,easeoutquad);
		tween(plugin[%1].y,0,1,easeoutquad);
	</action>

	<action name="hidewindow">
		set(plugin[%1].enabled,false);
		tween(plugin[%1].alpha,0);
		tween(plugin[%1].blur,20);
		tween(plugin[%1].textblur,20,,,set(plugin[%1].visible,false));
	</action>

	<action name="hidewindow2">
		set(enabled,false);
		tween(alpha,0);
		tween(blur,20);
		tween(textblur,20,,,set(visible,false));
	</action>

	<action name="show_html_field2">
		set(plugin[htmltext2].enabled,true);
		tween(plugin[htmltext2].blur,8,0);
		tween(plugin[htmltext2].textblur,8,0);
		set(plugin[htmltext2].blur,8);
		set(plugin[htmltext2].textblur,8);
		set(plugin[htmltext2].visible,true);
		tween(plugin[htmltext2].blur,0);
		tween(plugin[htmltext2].textblur,0);
		tween(plugin[htmltext2].alpha,0.8);
	</action>

	<action name="loadpano">
		action(hidewindow,htmltext);
		action(showbutton);
		loadpano(test.xml,null,KEEPBASE,BLEND(2));
	</action>	
		   
	<!-- MOSTRAR Y OCUJLTAR IMAGENES -->
	
	<action name="showpic">
		action(hidepic, pic_s2);
		action(hidepic, pic_s3);
		action(hidepic, pic_s4);
		action(hidepic, pic_s5);
		set(plugin[%1].enabled,true);
		set(plugin[%1].visible,true);
		tween(plugin[%1].alpha, 1, 0.50);
	</action>
	<action name="hidepic">
		set(plugin[%1].enabled,false);
		tween(plugin[%1].alpha, 0, 0.25, default, set(plugin[%1].visible,false) );
	</action>


	<!-- plugins:EDITOR, OPTIONS e IMAGENES -->



		<!--	key="ABQIAAAAoSllMnO2VaR5v8WcJI2ysRQbtiKj2v8XzIs27iIOSPQyEJhgVBT9d-LtTuTOybt9JwPUBAfWR8UNeg"-->

<plugin name="maps" url="%SWFPATH%/plugins/googlemaps.swf" handcursor="false"
			align="leftbottom"
			x="0"
			y="0"
			width="200"
			height="400"

		<!--	key="ABQIAAAAoSllMnO2VaR5v8WcJI2ysRQbtiKj2v8XzIs27iIOSPQyEJhgVBT9d-LtTuTOybt9JwPUBAfWR8UNeg"-->

			lat="43.523846"
			lng="-5.615864"
			zoom="18"

			maptype="SATELLITE"

			dragging="true"
			scrollwheel="true"
			continuouszoom="false"
			keyboard="false"
			crosshairs="false"

			onmapready=""
			onmapmoved=""
			onmapzoomed=""
			>
		
		<radar visible="true"
			   size="60"
			   alpha="0.33"
			   fillcolor="0xFFFFFF"
			   fillalpha="1.0"
			   linecolor="0xFFFFFF"
			   linealpha="0.0"
			   linewidth="0.0"
			   glow="true"
			   glowcolor="0"
			   glowwidth="4"
			   glowstrength="3"
			   behindspots="true"
			   dragable="true"
			   />
		
		<positioncontrol visible="true" anchor="topleft"  x="2" y="2" />
		<zoomcontrol     visible="true" anchor="topright" x="2" y="2" hasscrolltrack="true" />

		<spot name="sg1" 			
			  lat="43.523846"
			  lng="-5.615864"
		      heading="18"  
		      active="true" 
		      onclick="loadpano(laboral_hdr.xml)" 
			  />
			  
		<spot name="sg10" 			
			  lat="43.520905"
			  lng="-5.615156"
		      heading="18"  
		      active="true" 
		      onclick="loadpano(laboral_2.xml)" 
		/>	
			  	      
		<spot name="sg20" 			
			  lat="43.520372"
			  lng="-5.616809"
		      heading="18"  
		      active="true" 
		      onclick="loadpano(laboral_3.xml)" 
		 />	
			  	      		
		<spot name="sg2" 
			  lat="43.523846"
			  lng="-5.925864"
		      onhover="showtext(Mostrar Fotografía);" 
		      onclick="action(showpic,pic_s2);" 
		      />		      
		      
		<spot name="sg3"
			  lat="43.523846"
			  lng="-5.735864"
		      onhover="showtext(Mostrar Fotografía);" 
		      onclick="action(showpic,pic_s3);" 
		      />	      
		      
	</plugin>













	<plugin name="editor"
 	        url="%SWFPATH%/plugins/editor.swf"
	        keep="false"
 	        visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="0"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="" edge=""
 	        x="" y=""
 	        width="500" height="375"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        />
	<plugin name="options"
 	        url="%SWFPATH%/plugins/options.swf"
	        keep="false"
 	        visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="0"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="" edge=""
 	        x="" y=""
 	        width="500" height="375"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        />
	<plugin name="pic_s2"
 	        url="laboral_1.jpg"
	        keep="false"
 	        visible="false" enabled="false" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="center" edge=""
 	        x="" y=""
 	        width="prop" height="75%"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(hidepic,pic_s2);"
	        />
	<plugin name="pic_s3"
 	        url="laboral_2.jpg"
	        keep="false"
 	        visible="false" enabled="false" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="center" edge=""
 	        x="" y=""
 	        width="prop" height="75%"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(hidepic,pic_s3);"
	        />
	<plugin name="pic_s4"
 	        url="laboral_3.jpg"
	        keep="false"
 	        visible="false" enabled="false" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="center" edge=""
 	        x="" y=""
 	        width="prop" height="75%"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(hidepic,pic_s4);"
	        />
	<plugin name="pic_s5"
 	        url="laboral_4.jpg"
	        keep="false"
 	        visible="false" enabled="false" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="center" edge=""
 	        x="" y=""
 	        width="prop" height="75%"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(hidepic,pic_s5);"
	        />
	<plugin name="htmltext"
 	        url="%SWFPATH%/plugins/textfield.swf"
	        keep="false"
 	        visible="false" enabled="false" handcursor="true" capture="true" children="true"
 	        zorder="0"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="center" edge=""
 	        x="0" y="0"
 	        width="500" height="511"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        autosize="center"
	        background="true"
	        backgroundcolor="0xFFFFFF"
	        blur="20"
	        bordercolor="0xFFFFFF"
	        borderwidth="1"
	        css="data:cssdata1"
	        glow="0"
	        glowcolor="16777215"
	        html="data:htmldata1"
	        roundedge="0"
	        selectable="false"
	        shadow="5"
	        textblur="20"
	        textglow="0"
	        textglowcolor="16777215"
	        textshadow="0"
	        />
	<plugin name="htmltext2"
 	        url="%SWFPATH%/plugins/textfield.swf"
	        keep="false"
 	        visible="false" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="0"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="righttop" edge=""
 	        x="20" y="20"
 	        width="250" height="373"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        autosize="center"
	        background="true"
	        backgroundcolor="0xFFFFFF"
	        blur="8"
	        bordercolor="0xFF0000"
	        borderwidth="0"
	        css="data:css2"
	        glow="6"
	        glowcolor="0xFFFFFF"
	        html="data:html2"
	        roundedge="0"
	        selectable="true"
	        shadow="5"
	        textblur="8"
	        textglow="0"
	        textglowcolor="16777215"
	        textshadow="0"
	        />
	<plugin name="button"
 	        url="%SWFPATH%/plugins/textfield.swf"
	        keep="false"
 	        visible="true" enabled="true" handcursor="true" capture="true" children="false"
 	        zorder="0"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="center" edge=""
 	        x="0" y="150"
 	        width="200" height="22"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(show_html_field);"
	        autosize="center"
	        background="false"
	        backgroundcolor="16777215"
	        blur="0"
	        bordercolor="0"
	        borderwidth="1"
	        css=""
	        glow="0"
	        glowcolor="16777215"
	        html="data:buttontext"
	        roundedge="0"
	        selectable="true"
	        shadow="0"
	        textblur="0"
	        textglow="4"
	        textglowcolor="0xFFFFFF"
	        textshadow="3"
	        />			
	
	<plugin name="HDRon"
 	        url="%SWFPATH%/plugins/textfield.swf"
	        keep="false"
 	        visible="true" enabled="true" handcursor="true" capture="true" children="false"
 	        zorder="0"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="lefttop" edge="lefttop" align="lefttop"
 	        x="10" y="30"
 	        width="100" height="60"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="loadpano(laboral_hdr.xml)"
	        autosize="center"
	        background="false"
	        backgroundcolor="16777215"
	        blur="0"
	        bordercolor="0"
	        borderwidth="1"
	        css=""
	        glow="0"
	        glowcolor="16777215"
	        html="data:buttontextHDRon"
	        roundedge="0"
	        selectable="true"
	        shadow="0"
	        textblur="0"
	        textglow="4"
	        textglowcolor="0xFFFFFF"
	        textshadow="3"
	        />
						
	<plugin name="HDRoff"
 	        url="%SWFPATH%/plugins/textfield.swf"
	        keep="false"
 	        visible="true" enabled="true" handcursor="true" capture="true" children="false"
 	        zorder="0"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="lefttop" edge="lefttop" align="lefttop"
 	        x="10" y="10"
 	        width="200" height="20"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="loadpano(laboral_1.xml)"
	        autosize="center"
	        background="false"
	        backgroundcolor="16777215"
	        blur="0"
	        bordercolor="0"
	        borderwidth="1"
	        css=""
	        glow="0"
	        glowcolor="16777215"
	        html="data:buttontextHDR"
	        roundedge="0"
	        selectable="true"
	        shadow="0"
	        textblur="0"
	        textglow="4"
	        textglowcolor="0xFFFFFF"
	        textshadow="3"
	        />			
	<!--							
	<plugin name="htmltext" url="%SWFPATH%/plugins/textfield.swf" 
        origin="center" 
        width="500" height="300" 
        x="0" y="0" 
        html="data:htmldata1"
        css="data:cssdata1"
        borderwidth="1"
        bordercolor="0xFFFFFF"
        backgroundcolor="0xFFFFFF"
        selectable="false"
        autosize="center"
        />
		-->




<!-- COMBO BOX 
   <plugin name="combobox"
		url="plugins/combobox.swf" 
		align="lefttop" 
		x="10" 
		y="10" 
		width="150"
		keep="true"
		onloaded="action(setupitems);"
		/>
    -->
	
	
    <!-- NOTE - this action is called from the combobox plugin
         so the prefix "plugin[combobox]." is not needed here 
         
    <action name="setupitems">
        removeall();
        additem(Item 1, loadpano(test_2.xml,null,MERGE,BLEND(1)); );
        additem(Item 2, loadpano(test_2.xml,null,MERGE,BLEND(1)); );
        additem(Item 3, loadpano(test_2.xml,null,MERGE,BLEND(1)); );
    </action>		
			
-->





	<!-- HOTSPOTS -->

	<hotspot name="s2"
	         url="hotspot_ani_black.swf"
	         keep="false"
	         ath="-71.0"
	         atv="-50.0"
	         zoom="false"
	         scale="0.5"
	         visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	         zorder="0"
	         alpha="1.00" blendmode="normal"
 	         smoothing="true"
 	         onloaded="resetsize();"
	         onover="set(url,laboral_1_th.jpg);tween(scale,1);"
	         onhover=""
	         onout="set(url,hotspot_ani_black.swf);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s2);"
	         />

	<hotspot name="s3"
	         url="hotspot_ani_black.swf"
	         keep="false"
	         ath="-134.2209"
	         atv="-33.4172"
	         zoom="false"
	         scale="0.5"
	         visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	         zorder="0"
	         alpha="1.00" blendmode="normal"
 	         smoothing="true"
 	         onloaded="resetsize();"
	         onover="set(url,laboral_2_th.jpg);tween(scale,1);"
	         onhover=""
	         onout="set(url,hotspot_ani_black.swf);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s3);"
	         />

	<hotspot name="s4"
	         url="hotspot_ani_black.swf"
	         keep="false"
	         ath="-273"
	         atv="-1.14"
	         zoom="false"
	         scale="0.5"
	         visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	         zorder="0"
	         alpha="1.00" blendmode="normal"
 	         smoothing="true"
 	         onloaded="resetsize();"
	         onover="set(url,laboral_3_th.jpg);tween(scale,1);"
	         onhover=""
	         onout="set(url,hotspot_ani_black.swf);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s4);"
	         />

	<hotspot name="s5"
	         url="hotspot_ani_black.swf"
	         keep="false"
	         ath="-255"
	         atv="-2.73"
	         zoom="false"
	         scale="0.5"
	         visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	         zorder="0"
	         alpha="1.00" blendmode="normal"
 	         smoothing="true"
 	         onloaded="resetsize();"
	         onover="set(url,laboral_4_th.jpg);tween(scale,1);"
	         onhover=""
	         onout="set(url,hotspot_ani_black.swf);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s5);"
	         />

	



