

$(document).ready(function() {

	$(".clickenlarge").fancybox({

		'overlayShow'	: false,

		'zoomSpeedIn'	: 600,

		'zoomSpeedOut'	: 500,

		'easingIn'		: 'easeOutBack',

		'easingOut'		: 'easeInBack',

		'padding'		: 2

	});



	/*$("a.html").fancybox();*/

	$(".html").fancybox({

		'width'				: '75%',

		'height'			: '75%',

        'autoScale'     	: false,

        'transitionIn'		: 'none',

		'transitionOut'		: 'none',

		'type'				: 'iframe'



	});


$(".anp").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'
	});

	

});





        





$(document).ready(function(){



	$("ul.navi02").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.navi02*)



	$("ul.navi li span").click(function() { //When trigger is clicked...



		//Following events are applied to the subnav itself (moving subnav up and down)

		$(this).parent().find("ul.navi02").slideDown('fast').show(); //Drop down the subnav on click



		$(this).parent().hover(function() {

		}, function(){

			$(this).parent().find("ul.navi02").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up

		});



		//Following events are applied to the trigger (Hover events for the trigger)

		}).hover(function() {

			$(this).addClass("subhover"); //On hover over, add class "subhover"

		}, function(){	//On Hover Out

			$(this).removeClass("subhover"); //On hover out, remove class "subhover"

	});



});



/* 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: false,            // 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

        		               // Stop text

		        navigationFormatter: null       // Details at the top of the file on this use (advanced use)

            });

            

            $("#slide-jump").click(function(){

                $('.anythingSlider').anythingSlider(6);

            });

            

        });
        
        


$(document).ready(function() {     
 $('#slideshow').cycle({
		'cleartypeNoBg' : true,
		'timeout' : 7500,
		'fx' : 'fade'
    		
	});
	
	


	}); 
	
        


$(document).ready(function() {



/* ------------

myVCP-Login 

------------ */	





            $(".signin").click(function(e) {          

                e.preventDefault();

                $("fieldset#myvcplogin").toggle();

                $(".signin").toggleClass("menu-open");

            });

            

            $("fieldset#myvcplogin").mouseup(function() {

                return false

            });

            $(document).mouseup(function(e) {

                if($(e.target).parent("a.signin").length==0) {

                    $(".signin").removeClass("menu-open");

                    $("fieldset#myvcplogin").hide();

                }

            });            

            

        });



