$(document).ready(function() {     
 
	

	$(".clickenlarge").fancybox({
		'overlayShow'	: false,
		'zoomSpeedIn'	: 600,
		'zoomSpeedOut'	: 500,
		'easingIn'		: 'easeOutBack',
		'easingOut'		: 'easeInBack',
		'padding'		: 2
	});
	
	
$(".hoehe").fancybox({
		'overlayShow'	: false,
		'zoomSpeedIn'	: 600,
		'zoomSpeedOut'	: 500,
		'easingIn'		: 'easeOutBack',
		'easingOut'		: 'easeInBack',
		'padding'		: 2
	});
	


$("#html").fancybox({
		'width'				: '75%',
		'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});

$(".html").fancybox({
		'width'				: '75%',
		'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});

$("#webcam").fancybox({
		'width'				: 800,
		'height'			: 600,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});


$("#burgbuch").fancybox({
		'width'				: '95%',
		'height'			: '95%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});

$(".burgbuch").fancybox({
		'width'				: '95%',
		'height'			: '95%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});

$(".karte").fancybox({
		'width'				: 550,
		'height'			: 450,
     	   	'autoScale'     	: false,
      		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
$(".gpx").fancybox({
		'width'				: 550,
		'height'			: 450,
     	   	'autoScale'     	: false,
      		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

$(".panorama").fancybox({
		'width'				: 700,
		'height'			: 460,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});	

$(".gottesdienst").fancybox({
		'width'				: 690,
		'height'			: 530,
     	   	'autoScale'     	: false,
      		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

$(".3d").fancybox({
		'width'				: 700,
		'height'			: 460,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

	});

}); 


$(document).ready(function(){
		$('li.headlink').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); });
	});

    
	



$(document).ready(function() {     
 $('#slideshow').cycle({
		'cleartypeNoBg' : true,
		'timeout' : 7500,
		'fx' : 'fade'
    		
	});
	
	


	}); 
	

/* Silder */

 function formatText(index, panel) {

		  return index + "";

	    }

    

        $(function () {

        

            $('.anythingSlider').anythingSlider({

                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin

                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.

                delay: 6000,                    // How long between slide transitions in AutoPlay mode

                startStopped: true,            // If autoPlay is on, this can force it to start stopped

                animationTime: 600,             // How long the slide transition takes

                hashTags: true,                 // Should links change the hashtag in the URL?

                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide

        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover

        		  startText: "Go",             // Start text
		        stopText: "Stop", 

		        navigationFormatter: null       // Details at the top of the file on this use (advanced use)

            });

            

            $("#slide-jump").click(function(){

                $('.anythingSlider').anythingSlider(6);

            });

            

        });

        jQuery(document).ready(function () {
          var pkBaseURL = (('https:' == document.location.protocol) ? 'https://stats.burg-rieneck.de/piwik/' : 'http://stats.burg-rieneck.de/piwik/');
          jQuery.getScript(pkBaseURL + 'piwik.js', function(){
            var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
            piwikTracker.trackPageView();
            piwikTracker.enableLinkTracking();
          });
        });


