<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false" showerrors="false" onstart="startaction">
    <action name="startaction">
		hidepanospotsaction();
	</action>
    <action name="mainloadpano">
		closepanoobjects();
		closeglobalobjects();
		ifnot(stopSequence === undefined,interruptAnimation(););
		loadpano(%1,NULL,NULL,BLEND(1));
	</action>
    <plugin name="gyro" url="builddata/graphics/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
    <!--************** Pluginy i dane KRPano ******************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" introImageHasBeenPlayed="false" keep="true"/>
    <!--************** Otwórz pierwszą panoramę ***************************************************-->
    <include url="build0.xml"/>
    <autorotate enabled="false"/><include url="builddata/graphics/showtext.xml"/>
    <!--************** Czcionki *******************************************************************-->
    <textstyle name="DEFAULT" background="false" bold="false" border="false" effect="dropshadow(0,45,0xffffff,4,2);" font="Franklin Gothic Medium" fontsize="20" italic="false" textcolor="0xff000000"/>
    <!--************** Obrazek startowy ***********************************************************-->
    <action name="fromlittleplanetintrotonormalview">
		tweennormalview();
		showpanospotsaction();
	</action>
    <action name="firstloadcompleteaction">
		if(plugin[data].firstPanoHasBeenPlayed==false,
			setlittleplanet();
			wait(load);
			set(plugin[data].firstPanoHasBeenPlayed,true);
			if (plugin[data].introImageHasBeenPlayed == true, startLittlePlanetIntroEffect(););
		);
	</action>
    <action name="startLittlePlanetIntroEffect">
		if(plugin[data].firstPanoHasBeenPlayed == true,
			delayedcall(1.0,
				fromlittleplanetintrotonormalview();
			);
		);
	</action>
    <action name="setlittleplanet">
		set(view.stereographic, true);
		set(view.fisheye      , 1.0);
		set(view.limitview    , lookat);
		set(view.vlookatmin   , -90);
		set(view.vlookatmax   , 90);
		set(view.fov          , 150);
		set(view.fovmax       , 150);
		set(view.hlookat      , 0);
		set(view.vlookat      , 90);
		set(display.flash10   , off);
		set(display.details   , 14);
	</action>
    <plugin name="introimage" url="builddata/graphics/introImage.png" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();"/>
    <action name="hideintroimage">
		if(plugin[introimage].enabled,	set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
		startLittlePlanetIntroEffect();
	</action>
    <action name="autohideintroimage">
		if(plugin[data].introImageHasBeenPlayed==false, 	set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
		set(plugin[data].introImageHasBeenPlayed,true););
	</action>
    












    <!--************** Menu ***********************************************************************-->
    <events name="thumbnailsResizeEvent1" onresize="thumbsResizeEventHandler1();"/>
    <!-- otwórz miniaturkę -->
    <action name="slide1_action_in">
		set(plugin[slide1].onclick,slide1_action_out);
		set(plugin[strap1].onclick,slide1_action_out);
		set(plugin[strap1Arrow1].rotate,0);
		tween(plugin[thumbArray1].x, 280, 1, easeOutQuint);
		thumbsResizeEventHandler1();
	</action>
    <!-- zamknij miniaturkę -->
    <action name="slide1_action_out">
		set(plugin[slide1].onclick,slide1_action_in);
		set(plugin[strap1].onclick,slide1_action_in);
		set(plugin[strap1Arrow1].rotate,180);
		tween(plugin[thumbArray1].x, 0, 1, easeOutQuint);
		
	</action>
    <action name="thumbsResizeEventHandler1">
		plugin[thumbArray1].updatepos();
		copy(truethumbsheight, plugin[thumbArray1].pixelheight);
		if (area.pixelheight GT truethumbsheight,
		set(plugin[thumbBgLayout1].y, 0);displayThumbsScrolls(false);,
		if (plugin[slide1].onclick == slide1_action_out, displayThumbsScrolls(true););
		);
	</action>
    
    <plugin name="thumbArray1" keep="true" zorder="1" url="builddata/graphics/transparent1.png" handcursor="false" capture="false" children="true" alpha="1" blendmode="normal" smoothing="true" x="0%" y="70" scale="1" align="rightbottom" edge="left" width="140" height="prop"/>
    <plugin name="thumbBgLayout1" keep="true" zorder="1" url="builddata/graphics/transparent1.png" handcursor="false" capture="false" x="0" y="70" align="center" edge="center" width="100%" height="prop" parent="thumbArray1"/>
    <plugin name="slide1" parent="thumbArray1" keep="true" zorder="0" url="builddata/graphics/slide1.png" handcursor="false" capture="false" children="true" alpha="1" blendmode="normal" smoothing="true" x="0" y="0" align="lefttop" edge="left" width="280" height="40" onclick="slide1_action_in"/>
    <plugin name="strap1" keep="true" zorder="0" url="builddata/graphics/strap1.png" parent="thumbArray1" alpha="1" align="lefttop" edge="right" handcursor="true" onclick="slide1_action_in"/>
	<plugin name="strap1Arrow1" keep="true" parent="strap1" zorder="0" url="builddata/graphics/arrow.png" align="top" x="0" y="10" edge="center" capture="false" enabled="false" rotate="180"/>
    <!-- thumbs pictures -->
	<plugin name="thumb_build110" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu0.png" width="20.3333%" height="prop" align="topright" edge="left" x="135" y="0" alpha="1" ondown="set(fov_moveforce,-1);" crop="0|0|65|65" onout="" onover="" onup="set(fov_moveforce,0);" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build111" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu1.png" width="20.3333%" height="prop" align="topright" edge="left" x="110" y="0" alpha="1" ondown="set(fov_moveforce,+1);" crop="0|0|65|65" onout="" onover="" onup="set(fov_moveforce,0);" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build112" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu2.png" width="20.3333%" height="prop" align="topright" edge="left" x="85" y="0" alpha="1" ondown="set(hlookat_moveforce,-1);" crop="0|0|65|65" onout="" onover="" onup="set(hlookat_moveforce,0);" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build113" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu3.png" width="20.3333%" height="prop" align="topright" edge="left" x="60" y="0" alpha="1" ondown="set(hlookat_moveforce,+1);" crop="0|0|65|65" onout="" onover="" onup="set(hlookat_moveforce,0);" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build114" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu4.png" width="20.3333%" height="prop" align="topright" edge="left" x="35" y="0" alpha="1" ondown="set(vlookat_moveforce,-1);" crop="0|0|65|65" onout="" onover="" onup="set(vlookat_moveforce,0);" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build115" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu5.png" width="20.3333%" height="prop" align="topright" edge="left" x="10" y="0" alpha="1" ondown="set(vlookat_moveforce,+1);" crop="0|0|65|65" onout="" onover="" onup="set(vlookat_moveforce,0);" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build116" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu6.png" width="20.3333%" height="prop" align="topright" edge="left" x="-15" y="0" alpha="1" onclick="set(fullscreen,true);" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build117" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu7.png" width="20.3333%" height="prop" align="topright" edge="left" x="-15" y="0" alpha="1" onclick="set(fullscreen,false);" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build118" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu8.png" width="20.3333%" height="prop" align="topright" edge="left" x="-40" y="0" alpha="1" onclick="displayHelp();" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build119" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu9.png" width="65%" height="prop" align="righttop" edge="left" x="-73" y="0" alpha="1" onclick="openurl(http://zwiedzajlubelskie.pl/)" crop="0|0|200|65" onout="" onover="" onovercrop="0|65|200|65" visible="true" onloaded="thumbloaded1();"/>
	<plugin name="thumb_build1110" keep="true" zorder="2" parent="thumbBgLayout1" url="builddata/graphics/menu/menu10.png" width="20.3333%" height="prop" align="righttop" edge="left" x="-108" y="0" alpha="1" onclick="openurl(http://www.facebook.com/ZwiedzajLubelskie)" crop="0|0|65|65" onout="" onover="" onovercrop="0|65|65|65" visible="true" onloaded="thumbloaded1();"/>
	
	<plugin name="helpScreen" align="center" customColor="true" keep="true" onclick="closeHelp();" url="builddata/graphics/menu/help.png" visible="false"/>
    <action name="displayHelp">
        set(plugin[helpScreen].visible,true);
        set(plugin[thumb_build118].onclick,closeHelp();)
    </action>
    <action name="closeHelp">
        set(plugin[helpScreen].visible,false);
        set(plugin[thumb_build118].onclick,displayHelp();)
    </action>
    <events onenterfullscreen="set(plugin[thumb_build116].visible,false); set(plugin[thumb_build117].visible,true);" onexitfullscreen="set(plugin[thumb_build116].visible,true); set(plugin[thumb_build117].visible,false);"/>
	
    <plugin name="thumbnailsData" keep="true" nbThumbnailsLoaded="0"/>
    <action name="thumbloaded1">
		inc(plugin[thumbnailsData].nbThumbnailsLoaded, 1);
		if(plugin[thumbnailsData].nbThumbnailsLoaded GE 2,
		setThumbnailsVisible();
		);
	</action>
    <action name="setThumbnailsVisible">
		set(plugin[thumb_build110].visible, true);
		set(plugin[thumb_build111].visible, true);
		set(plugin[thumb_build112].visible, true);
		set(plugin[thumb_build113].visible, true);
		set(plugin[thumb_build114].visible, true);
		set(plugin[thumb_build115].visible, true);
		set(plugin[thumb_build116].visible, true);
		set(plugin[thumb_build118].visible, true);
		set(plugin[thumb_build119].visible, true);
		set(plugin[thumb_build1110].visible, true);
		
	</action>
	
	<!--************** Menu kontekstowe ***********************************************************-->
    <contextmenu>
        <item name="item_0" caption="www.tellogistic.pl"/>
        <item name="item_1" caption="Autor: Jacek Scherer"/>
    </contextmenu>
	
	
	
	
	
	<plugin name="galeria" hview="-0.01" vview="0.03" zorder="20" fovview="0.46" alpha="0.7" hcenter="0.49471" vcenter="-0.0665323" onclick="openurl('http://zwiedzajlubelskie.pl/galerie/chojnice/', _blank);" url="builddata/graphics/spots/gal.png" onhover="showtext(Otwórz galerię zdjęć);" align="lefttop" height="40" keep="true" width="prop" x="50" y="10"/>
 
	
	
	
    <!--************** Lista panoram **************************************************************-->
    <plugin name="combobox" url="builddata/graphics/combobox.swf" preload="true" alturl="builddata/graphics/combobox.js" keep="true" width="420" align="righttop" rowcount="15" x="10" y="10">
	
	
	
	
	
	
        <item name="combobox0" caption="Półwysep Miechórz w Małe Swornegacie - panorama z powietrza" onClick="mainloadpano(build0.xml);"/>
        <item name="combobox1" caption="Most zwodzony Małe Swornegacie" onClick="mainloadpano(build1.xml);"/>
        <item name="combobox2" caption="Port jachtowy w Charzykowach" onClick="mainloadpano(build2.xml);"/>
        <item name="combobox3" caption="Wiata z piecem chlebowym przy Domu Rękodzieła Ludowego w Swornegaciach" onClick="mainloadpano(build3.xml);"/>
        <item name="combobox4" caption="Wnętrze Domu Rękodzieła Ludowego" onClick="mainloadpano(build4.xml);"/>
        <item name="combobox5" caption="Chata kaszubska w Silnie" onClick="mainloadpano(build5.xml);"/>
        <item name="combobox6" caption="Kościół św. Jakuba Apostoła w Ostrowitem" onClick="mainloadpano(build6.xml);"/>
        <item name="combobox7" caption="Wyłuszczarnia nasion w Klosnowie" onClick="mainloadpano(build7.xml);"/>
        <item name="combobox8" caption="Inscenizacja szarży pod Krojantami - panorama z powietrza" onClick="mainloadpano(build8.xml);"/>
        <item name="combobox9" caption="Inscenizacja szarży pod Krojantami - w każdą pierwszą niedzielę września" onClick="mainloadpano(build9.xml);"/>
        <item name="combobox10" caption="Strefa ekonomiczna w Topole - panorama z powietrza" onClick="mainloadpano(build10.xml);"/>
    </plugin>
    <!--************** Plugin miniaturek **********************************************************-->
    <events name="thumbnailsResizeEvent" onresize="thumbsResizeEventHandler();"/>
    <!-- akcja wykonywana podczas najechania kursorem na miniaturkę -->
    <action name="magnify">
		tween(plugin[%1].alpha,  1.0, 0.3, easeInQuad);
		tween(plugin[%1].scale, 1.05, 0.3, easeInQuad);
		set(plugin[%1].effect, glow(0xffffff,1,4,10000));
		set(plugin[%1].jsborder,'4px solid #ffffff');
	</action>
    <!-- akcja wykonywana po odjechaniu kursora z miniaturkę -->
    <action name="lie">
		tween(plugin[%1].alpha, 0.8, 0.3, easeInQuad);
		tween(plugin[%1].scale, 1.0, 0.3, easeInQuad);
		set(plugin[%1].effect, glow(0xffffff,1,2,10000));
		set(plugin[%1].jsborder,'2px solid #ffffff');
	</action>
    <!-- otwórz miniaturkę -->
    <action name="slide_action_in">
		set(plugin[slide].onclick,slide_action_out);
		set(plugin[strap].onclick,slide_action_out);
		set(plugin[strapArrow].rotate,180);
		tween(plugin[thumbArray].y, 8%, 1, easeOutQuint);
		tween(plugin[thumbMovePrev].y, 4%, 1, easeOutQuint);
		tween(plugin[thumbMoveNext].y, 4%,1, easeOutQuint);
		thumbsResizeEventHandler();
	</action>
    <!-- zamknij miniaturkę -->
    <action name="slide_action_out">
		set(plugin[slide].onclick,slide_action_in);
		set(plugin[strap].onclick,slide_action_in);
		set(plugin[strapArrow].rotate,0);
		tween(plugin[thumbArray].y, 0, 1, easeOutQuint);
		tween(plugin[thumbMovePrev].y, 0, 1, easeOutQuint);
		tween(plugin[thumbMoveNext].y, 0, 1, easeOutQuint);
		set(plugin[thumbMovePrev].visible,false);
		set(plugin[thumbMoveNext].visible,false);
	</action>
    <action name="moveThumbsPrev">
		plugin[thumbArray].updatepos();
		copy(truethumbswidth, plugin[thumbArray].pixelwidth);
		if (area.pixelwidth GT truethumbswidth,
		set(plugin[thumbBgLayout].x, 0);,
		set(leftborder, get(area.pixelwidth));
		sub(leftborder, truethumbswidth);
		div(leftborder, 2);
		mul(leftborder, -1);
		if (plugin[thumbBgLayout].x LT leftborder, inc(plugin[thumbBgLayout].x, %1););
		if (plugin[thumbBgLayout].x GT leftborder, set(plugin[thumbBgLayout].x, get(leftborder)););
		);
	</action>
    <action name="moveThumbsNext">
		plugin[thumbArray].updatepos();
		copy(truethumbswidth, plugin[thumbArray].pixelwidth);
		if (area.pixelwidth GT truethumbswidth,
		set(plugin[thumbBgLayout].x, 0);,
		set(rightborder, get(area.pixelwidth));
		sub(rightborder, truethumbswidth);
		div(rightborder, 2);
		if (plugin[thumbBgLayout].x GT rightborder, dec(plugin[thumbBgLayout].x, %1););
		if (plugin[thumbBgLayout].x LT rightborder, set(plugin[thumbBgLayout].x, get(rightborder)););
		);
	</action>
    <action name="thumbsResizeEventHandler">
		plugin[thumbArray].updatepos();
		copy(truethumbswidth, plugin[thumbArray].pixelwidth);
		if (area.pixelwidth GT truethumbswidth,
		set(plugin[thumbBgLayout].x, 0);displayThumbsScrolls(false);,
		if (plugin[slide].onclick == slide_action_out, displayThumbsScrolls(true););
		);
	</action>
    <action name="displayThumbsScrolls">
		set(plugin[thumbMovePrev].visible, %1);
		set(plugin[thumbMovePrev].enabled, %1);
		set(plugin[thumbMoveNext].visible, %1);
		set(plugin[thumbMoveNext].enabled, %1);
	</action>
    <action name="adjusthtml5thumbsplugins">
		if (ishtml5 == true,
		set(plugin[thumbMovePrev].width, 5%);
		set(plugin[thumbMoveNext].width, 5%);
		);
	</action>
    <plugin name="thumbArray" keep="true" zorder="1" url="builddata/graphics/transparent.png" handcursor="false" capture="false" children="true" alpha="0.9" blendmode="normal" smoothing="true" x="0" y="0" scale="1" align="bottom" edge="top" width="prop" height="8%"/>
    <plugin name="thumbBgLayout" keep="true" zorder="1" url="builddata/graphics/transparent.png" handcursor="false" capture="false" x="0" y="0" align="center" edge="center" width="prop" height="100%" parent="thumbArray"/>
    <plugin name="thumbMovePrev" keep="true" zorder="3" capture="true" url="builddata/graphics/thumb_scroll.png" alpha="0.8" onover="set(alpha, 1);" onout="set(alpha,0.8);set(scrollspeed,10);" scrollspeed="10" onhover="moveThumbsPrev(get(scrollspeed));if(scrollspeed LT 70, inc(scrollspeed););" onclick="moveThumbsPrev(50);" visible="false" x="10" y="0" align="bottomleft" edge="left"/>
    <plugin name="thumbMoveNext" keep="true" zorder="3" capture="true" url="builddata/graphics/thumb_scroll.png" alpha="0.8" onover="set(alpha, 1);" onout="set(alpha,0.8);set(scrollspeed,10);" scrollspeed="10" onhover="moveThumbsNext(get(scrollspeed));if(scrollspeed LT 70, inc(scrollspeed););" onclick="moveThumbsNext(50);" visible="false" x="10" y="0" align="bottomright" edge="right"/>
    <plugin name="thumbMovePrevArrow" parent="thumbMovePrev" keep="true" zorder="3" capture="false" url="builddata/graphics/arrow.png" x="0" y="0" align="center" edge="center" rotate="180"/>
    <plugin name="thumbMoveNextArrow" parent="thumbMoveNext" keep="true" zorder="3" capture="false" url="builddata/graphics/arrow.png" x="0" y="0" align="center" edge="center"/>
    <plugin name="slide" parent="thumbArray" keep="true" zorder="0" url="builddata/graphics/slide.png" handcursor="false" capture="false" children="true" alpha="0.9" blendmode="normal" smoothing="true" x="0" y="0" align="top" edge="top" width="4000" height="100%" onclick="slide_action_in"/>
    <plugin name="strap" keep="true" zorder="0" url="builddata/graphics/strap.png" parent="thumbArray" alpha="0.9" align="top" edge="left" rotate="-90" handcursor="true" onclick="slide_action_in"/>
    <plugin name="strapArrow" keep="true" parent="strap" zorder="0" url="builddata/graphics/arrow.png" align="center" edge="center" capture="false" enabled="false" rotate="0"/>
    <!-- thumbs pictures -->
    <plugin name="thumb_build0" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build0_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="4.91803%" y="50%" alpha="0.8" onclick="mainloadpano(build0.xml);" onover="magnify('thumb_build0'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Półwysep Miechórz w Małe Swornegacie - panorama z powietrza);" onout="lie('thumb_build0');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build1" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build1_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="13.9344%" y="50%" alpha="0.8" onclick="mainloadpano(build1.xml);" onover="magnify('thumb_build1'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Most zwodzony Małe Swornegacie);" onout="lie('thumb_build1');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build2" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build2_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="22.9508%" y="50%" alpha="0.8" onclick="mainloadpano(build2.xml);" onover="magnify('thumb_build2'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Port jachtowy w Charzykowach);" onout="lie('thumb_build2');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build3" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build3_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="31.9672%" y="50%" alpha="0.8" onclick="mainloadpano(build3.xml);" onover="magnify('thumb_build3'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Wiata z piecem chlebowym przy Domu Rękodzieła Ludowego w Swornegaciach);" onout="lie('thumb_build3');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build4" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build4_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="40.9836%" y="50%" alpha="0.8" onclick="mainloadpano(build4.xml);" onover="magnify('thumb_build4'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Wnętrze Domu Rękodzieła Ludowego);" onout="lie('thumb_build4');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build5" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build5_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="50%" y="50%" alpha="0.8" onclick="mainloadpano(build5.xml);" onover="magnify('thumb_build5'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Chata kaszubska w Silnie);" onout="lie('thumb_build5');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build6" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build6_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="59.0164%" y="50%" alpha="0.8" onclick="mainloadpano(build6.xml);" onover="magnify('thumb_build6'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Kościół św. Jakuba Apostoła w Ostrowitem);" onout="lie('thumb_build6');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build7" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build7_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="68.0328%" y="50%" alpha="0.8" onclick="mainloadpano(build7.xml);" onover="magnify('thumb_build7'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Wyłuszczarnia nasion w Klosnowie);" onout="lie('thumb_build7');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build8" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build8_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="77.0492%" y="50%" alpha="0.8" onclick="mainloadpano(build8.xml);" onover="magnify('thumb_build8'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Inscenizacja szarży pod Krojantami - panorama z powietrza);" onout="lie('thumb_build8');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build9" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build9_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="86.0656%" y="50%" alpha="0.8" onclick="mainloadpano(build9.xml);" onover="magnify('thumb_build9'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Inscenizacja szarży pod Krojantami - w każdą pierwszą niedzielę września);" onout="lie('thumb_build9');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumb_build10" keep="true" zorder="2" parent="thumbBgLayout" url="builddata/graphics/build10_thumbnail.jpg" width="8.19672%" height="prop" align="topleft" edge="center" x="95.082%" y="50%" alpha="0.8" onclick="mainloadpano(build10.xml);" onover="magnify('thumb_build10'); " effect="glow(0xffffff,1,2,10000)" jsborder="2px solid #ffffff" onhover="showtext(Strefa ekonomiczna w Topole - panorama z powietrza);" onout="lie('thumb_build10');" visible="false" onloaded="thumbloaded();"/>
    <plugin name="thumbnailsData" keep="true" nbThumbnailsLoaded="0"/>
    <action name="thumbloaded">
		inc(plugin[thumbnailsData].nbThumbnailsLoaded, 1);
		if(plugin[thumbnailsData].nbThumbnailsLoaded GE 11,
		setThumbnailsVisible();
		adjusthtml5thumbsplugins();
		);
	</action>
    <action name="setThumbnailsVisible">
		set(plugin[thumb_build0].visible, true);
		set(plugin[thumb_build1].visible, true);
		set(plugin[thumb_build2].visible, true);
		set(plugin[thumb_build3].visible, true);
		set(plugin[thumb_build4].visible, true);
		set(plugin[thumb_build5].visible, true);
		set(plugin[thumb_build6].visible, true);
		set(plugin[thumb_build7].visible, true);
		set(plugin[thumb_build8].visible, true);
		set(plugin[thumb_build9].visible, true);
		set(plugin[thumb_build10].visible, true);
	</action>
    <!--************** Plugin Mapa ****************************************************************-->
    <plugin name="map" url="builddata/map/map.jpg" keep="true" align="lefttop" zorder="30" x="10" y="10" width="27" height="40" handcursor="false" onloaded="hidemapspot();" onclick="openmap"/>
    <plugin keep="true" visible="false" name="mapspot0" onclick="mainloadpano(build3.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Wiata z piecem chlebowym przy Domu Rękodzieła Ludowego w Swornegaciach);" align="lefttop" edge="center" parent="map" x="31.5126%" y="17.3538%"/>
    <plugin keep="true" visible="false" name="mapspot1" onclick="mainloadpano(build1.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Most zwodzony Małe Swornegacie);" align="lefttop" edge="center" parent="map" x="29.8319%" y="30.3931%"/>
    <plugin keep="true" visible="false" name="mapspot2" onclick="mainloadpano(build0.xml);" url="builddata/graphics/spots/spot1.png" blingCounter="0" onhover="showtext(Półwysep Miechórz w Małe Swornegacie - panorama z powietrza);" align="lefttop" edge="center" parent="map" x="30.3922%" y="25.1198%"/>
    <plugin keep="true" visible="false" name="mapspot3" onclick="mainloadpano(build7.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Wyłuszczarnia nasion w Klosnowie);" align="lefttop" edge="center" parent="map" x="53.5211%" y="46.5241%"/>
    <plugin keep="true" visible="false" name="mapspot4" onclick="mainloadpano(build2.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Port jachtowy w Charzykowach);" align="lefttop" edge="center" parent="map" x="31.5126%" y="51.6779%"/>
    <plugin keep="true" visible="false" name="mapspot5" onclick="mainloadpano(build9.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Inscenizacja szarży pod Krojantami - w każdą pierwszą niedzielę września);" align="lefttop" edge="center" parent="map" x="63.494%" y="54.7668%"/>
    <plugin keep="true" visible="false" name="mapspot6" onclick="mainloadpano(build8.xml);" url="builddata/graphics/spots/spot1.png" blingCounter="0" onhover="showtext(Inscenizacja szarży pod Krojantami - panorama z powietrza);" align="lefttop" edge="center" parent="map" x="68.1928%" y="54.7255%"/>
    <plugin keep="true" visible="false" name="mapspot7" onclick="mainloadpano(build10.xml);" url="builddata/graphics/spots/spot1.png" blingCounter="0" onhover="showtext(Strefa ekonomiczna w Topole - panorama z powietrza);" align="lefttop" edge="center" parent="map" x="34.8195%" y="64.8688%"/>
    <plugin keep="true" visible="false" name="mapspot8" onclick="mainloadpano(build5.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Chata kaszubska w Silnie);" align="lefttop" edge="center" parent="map" x="80.1252%" y="78.2888%"/>
    <plugin keep="true" visible="false" name="mapspot9" onclick="mainloadpano(build6.xml);" url="builddata/graphics/spots/spot0.png" blingCounter="0" onhover="showtext(Kościół św. Jakuba Apostoła w Ostrowitem);" align="lefttop" edge="center" parent="map" x="70.4225%" y="81.6043%"/>
    <action name="showmapspot">
		set(  plugin[mapspot0].alpha  , 0);
		set(  plugin[mapspot0].visible, true);
		tween(plugin[mapspot0].alpha  , 1);
		set(  plugin[mapspot1].alpha  , 0);
		set(  plugin[mapspot1].visible, true);
		tween(plugin[mapspot1].alpha  , 1);
		set(  plugin[mapspot2].alpha  , 0);
		set(  plugin[mapspot2].visible, true);
		tween(plugin[mapspot2].alpha  , 1);
		set(  plugin[mapspot3].alpha  , 0);
		set(  plugin[mapspot3].visible, true);
		tween(plugin[mapspot3].alpha  , 1);
		set(  plugin[mapspot4].alpha  , 0);
		set(  plugin[mapspot4].visible, true);
		tween(plugin[mapspot4].alpha  , 1);
		set(  plugin[mapspot5].alpha  , 0);
		set(  plugin[mapspot5].visible, true);
		tween(plugin[mapspot5].alpha  , 1);
		set(  plugin[mapspot6].alpha  , 0);
		set(  plugin[mapspot6].visible, true);
		tween(plugin[mapspot6].alpha  , 1);
		set(  plugin[mapspot7].alpha  , 0);
		set(  plugin[mapspot7].visible, true);
		tween(plugin[mapspot7].alpha  , 1);
		set(  plugin[mapspot8].alpha  , 0);
		set(  plugin[mapspot8].visible, true);
		tween(plugin[mapspot8].alpha  , 1);
		set(  plugin[mapspot9].alpha  , 0);
		set(  plugin[mapspot9].visible, true);
		tween(plugin[mapspot9].alpha  , 1);
	</action>
    <action name="hidemapspot">
		set(plugin[mapspot0].visible,false);
		set(plugin[mapspot1].visible,false);
		set(plugin[mapspot2].visible,false);
		set(plugin[mapspot3].visible,false);
		set(plugin[mapspot4].visible,false);
		set(plugin[mapspot5].visible,false);
		set(plugin[mapspot6].visible,false);
		set(plugin[mapspot7].visible,false);
		set(plugin[mapspot8].visible,false);
		set(plugin[mapspot9].visible,false);
	</action>
    <!-- zamknij mapę -->
    <action name="closemap">
		hidemapspot();
		set(plugin[map].onclick,openmap);
		set(plugin[map].width, 27);
		set(plugin[map].height, 40);
	</action>
    <!-- otwórz mapę -->
    <action name="openmap">
		set(plugin[map].onclick, closemap);
		set(plugin[map].width, prop);
		tween(plugin[map].height, 80%, 0.5, easeoutquad, showmapspot(););
		set(plugin[map].align, lefttop);
		set(plugin[map].x    , 10);
		set(plugin[map].y    , 10);
	</action>
    <!-- Odznacz wszystkie Hotspoty za wyjątkiem zgodnych z podanym argumentem -->
    <!-- Odznacz wszystkie Hotspoty za bez podanego argumentu -->
    <action name="unselectmapspotsbutpassed">
		if (%1 != mapspot0,
				if(plugin[mapspot0].animated,
				set(plugin[mapspot0].frame           , 0);
				set(plugin[mapspot0].ypos            , 0);
				set(plugin[mapspot0].animationCounter, 0)
				txtadd(plugin[mapspot0].crop,'0|0|',get(plugin[mapspot0].framewidth),'|',get(plugin[mapspot0].frameheight));
			,
				set(plugin[mapspot0].blingCounter, 0)
			)
		);
		resetmapspot(mapspot0);
		if (%1 != mapspot1,
				if(plugin[mapspot1].animated,
				set(plugin[mapspot1].frame           , 0);
				set(plugin[mapspot1].ypos            , 0);
				set(plugin[mapspot1].animationCounter, 0)
				txtadd(plugin[mapspot1].crop,'0|0|',get(plugin[mapspot1].framewidth),'|',get(plugin[mapspot1].frameheight));
			,
				set(plugin[mapspot1].blingCounter, 0)
			)
		);
		resetmapspot(mapspot1);
		if (%1 != mapspot2,
				if(plugin[mapspot2].animated,
				set(plugin[mapspot2].frame           , 0);
				set(plugin[mapspot2].ypos            , 0);
				set(plugin[mapspot2].animationCounter, 0)
				txtadd(plugin[mapspot2].crop,'0|0|',get(plugin[mapspot2].framewidth),'|',get(plugin[mapspot2].frameheight));
			,
				set(plugin[mapspot2].blingCounter, 0)
			)
		);
		resetmapspot(mapspot2);
		if (%1 != mapspot3,
				if(plugin[mapspot3].animated,
				set(plugin[mapspot3].frame           , 0);
				set(plugin[mapspot3].ypos            , 0);
				set(plugin[mapspot3].animationCounter, 0)
				txtadd(plugin[mapspot3].crop,'0|0|',get(plugin[mapspot3].framewidth),'|',get(plugin[mapspot3].frameheight));
			,
				set(plugin[mapspot3].blingCounter, 0)
			)
		);
		resetmapspot(mapspot3);
		if (%1 != mapspot4,
				if(plugin[mapspot4].animated,
				set(plugin[mapspot4].frame           , 0);
				set(plugin[mapspot4].ypos            , 0);
				set(plugin[mapspot4].animationCounter, 0)
				txtadd(plugin[mapspot4].crop,'0|0|',get(plugin[mapspot4].framewidth),'|',get(plugin[mapspot4].frameheight));
			,
				set(plugin[mapspot4].blingCounter, 0)
			)
		);
		resetmapspot(mapspot4);
		if (%1 != mapspot5,
				if(plugin[mapspot5].animated,
				set(plugin[mapspot5].frame           , 0);
				set(plugin[mapspot5].ypos            , 0);
				set(plugin[mapspot5].animationCounter, 0)
				txtadd(plugin[mapspot5].crop,'0|0|',get(plugin[mapspot5].framewidth),'|',get(plugin[mapspot5].frameheight));
			,
				set(plugin[mapspot5].blingCounter, 0)
			)
		);
		resetmapspot(mapspot5);
		if (%1 != mapspot6,
				if(plugin[mapspot6].animated,
				set(plugin[mapspot6].frame           , 0);
				set(plugin[mapspot6].ypos            , 0);
				set(plugin[mapspot6].animationCounter, 0)
				txtadd(plugin[mapspot6].crop,'0|0|',get(plugin[mapspot6].framewidth),'|',get(plugin[mapspot6].frameheight));
			,
				set(plugin[mapspot6].blingCounter, 0)
			)
		);
		resetmapspot(mapspot6);
		if (%1 != mapspot7,
				if(plugin[mapspot7].animated,
				set(plugin[mapspot7].frame           , 0);
				set(plugin[mapspot7].ypos            , 0);
				set(plugin[mapspot7].animationCounter, 0)
				txtadd(plugin[mapspot7].crop,'0|0|',get(plugin[mapspot7].framewidth),'|',get(plugin[mapspot7].frameheight));
			,
				set(plugin[mapspot7].blingCounter, 0)
			)
		);
		resetmapspot(mapspot7);
		if (%1 != mapspot8,
				if(plugin[mapspot8].animated,
				set(plugin[mapspot8].frame           , 0);
				set(plugin[mapspot8].ypos            , 0);
				set(plugin[mapspot8].animationCounter, 0)
				txtadd(plugin[mapspot8].crop,'0|0|',get(plugin[mapspot8].framewidth),'|',get(plugin[mapspot8].frameheight));
			,
				set(plugin[mapspot8].blingCounter, 0)
			)
		);
		resetmapspot(mapspot8);
		if (%1 != mapspot9,
				if(plugin[mapspot9].animated,
				set(plugin[mapspot9].frame           , 0);
				set(plugin[mapspot9].ypos            , 0);
				set(plugin[mapspot9].animationCounter, 0)
				txtadd(plugin[mapspot9].crop,'0|0|',get(plugin[mapspot9].framewidth),'|',get(plugin[mapspot9].frameheight));
			,
				set(plugin[mapspot9].blingCounter, 0)
			)
		);
		resetmapspot(mapspot9);
	</action>
    <!-- Wybierz Hotspot dla Mapy -->
    <action name="selectmapspot">
		unselectmapspotsbutpassed(%1);
		if(plugin[%1].animated,
			inc(plugin[%1].animationCounter, 1);
			if(plugin[%1].animationCounter == 1,
				animatemapspot(%1, 0.1);
			);
		,
			inc(plugin[%1].blingCounter,1);
			if(plugin[%1].blingCounter == 1,
				blingmapspot(%1);
			);
		);
	</action>
    <!-- miganie aktualnie wybranego hotspotu -->
    <action name="blingmapspot">
		tween(plugin[%1].alpha, 0.0, 0.8, easeInSine  );
		tween(plugin[%1].scale, 1.5, 0.8, easeOutCubic);
		tween(, , 0.8, , resetmapspot(%1);
		if(plugin[%1].blingCounter &gt; 0, blingmapspot(%1);););
	</action>
    <action name="resetmapspot">
		set(plugin[%1].scale,1);
		set(plugin[%1].alpha,1);
	</action>
    <action name="closeglobalobjects">
		closemap();
	</action>
    <!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
    <action name="interruptAnimation">
		ifnot (stopSequence === undefined,
			set(stopSequence, true);
			wait(0);
		);
	</action>
</krpano>