
/*----------------------------------------------------------------------------------------------------------------- */
/*ANYTHING SLIDER*/
$(document).ready(function() {
    $('#slider1')
    	.anythingSlider({
    	    width: 257,
    	    height: 62,
    	    startStopped: false,
    	    toggleControls: false,
    	    buildArrows: true,
    	    buildNavigation: false,
    	    autoPlay: true,
    	    pauseOnHover: true,
    	    delay: 5000,
    	    animationTime: 500
    	})

    $("a[rel=example_group]").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'titlePosition': 'over',
        'type': 'image',
        'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Afbeelding ' + (currentIndex + 1) + ' van de ' + currentArray.length + ' | ' + title + '</span>'; //Nederlands
            //return '<span id="fancybox-title-over">Bild' + (currentIndex + 1) + ' der ' + currentArray.length + ' | ' + title + '</span>'; //Deutsche
        }
    });



    $("div#menudiv a.parent").hover(function() { //When trigger is clicked...  



        //Following events are applied to the subnav itself (moving subnav up and down)  
        $(this).parent().find("div.submenu").slideDown(125).show(); //Drop down the subnav on click  

        $(this).parent().hover(function() {
        }, function() {
            $(this).parent().find("div.submenu").slideUp(125); //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"
    });





});

/* END FUCNTION */
/*----------------------------------------------------------------------------------------------------------------- */
