<?xml version="1.0" encoding="utf-8"?>

	<data name="buttontext">
		<p align="center"><img src="info.png" align="top"/></p>
	</data>

	<data name="buttontextHDR">
		<p align="left"><font size="+3" face="arial"><b><i>HDR off</i></b></font></p>
	</data>	
	<data name="buttontextHDRon">
		<p align="left"><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>Universidad Laboral de Gijón</b>
		 </font>
	   </p>
	   <br/>
	   <a href="event:openurl(http://es.wikipedia.org/wiki/Universidad_Laboral_de_Gij%C3%B3n,_blank);"><img src="foto_laboral.jpg" /></a>
	   
		La <strong>Universidad Laboral de Gijón</strong> se encuentra situada en Gijón (Asturias, España), concretamente en la parroquia de Cabueñes, a poco más de tres kilómetros del centro urbano. Construida entre 1946 y 1956, es la obra arquitectónica más importante realizada en en el siglo XX en Asturias y es considerada, con sus 270 000 m², <strong>el edificio más grande de España</strong>.
		 <br/><br/><a href="event:lookto(-132,-36,50,smooth());">La Torre</a> con una altura de 117,60 m, responde al modelo de la Giralda de Sevilla. Un ascensor interno permite acceder al mirador, sin duda la mejor atalaya de Gijón.
		<br/><br/>


	   <p align="center">
		 <font face="times" color="#CCCCCC">



	   <a href="event:action(playtour);">Iniciar Tour Automático</a> -  
	   
	   <a href="event:lookto(100,20,150);">Centrar visión</a> - 
	   
	   <a href="event:action(show_html_field2);">Mostrar Publicidad</a><br/><br/> -
	     
	   <a href="event:action(hidewindow2,htmldata);action(showbutton);">CERRAR VENTANA</a><br/><br/>
	   
		 </font>
	   </p>	   
	   
	   
	</data>  
	
	<data name="cssdata1">
	   a       { color:#638cc1; text-decoration:underline; font-weight:bold; }
	   a:hover { color:#885500; }
	</data>  
	
	
		
	<action name="playtour">
	
		action(hidewindow2,htmldata);
	    lookto(-132,-36,50);
		wait(1);
		action(showpic,pic_s3);
		wait(2);
		action(hidepic,pic_s3);
		wait(1);		
		lookto(-41,0,135);
		wait(1);
		lookto(-246,5,60);
		wait(1);	
		action(showpic,pic_s4);
		wait(2);
		action(hidepic,pic_s4);
		wait(1);			
		lookto(-245,89,135);
		wait(1);		
		lookto(-117,23,135);
		wait(1);		
		lookto(-131,-43,52);
		wait(1);		
		lookto(-296,-2.4,60);		
		wait(1);		
		action(cargar_dos);
		lookto(340,28,128);
		wait(1);		
		lookto(338,2,60);
		wait(1);		
		lookto(-122,-12,60);
		action(cargar_tres);		
		wait(1);		
		lookto(159,-24,135);
		wait(1);		
		lookto(45,-30,76);
		wait(1);
		lookto(322,90,100);
		wait(1);		
		lookto(109,8,135);
		wait(2);
		lookto(-209,-30,135);
		wait(2);
		lookto(109,8,135);
		wait(2);				
		action(fisheyeview);		
		action(cargar_uno);	
	</action>

	<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>


	<!-- 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














	<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="bottom" edge=""
 	        x="20" y="450"
 	        width="500" height="320"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        autosize=""
	        background="true"
	        backgroundcolor="0xFFFFFF"
	        blur="20"
	        bordercolor="0xFFFFFF"
	        borderwidth="1"
	        css="data:cssdata1"
	        glow="6"
	        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="5"
 	        alpha="0.00" blendmode="normal"
 	        smoothing="true"
 	        origin="righttop" edge=""
 	        x="20" y="20"
 	        width="310" height="340"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick=""
	        autosize=""
	        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="bottom" edge=""
 	        x="0" y="50"
 	        width="250" height="150"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(show_html_field);"
	        autosize="center"
	        background="false"
	        backgroundcolor="16777215"
	        blur="0"
	        bordercolor="0"
	        borderwidth="0"
	        css=""
	        glow="0"
	        glowcolor="16777215"
	        html="data:buttontext"
	        roundedge="0"
	        selectable="true"
	        shadow="0"
	        textblur="0"
	        textglow="0"
	        textglowcolor="0xFFFFFF"
	        textshadow="0"
	        />			

	<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="20"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="
			lookto(-256,4,65,smooth());
			action(cargar_uno_hdr)"
	        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="100" height="20"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="
			lookto(-256,4,65,smooth());
			action(cargar_uno)"
	        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="camara.png"
	         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,camara.png);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s2);"
	         />

	<hotspot name="s3"
	         url="camara.png"
	         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,camara.png);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s3);"
	         />

	<hotspot name="s4"
	         url="camara.png"
	         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,camara.png);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s4);"
	         />

	<hotspot name="s5"
	         url="camara.png"
	         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,camara.png);tween(scale,0.5);"
	         ondown=""
	         onup=""
	         onclick="action(showpic,pic_s5);"
	         />

	



