 <krpano version="1.0.8" idletime="1" showerrors="false" logkey="true" onstart="action(qtvrcursor);">

<!-- <plugin name="options" url="../plugins/options.swf" keep="true" zorder="10" /> 
<plugin name="editor" url="../plugins/editor.swf" keep="true" zorder="10"/>
<plugin name="cursor" url="../plugins/cursorposition.swf" keep="true" zorder="10" />
<plugin name="black2" url="../icons/grey.png" align="topleft" alpha="0.85"
        keep="true" width="110" height="80" zorder="9" /> -->
	  
<plugin name="remember" thumbset="0" keep="true"/>	  
	  
<plugin name="border_top"	zorder="1" url="../icons/green.png" visible="true" width="100%" height="2" enabled="false" align="lefttop"	edge="lefttop"	keep="true"/> 
<plugin name="border_bottom" zorder="1" url="../icons/green.png" visible="true" width="100%" height="2" enabled="false" align="leftbottom" edge="leftbottom" keep="true"/>
<plugin name="border_left"   zorder="1" url="../icons/green.png" visible="true" height="100%" width="2" enabled="false" align="lefttop"	edge="lefttop"	keep="true"/> 
<plugin name="border_right"  zorder="1" url="../icons/green.png" visible="true" height="100%" width="2" enabled="false" align="righttop"   edge="righttop"   keep="true"/>	  		
	
<view	  fovtype 		="MFOV"
	      camroll       ="0.000000"
	      fov           ="120"
	      fovmin        ="80.000000"
	      fovmax        ="120.000000"
	      maxpixelzoom  ="NaN"
	      limitfov      ="false"
	      fisheye       ="0.00"
	      fisheyefovlink="0.00"
	      stereographic ="false"
	      architectural ="0.0"
	      architecturalonlymiddle="false"
	      limitview     ="auto"
	      hlookatmin    ="NaN"
	      hlookatmax    ="NaN"
	      vlookatmin    ="NaN"
	      vlookatmax    ="NaN"
	      />
	  
<display fps="26"
	      details="26"
	      tessmode="1"
	      movequality="LOW"
	      stillquality="LOW"
	      flash10="on"
	      movequality10="low"
	      stillquality10="HIGH"
	      stilltime="0.25"
	      />
			 
<control mousetype="moveto"
		zoomtocursor="true"
		zoomoutcursor="true"
		mouseaccelerate="0.5"
		mousespeed="7"
		mousefriction="0.8"
		mousefovchange="0.5"
		fovspeed="0.6"
		keybfriction="0.55"
		keybaccelerate="0.3"
		keybfovchange="0.75"
		keybspeed="0.4"
		fovfriction="0.9"
		touchfriction="0.9"
		trackpadzoom="true"
		movetocursor="none"
		/>	

<progress showload="bar(lefttop,100%,4,0,0,solid,0x000000,0xFF6600,0xAAAAAA,0x000000,0,0xFFFFFF,0)" /> 

<plugin name="soundinterface" url="../plugins/soundinterface.swf" keep="true"/>									
			
<hotspot name="nadir"
        	url="../icons/nadir.png"
       	    ath="0"	atv="90"
       	    distorted="true"
         	scale="1.15" visible="true"
		 	keep="true"
		 	zorder="2"
        	rotatewithview="false"
         	onclick="openurl(http://www.virtualnorthland.com,_blank);"
         	/>
			
<plugin name="topleft" 
			zorder="1" 
			url="../icons/logo.png" handcursor="true"
			alpha="1" scale="0.5" visible="true" keep="true"
			align="topleft" edge="topleft" 
			tag="skin" tag2="top" 
			x="10" y="10" />
			
<plugin name="topright" 
			zorder="1" 
			url="../icons/conf.png" handcursor="true"
			alpha="1" scale="0.5" visible="true" keep="true"
			align="topright" edge="topright" 
			tag="skin" tag2="top" 
			x="10" y="10" 
			onhoverk="showtext(Click to tour the Conference Center);"
			onclick="openurl('../conference/index.html', _self)"/>/>										

<plugin name="titletext"
 	        url="../plugins/textfield.swf"
	        keep="true" y="10"
 	        visible="true" enabled="false" handcursor="false" capture="false" children="false"
	        zorder="103"
 	        alpha="1" blendmode="normal"
 	        smoothing="true"
 	        align="topcenter" edge="topcenter"
 	        width="50%" height="50"
			background="false"
	        css="p{color:#FFFFFF; font-family:comic sans ms; font-weight:bold; font-size:20; margin-left:5; margin-right:5; text-align:center; }" 
	        glowcolor="16777215"
	        html="[p][/p]"
	        selectable="false"
	        shadow="2"
	        textglow="2"
	        textglowcolor="ffffffff"
	        textheight="200"
	        textshadow="2"
	        />	
			
<plugin name="scrolltextfield" url="../plugins/textfield_scrollable.swf"
  			width="200" height="200" y="40"
 			css="p { color: #000000; font-size: 12px;} a { color: #0000ff; }"
  			html="" align="bottomright" edge="bottomright"
  			offset_top="5"
  			offset_bottom="5"
  			offset_left="5"
  			offset_right="5"
  			background="true"
  			parent=""
  			onover="freezeview(true);"
  			onhover="" 
  			onout="freezeview(false);"
  			roundedge="20"
			keep="true"
  			/>
			
<plugin name="in"       devices="desktop|tablet" x="-120" style="button" crop="160|0|40|40" ondown="set(fov_moveforce,-1);"  onup="set(fov_moveforce,0);" />
	<plugin name="out"      devices="desktop|tablet" x="-90" style="button" crop="200|0|40|40"  ondown="set(fov_moveforce,+1);"  onup="set(fov_moveforce,0);" />
	<plugin name="left"     devices="desktop|tablet" x="-60"  style="button" crop=  "0|0|40|40"  ondown="set(hlookat_moveforce,-1);"  onup="set(hlookat_moveforce,0);" />
	<plugin name="right"    devices="desktop|tablet" x="-30"  style="button" crop= "40|0|40|40"  ondown="set(hlookat_moveforce,+1);"  onup="set(hlookat_moveforce,0);" />
	<plugin name="up"       devices="desktop|tablet" x="+0"   style="button" crop= "80|0|40|40"  ondown="set(vlookat_moveforce,-1);"  onup="set(vlookat_moveforce,0);" />
	<plugin name="down"     devices="desktop|tablet" x="+30"  style="button" crop="120|0|40|40" ondown="set(vlookat_moveforce,+1);"  onup="set(vlookat_moveforce,0);" />
	<plugin name="quality"  devices="desktop|tablet" x="+60"  style="button" crop="240|0|40|40"  onhover="showtext(Toggle Quality);" onclick="IF(actioncord == 2, highdetails(), lowdetails()); switch(actioncord,1,2);" actioncord="2"/>
	
	<plugin name="openfs"   devices="desktop|tablet" x="+120" style="button" crop="280|0|40|40"  onhover="showtext(Fullscreen);"      onclick="set(fullscreen,true);"  visible="true"  />
	<plugin name="closefs"  devices="desktop|tablet" x="+120" style="button" crop="320|0|40|40"  onhover="showtext(Exit Fullscreen);"  onclick="set(fullscreen,false);" visible="false" />
	
<style name="button" zorder="2" keep="true" edge="center" details="30" url="../icons/buttons.png"
			width="30" height="prop" effect="glow(0x000000,1,3,3);"  parent="bottombar"
			onover="tween(scale,1.05); set(effect, glow(0x0202fe,1,3,3));" onout="tween(scale,1); set(effect, glow(0x000000,1,3,3));" 
			y="3" tag="skin" align="center" scale="1"/>				
			
<plugin name="bottombar"
			width="100%" height="40" zorder="1" 
			url="../icons/greenbar.png" handcursor="false"
			alpha="1" scale="1" visible="true" keep="true"
			align="bottomright" edge="bottomright" 
			tag="skin" 
			x="0" y="0" />	
			
	<textstyle name="default" font="comic sans ms" fontsize="14" bold="true" italic="false"
	           textcolor="0xffffff" background="false" border="false"
	           blendmode="layer" effect="glow(0x000000,1,2,2);dropshadow(2,45,0x000000,2,1);"
	           origin="cursor" edge="bottom" xoffset="15" yoffset="-15" showtime="0.1" fadeintime="0.1" fadetime="0.1"
	           />
			 
	<plugin name="bitly"
		 url="../plugins/bitly.swf"
		 apikey="R_36ae3e567b70b56f950ccbae99ec2869"
		 login="virtualnorthland"
		 onsuccess="shareviaemail(%URL);"
		 onerror="(bit.ly error);"
		 keep="true"
		 />		  
		  	
	<plugin name="swfaddress" preload="true"
		url="../plugins/swfaddress.swf"
		mode="manual" keep="true"
		onurlchange="urlchange(%PATH);"
		onparamschange="paramschangeaction();"
		>
	</plugin>
	
	<action name="setswf">
		set(plugin[swfaddress].path, %1);
		set(plugin[swfaddress].title, %2);
	</action>

	<action name="paramschangeaction">
		if (plugin[swfaddress].hasparams == true, parseparams(););
	</action>
	
	<action name="parseparams">
		if (plugin[swfaddress].param_ath !== null, copy(view.hlookat, plugin[swfaddress].param_ath));
		if (plugin[swfaddress].param_atv !== null, copy(view.vlookat, plugin[swfaddress].param_atv));
		if (plugin[swfaddress].param_fov !== null, copy(view.fov, plugin[swfaddress].param_fov));
		plugin[swfaddress].removeparams();
	</action>
	
	<action name="resetview">
		lookto(0, 0, 86.3);
	</action>
	
	<action name="prepareurl">
		getlinktothisview();
		plugin[bitly].shorten(plugin[swfaddress].fullurlescaped);
	</action>
	
	<action name="getlinktothisview">
		plugin[swfaddress].removeparams();
		plugin[swfaddress].setparams(ath=r(view.hlookat),atv=r(view.vlookat),fov=view.fov);
	</action>
	
	<action name="urlchange">
		if(%1 == /, move(lobby.xml));
		if(%1 == /lobby/, move(lobby.xml));	
		if(%1 == /business_center/, move(business center.xml));
		if(%1 == /mainpool/, move(main pool.xml));
		if(%1 == /upperpool/, move(upper pool.xml));
		if(%1 == /pres_suite1/, move(Presidential Suite.xml));
		if(%1 == /pres_suite2/, move(Presidential Suite 2.xml));
		if(%1 == /lakeview/, move(king room.xml));
		if(%1 == /tworoom/, move(king suite.xml));
		if(%1 == /double_room/, move(double room.xml));	
		if(%1 == /kids_suite_water1/, move(water_kids.xml));
		if(%1 == /kids_suite_water2/, move(water_kids 2.xml));
		if(%1 == /kids_suite_outdoor1/, move(outdoor_kids.xml));
		if(%1 == /kids_suite_outdoor2/, move(outdoor_kids 2.xml));
	</action>
	
	<action name="move">

			set(view.fov, 120);
			loadpano(%1,null,MERGE,BLEND(1));
			paramschangeaction();

	</action>	

	<action name="sethotspot3d">

	addhotspot(%1);
	set(hotspot[%1].ath, %2); 
	set(hotspot[%1].atv, %3); 
	set(hotspot[%1].keep, false); 
	set(hotspot[%1].edge, center);
	set(hotspot[%1].visible, true); 
	set(hotspot[%1].enabled, true); 
	set(hotspot[%1].handcursor, true); 
	set(hotspot[%1].capture, true); 
	set(hotspot[%1].url, %CURRENTXML%/hotspot3d.png); <!-- url to hotspot3d image file -->
	set(hotspot[%1].distorted, true);
	set(hotspot[%1].scale, %4);
	set(hotspot[%1].rx, -85);
	set(hotspot[%1].onout, set(hotspot[%1].effect,''); );
	set(hotspot[%1].onhover, 
		showtext( %5 ,hstitletext); 
		set(hotspot[%1].effect,  glow(0xFFFFFF,1,4,10); );  
	);<!-- onclick hover effect -->
	
	set(hotspot[%1].onclick, 
		breakall(); 
		wait(0.2); 
		lookto( get(hotspot[%1].ath), 0, 30, true ); 
		set(plugin[loadingbg2].visible, true); 
		%6   <!-- an action, for example - loadscene( scenename , null, MERGE, BLEND(0.7) );  -->
	);
	
	txtadd(hsname, %1,'shadow'); 
	addhotspot(get(hsname));
	set(hotspot[get(hsname)].ath, %2); 
	set(hotspot[get(hsname)].atv, 27); 
	set(hotspot[get(hsname)].keep, false); 
	set(hotspot[get(hsname)].edge, center);
	set(hotspot[get(hsname)].visible, true); 
	set(hotspot[get(hsname)].enabled, false); 
	set(hotspot[get(hsname)].capture, false); 
	set(hotspot[get(hsname)].handcursor, false); 
	set(hotspot[get(hsname)].alpha, 0.085);
	set(hotspot[get(hsname)].url, %CURRENTXML%/hotspot3dshadow.png); <!-- url to shadow3d image file -->
	set(hotspot[get(hsname)].distorted, true);
	set(hotspot[get(hsname)].scale, %4);
	set(hotspot[get(hsname)].zorder, -1);
	set(hotspot[get(hsname)].rx, -82);
	rotatehotspot(%1,get(hsname));
	</action>

	<action name="sethotspotshadow"><!-- sethotspotshadow( hsname, ath, atv, rotateX ); for change of hotspot shadom position  -->
	txtadd(hsname, %1,'shadow');
	set(hotspot[get(hsname)].ath, %2); 
	set(hotspot[get(hsname)].atv, %3); 
	set(hotspot[get(hsname)].rx, %4); 
	</action>

	<action name="rotatehotspot"><!-- rotatehotspot(hs_name,hsshadow_name); continiously rotating hotspots -->
	set(hotspot[%1].ry,0); tween(hotspot[%1].ry, -180, 2 , easeInOutCubic, delayedcall(5, rotatehotspot(%1, %2); ); );
	set(hotspot[%2].width,50); tween(hotspot[%2].width, -50, 2 , easeInOutCubic, );
	</action>

<!-- onhver title text style -->
<textstyle 
	name="hstitletext" 
	origin="cursor" 
	edge="left" 
	xoffset="20" 
	yoffset="20" 
	textalign="center" 
	background="false" 
	border="false" 
	font="Arial"  	
	fontsize="14" 
	textcolor="0xFFFFFF" 
	bold="false" 
	effect="glow(0xa35106,1,5,3);"/>	
	
<!-- # AUTOTHUMBS ######################################################################################### -->
<autothumbs 
	width="500"	height="150" lrbutoon_x="20" shadow_x="33" 
	thumbsbar_border_percent="0.08"
	thumbsbar_height_percent="0.9"
	thumbsbar_scroll_h="17"
	thumbsbar_border="0" 
	thumbsbar_w="0" 
	thumbsbar_h="0"
	lrbutoon_y="0"
	mask_w="0" 
	mask_y="0" 
	thumb_normal_effect="glow(0x000000,0.6,4,2);"
	thumb_hover_effect="glow(0xFFFFFF,1,4,10);"
	thumb_current_effect="glow(0xf26522,1,4,10);"
	thumb_current="null" thumbs_scale="1"
	autohide="true" thumb_count="0"/>

<textstyle name="onhovertext" font="Arial" fontsize="17.0" bold="false" italic="false"
	textcolor="0xFFFFFF" effect="glow(0x592f0e,1,4,4);"
	background="false"	backgroundcolor=""
	border="false"	bordercolor=""
	alpha="1.0"	blendmode="normal"
	origin="bottomcenter" noclip="true"
	edge="bottomcenter"	textalign="bottomcenter"
	xoffset="0" yoffset="110"
	showtime="0.1" fadetime="0.0" fadeintime="0.0"/>

<action name="autothumbs_set">set(counter, 0); set(autothumbs.thumb_count,0);
	if(%1 != 'null', set(autothumbs.width,%1), );
	if(%2 != 'null', set(autothumbs.height,%2), );
	autothumbs_calculatesizes();
	autothumbs_resize();
	set(scroll_update_triger,true);
	set(scroll_move_triger,true);
	autothumbs_addthumbs();
	set(autothumbs.thumbs_scalingfinished, true );
	button_effect_config(thumbs_left,0);
	button_effect_config(thumbs_right,32);
	button_effect_config(thumbs_hide,64);
	thumbs_config(); autothumbs_show();
</action>

<action name="autothumbs_refreshthumbs">
	if( %1 == 'null', set(counter,0);, set(counter,%1); );
	txtadd(thumb_name,'thumb_image_', get(counter) );
	if( autothumbs_started, 
		if(counter LT autothumbs.thumb_count, 
			removeplugin(get(thumb_name)); 
			add(counter,1); 
			autothumbs_refreshthumbs(get(counter)); 
		,
			autothumbs_addthumbs();
		);
	,
		autothumbs_addthumbs();
	);
</action>

<action name="autothumbs_removethumbs">
	if( %1 == 'null', set(counter,0);, set(counter,%1); );
	txtadd(thumb_name1,'thumb_', get(counter) );
	txtadd(thumb_name2,'thumb_image_', get(counter) );
	if( autothumbs_started, 
		if(counter LT autothumbs.thumb_count, 
			removeplugin(get(thumb_name1)); 
			removeplugin(get(thumb_name2)); 
			add(counter,1); 
			autothumbs_removethumbs(get(counter)); 
		,
			set(autothumbs.thumb_count,0);
			set(plugin[thumbs_bar].width,0);
			autothumbs_scrollconfig();
		);
	,
	);
	set(counter,0);
	set(plugin[remember].thumbset, 0);
	tween(plugin[thumbs_show].scale, 0);
	set(plugin[thumbs_show].visible, false); 
</action>

<action name="autothumbs_scrollconfig">
	if( plugin[thumbs_bar].width GT autothumbs.thumbsbar_w, 
		add(plugin[thumbs_back].height, get(autothumbs.height), get(autothumbs.thumbsbar_scroll_h) );
		copy(plugin[thumbs_scrollbg].width, autothumbs.mask_w );
		set(plugin[thumbs_scroll].visible, true);
		set(plugin[thumbs_left].visible, true);
		set(plugin[thumbs_right].visible, true);
		set(plugin[thumbs_bar].edge, lefttop);
		set(plugin[thumbs_bar].align, lefttop);
		div(scrollprop,autothumbs.thumbsbar_w,plugin[thumbs_bar].width);
		mul(plugin[thumbs_scrollbtn].width,plugin[thumbs_scrollbg].width,scrollprop);
		sub(scroll_max, get( plugin[thumbs_scrollbg].width ), get( plugin[thumbs_scrollbtn].width ) );
		if(autothumbs_started,
			autothumb_scrollmove(0); 
			set(scroll_move_triger,false);
		);
	,
		set(plugin[thumbs_back].height, get(autothumbs.height) );
		set(plugin[thumbs_scroll].visible, false);
		set(plugin[thumbs_left].visible, false);
		set(plugin[thumbs_right].visible, false);
		set(plugin[thumbs_bar].edge, top);
		set(plugin[thumbs_bar].align, top);
		set(plugin[thumbs_bar].x, 0);
	);
</action>

<action name="autothumb_scrollupdate">	
	div( scrollprop, plugin[thumbs_bar].x, thumbs_scrollwidth );
	sub( scrollposotionwidth, plugin[thumbs_scrollbg].width, plugin[thumbs_scrollbtn].width);
	mul( plugin[thumbs_scrollbtn].x, scrollposotionwidth, scrollprop);
	if( scroll_update_triger,
		delayedcall(0.01,autothumb_scrollupdate(); );
	,
		set(scroll_update_triger,true););
</action>

<action name="autothumb_thumbsbarupdate">	
	div( scrollprop, plugin[thumbs_scrollbtn].x, scroll_max );
	mul( plugin[thumbs_bar].x, thumbs_scrollwidth, scrollprop);
</action>

<action name="autothumb_scrollmove">	
	copy( mousex, mouse.stagex );
	sub( position, mousex , %1 );
	
	if( %1 GT 0, 
		set(scroll_position, plugin[thumbs_scrollbtn].x ); 
		add( scroll_position, get(scroll_position), get(position) ); 
		if( scroll_position LT 0, set(scroll_position,0) , );
		if( scroll_position GT scroll_max, set(scroll_position,get(scroll_max)) , );
		copy(plugin[thumbs_scrollbtn].x, scroll_position ); 
		autothumb_thumbsbarupdate();
	, set(position,0); 
	);
	if( scroll_move_triger,
		delayedcall(0.01,autothumb_scrollmove(get(mousex)); );
	,
		set(scroll_move_triger,true););
</action>

<action name="autothumbs_calculatesizes">
	add(autothumbs.mask_w, get(autothumbs.width), -70);
	mul(autothumbs.mask_h, get(autothumbs.height), get(autothumbs.thumbsbar_height_percent) );
	mul(autothumbs.mask_y, get(autothumbs.height), 0.5);
	mul(autothumbs.thumbsbar_border, get(autothumbs.mask_h), get(autothumbs.thumbsbar_border_percent) );
	mul(autothumbs.lrbutoon_y, get(autothumbs.height), 0.5);
	sub(autothumbs.thumbsbar_w, get(autothumbs.mask_w), get(autothumbs.thumbsbar_border));
	sub(autothumbs.thumbsbar_h, get(autothumbs.mask_h), get(autothumbs.thumbsbar_border));
	sub(autothumbs.thumbsbar_h, get(autothumbs.thumbsbar_h), get(autothumbs.thumbsbar_border));
</action>

<action name="autothumbs_show">
	tween(plugin[thumbs_show].scale, 0);
	delayedcall(1, set(plugin[thumbs_show].visible, false);

	if(autothumbs.thumbs_scalingfinished,
		
		set(aniscale, get(plugin[autothumbs].scale) );
		set(autothumbs.thumbs_scalingfinished, false );
		set(plugin[autothumbs].scale, 0.01);
		set(plugin[autothumbs].alpha, 0);
		set(plugin[autothumbs].visible, true);
		set(plugin[thumbs_bar_bg].visible, false);
		delayedcall(0.03, 
			mul(plugin[autothumbs].scale, get(aniscale), 0.1);
			set(plugin[autothumbs].alpha, 0.1);
			delayedcall(0.02, 
				mul(plugin[autothumbs].scale, get(aniscale), 0.2);
				set(plugin[autothumbs].alpha, 0.2);
				delayedcall(0.015, 
					mul(plugin[autothumbs].scale, get(aniscale), 0.5);
					set(plugin[autothumbs].alpha, 0.5);
					delayedcall(0.01, 
						set(plugin[autothumbs].scale, get(aniscale));  
						set(plugin[autothumbs].alpha, 1);
						set(plugin[thumbs_bar_bg].visible, true );
						set(autothumbs.thumbs_scalingfinished, true );
					);
				);
			);
		);
		copy(plugin[autothumbs.thumb_current].effect, autothumbs.thumb_current_effect );
	));
	set(plugin[remember].thumbset, 1);
</action>

<action name="autothumbs_thumbclick">
	if( autothumbs.autohide, autothumbs_hide(gotoscenebyindex(%1););, gotoscenebyindex(%1);	);
</action>

<action name="autothumbs_hide">
	if(autothumbs.thumbs_scalingfinished,
		set(autothumbs.thumbs_scale, get(plugin[autothumbs].scale) );
		set(autothumbs.thumbs_scalingfinished, false );
		tween(plugin[autothumbs].scale, 0.1, 0.15);
		tween(plugin[autothumbs].alpha, 0, 0.15,,
			
			<!--set(plugin[autothumbsbg].visible, false);-->
			set(plugin[autothumbs].visible, false);
			set(autothumbs.thumbs_scalingfinished, true );
			set(plugin[autothumbs].scale, get(autothumbs.thumbs_scale) );
			if(%1 != 'null', %1,);
		);
	);
	IF(plugin[get(name)].thumb == 1, delayedcall(1, set(plugin[thumbs_show].visible, true);
	tween(plugin[thumbs_show].scale, 1)));
	IF(hotspot[get(name)].inorout == in, delayedcall(1, set(plugin[thumbs_show].visible, true);
	tween(plugin[thumbs_show].scale, 1)));
</action>

<action name="autothumbs_resize">
	copy(plugin[thumbs_back].width, autothumbs.width );	copy(plugin[thumbs_back].height, autothumbs.height );
	copy(plugin[thumbs_left].x, autothumbs.lrbutoon_x ); copy(plugin[thumbs_left].y, autothumbs.lrbutoon_y );
	copy(plugin[thumbs_right].x, autothumbs.lrbutoon_x ); copy(plugin[thumbs_right].y, autothumbs.lrbutoon_y );
	copy(plugin[thumbs_mask].y, autothumbs.mask_y );
	copy(plugin[thumbs_mask].width, autothumbs.mask_w ); copy(plugin[thumbs_mask].height, autothumbs.mask_h );
	mul(tempvar, get(autothumbs.thumbsbar_border), 0.5 );
	copy(plugin[thumbs_bar_bg].x, tempvar ); copy(plugin[thumbs_bar_bg].y, autothumbs.mask_y );
	copy(plugin[thumbs_bar_bg].width, autothumbs.thumbsbar_w ); copy(plugin[thumbs_bar_bg].height, autothumbs.thumbsbar_h );
	mul(plugin[thumbs_shadowl].height, get(autothumbs.height), 0.95); mul(plugin[thumbs_shadowr].height, get(autothumbs.height), 0.95);
	copy(plugin[thumbs_shadowl].x, autothumbs.shadow_x ); copy(plugin[thumbs_shadowr].x, autothumbs.shadow_x );
</action>

<action name="autothumbs_addthumbs">
	add(thumb_count, autothumbs.thumb_count, -1 ); set(plugin[thumbs_bar].width,0);
	thumb_add(0);		
</action>

<action name="thumb_new"><!-- use thumb_new(Title, thumburl, action); -->
	txtadd(newthumb_name,'thumb_', get(autothumbs.thumb_count) ); 
	addplugin( get(newthumb_name) );
	set(plugin[get(newthumb_name)].keep, true );
	set(plugin[get(newthumb_name)].title, %1 );
	set(plugin[get(newthumb_name)].thumburl, %2 );
	set(plugin[get(newthumb_name)].action, %3 );
	add(autothumbs.thumb_count,1);
</action>

<action name="thumb_add"><!-- use thumb_new(Title, thumburl, action); -->  
	set(thumb_counter, %1);
	txtadd(thumb_name,"thumb_", %1 );
	txtadd(thumb_image_name,"thumb_image_", %1 );
	addplugin(get(thumb_image_name));
	set(plugin[get(thumb_image_name)].keep, true );
	set(plugin[get(thumb_image_name)].parent, thumbs_bar );
	set(plugin[get(thumb_image_name)].edge, lefttop ); 
	set(plugin[get(thumb_image_name)].align, lefttop ); 
	set(plugin[get(thumb_image_name)].zorder, 1000 ); 
	set(plugin[get(thumb_image_name)].alpha, 1 ); 
	set(plugin[get(thumb_image_name)].smoothing, true );
	set(plugin[get(thumb_image_name)].onhover, '' ); 
	set(plugin[get(thumb_image_name)].ondown, set(plugin[autothumbs_pic].visible, false));
	thumb_setonouteffect(get(thumb_image_name));
	txtadd(plugin[get(thumb_image_name)].onhover, "showtext(",  get(plugin[get(thumb_name)].title), ",onhovertext);" ); 
	txtadd(plugin[get(thumb_image_name)].onloaded, "thumb_image_loaded(", get(thumb_image_name), ");" ); 
	copy(plugin[get(thumb_image_name)].url, plugin[get(thumb_name)].thumburl );
	copy(plugin[get(thumb_image_name)].onclick, plugin[get(thumb_name)].action );
	thumb_effects(get(thumb_image_name));
	add(thumb_counter,1);
</action>

<action name="thumb_image_loaded">
	thumb_setsize(%1); 
	delayedcall(0.01, set( plugin[%1].alpha, 1 ); );
	if( thumb_counter LT autothumbs.thumb_count, 
		thumb_add(get(thumb_counter));
	,
		addthumbshandler();
		set(autothumbs_started, true););
</action>

<action name="addthumbshandler">
	set(addthumbscoplete,true);
</action>

<action name="onthumbscomplete"><!-- onthumbscomplete(action); -->
	txtadd(action[addthumbshandler].content, %1 );
</action>

<action name="thumb_current">
	txtadd(current_thumb_name, 'thumb_image_', %1 );
	if( get(autothumbs.thumb_current) != 'null', copy( plugin[get(autothumbs.thumb_current)].effect, autothumbs.thumb_normal_effect ); ,);
	copy( plugin[get(current_thumb_name)].effect, autothumbs.thumb_current_effect );
	set( autothumbs.thumb_current, get(current_thumb_name) );
</action>

<action name="thumb_setsize">
	plugin[%1].resetsize();  
	div(thumbpropw, get(autothumbs.thumbsbar_h), get(plugin[%1].height) );
	mul( plugin[%1].width, get(thumbpropw) ); 
	copy( plugin[%1].height, autothumbs.thumbsbar_h );
	copy( plugin[%1].x, plugin[thumbs_bar].width );
	add( plugin[thumbs_bar].width, plugin[%1].width );
	add( plugin[thumbs_bar].width, autothumbs.thumbsbar_border );
	set(thumbs_scrollwidth,0);
	sub(thumbs_scrollwidth,0,get(plugin[thumbs_bar].width));
	add(thumbs_scrollwidth,get(plugin[thumbs_bar_bg].width)); 
	autothumbs_scrollconfig();
</action>

<action name="thumb_effects">
	set( plugin[%1].onover, copy(plugin[%1].effect, autothumbs.thumb_hover_effect ); 
							set(plugin[autothumbs_pic].visible, true);
							set(plugin[autothumbs_pic].url, get(plugin[get(name)].url)); );
	set( plugin[%1].onout, thumb_setonouteffect(%1); );
</action>

<action name="thumb_setonouteffect">
	set(plugin[autothumbs_pic].visible, false);
	if( %1 == autothumbs.thumb_current,
		copy(plugin[%1].effect, autothumbs.thumb_current_effect ); 
	,
		copy(plugin[%1].effect, autothumbs.thumb_normal_effect ););
</action>

<action name="button_effect_config"><!-- use button_effect_config(pluginname,cropX) image 32|32 special function for plugins mousedown effects setting -->
	txtadd(plugin[%1].onover, "set(plugin[", %1, "].mouseover,true); if(plugin[", %1, "].mousedown, set(plugin[", %1, "].crop,", %2, "|64|32|32); , set(plugin[", %1, "].crop,", %2, "|32|32|32););" );
	txtadd(plugin[%1].onout, "set(plugin[", %1, "].mouseover,false); if(plugin[", %1, "].mousedown, set(plugin[", %1, "].crop,", %2, "|64|32|32); , set(plugin[", %1, "].crop,", %2, "|0|32|32););" );
	txtadd(plugin[%1].ondown, get(plugin[%1].ondown),"set(plugin[", %1, "].mousedown,true); set(plugin[", %1, "].crop,", %2, "|64|32|32);" );
	txtadd(plugin[%1].onup, get(plugin[%1].onup),"set(plugin[", %1, "].mousedown,false); if(plugin[", %1, "].mouseover, set(plugin[", %1, "].crop,", %2, "|32|32|32); , set(plugin[", %1, "].crop,", %2, "|0|32|32););" );
</action>

<plugin name="autothumbs_pic" url="" keep="true"
	edge="bottomcenter" align="topcenter" parent="autothumbs"
	capture="true" handcursor="true" scale="0.5"
	x="0" y="-50" zorder="3" effect="glow(0xf26522,10,10,10)"
	visible="false"	alpha="1"/>

<plugin name="autothumbsbg" url="../icons/skin/spacerb.png" keep="true"
	edge="lefttop" align="lefttop" 
	capture="true" handcursor="false"
	x="0" y="0" width="100%" height="100%" zorder="3000"
	visible="false"	alpha="0.4"/>

<plugin name="autothumbs" url="../icons/skin/spacer.png" keep="true"
	edge="bottomcenter" align="bottomcenter" children="true" scalechildren="true" 
	enbled="true" capture="true" 
	x="0" y="70"
	visible="false"	alpha="1" zorder="3001"
	onhover=""/>

<plugin name="thumbs_back" url="../icons/skin/skin_bg.png"  keep="true"
	parent="autothumbs"
	edge="center" align="center" children="true" scalechildren="true" 
	enbled="true" capture="true" 
	x="0" y="0" scale="1"
	visible="true" alpha="1.2"
	scale9grid="10|10|10|10"/>

<plugin name="thumbs_left" url="../icons/skin/thumbs_buttons.png" keep="true"
	parent="thumbs_back"
	crop="0|0|32|32"
	edge="center" align="lefttop" scale="1" 
	visible="true" alpha="1" zorder="2000"
	ondown="tween(plugin[thumbs_bar].x, 0, distance(200,0.3), linear); autothumb_scrollupdate();"
	onup="stoptween(plugin[thumbs_bar].x); set(scroll_update_triger,false);"/>

<plugin name="thumbs_right" url="../icons/skin/thumbs_buttons.png" keep="true"
	parent="thumbs_back"
	crop="32|0|32|32"
	edge="center" align="righttop" scale="1" 
	visible="true" alpha="1" zorder="2000"
	ondown="tween(plugin[thumbs_bar].x, get(thumbs_scrollwidth), distance(200,0.3), linear); autothumb_scrollupdate();" 
	onup="stoptween(plugin[thumbs_bar].x); set(scroll_update_triger,false);"/>

<plugin name="thumbs_mask" url="../icons/skin/spacerb.png" keep="true"
	parent="thumbs_back" x="0"
	edge="center" align="top" scale="1"
	visible="true" alpha="1" zorder="1"/>

<plugin name="thumbs_shadowl" url="../icons/skin/thumbs_shadow.png" keep="true"
	parent="thumbs_back" enbled="false" capture="false"
	edge="left" align="left" scale="1" zorder="1500"
	crop="23|0|23|113"
	visible="true" alpha="0.9"/>

<plugin name="thumbs_shadowr" url="../icons/skin/thumbs_shadow.png" keep="true"
	parent="thumbs_back" enbled="false" capture="false"
	edge="right" align="right" scale="1" zorder="1500"
	crop="0|0|23|113" 
	visible="true" alpha="0.9"/>

<plugin name="thumbs_bar_bg" url="../icons/skin/spacer.png" keep="true"
	parent="thumbs_back" x="0" mask="thumbs_mask"
	edge="center" align="top" scale="1"
	visible="true" alpha="1" zorder="1000"/>

<plugin name="thumbs_bar" url="../icons/skin/spacer.png" keep="true"
	parent="thumbs_bar_bg" width="0" x="0"
	edge="lefttop" align="lefttop" scale="1" 
	visible="true" alpha="1" zorder="1"/>

<plugin name="thumbs_scroll" url="../icons/skin/spacer.png" keep="true"
	parent="thumbs_back"
	edge="bottom" align="bottom" children="true" scalechildren="true" 
	enbled="true" capture="true" 
	x="0" y="12" scale="1"
	visible="false"	alpha="1"/>

<plugin name="thumbs_scrollbg" url="../icons/skin/thumbs_scrollbg.png" keep="true"
	parent="thumbs_scroll"
	scale9grid="12|0|10|32"
	width="600"
	edge="center" align="center" scale="1" x="0" y="6" 
	visible="true" alpha="1" zorder="10"/>

<plugin name="thumbs_scrollbtn" url="../icons/skin/thumbs_scrollbtn.png" keep="true"
	parent="thumbs_scrollbg"
	scale9grid="12|0|10|32"
	edge="left" align="left" scale="1" x="0" y="0" 
	visible="true" alpha="1" zorder="11"	
	effect="glow(0x000000,1,4,2)"
	width="200"
	ondown="autothumb_scrollmove();set(plugin[thumbs_scrollbtn].onout,'');"
	onup="set(scroll_move_triger,false);
		set(plugin[thumbs_scrollbtn].effect,glow(0x000000,1,4,2));
		set(plugin[thumbs_scrollbtn].onout,set(plugin[thumbs_scrollbtn].effect,glow(0x000000,1,4,2)););"
	onover="set(plugin[thumbs_scrollbtn].effect,glow(0xFFFFFF,1,5,6));" 
	onout="set(plugin[thumbs_scrollbtn].effect,glow(0x000000,1,4,2));"/>

<plugin name="thumbs_hide" url="../icons/skin/thumbs_buttons.png" keep="true"
	parent="thumbs_back"
	crop="64|0|32|32" thumb="1"
	edge="righttop" align="righttop" x="" y="-23" scale="1" 
	visible="true" alpha="1" zorder="2002"
	onclick="autothumbs_hide()"/>

<plugin name="thumbs_show" url="../icons/skin/circle.png" keep="true"
	edge="center" align="bottomcenter" x="" y="70" scale="0" 
	visible="false" alpha="1" zorder="2002"
	onclick="autothumbs_show()"/>

<!-- # AUTOTHUMBS ######################################################################################### --> 

</krpano>   				 													 
