// jquery-1.4.2.min
$(document).ready(function(){

	// open links in new window
	$('a[href^="http://"]').attr({target: "_blank"});

	var $a = $('ul.favorieten li');
	$a.click(function(){
	        $a.removeClass('active');			
	        $(this).addClass('active');
	});



	//anythingfader
        function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.slider').anythingFader({
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 4000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 700,             // How long the slide transition takes
                hashTags: false,                 // 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: "play",                // Start text
                stopText: "pause",               // Stop text
                navigationFormatter: formatText   // Details at the top of the file on this use (advanced use)
            });
            
			$(".homemain .living a").click(function(){$('.slider').anythingFader(1);});
			$(".homemain .decoration a").click(function(){$('.slider').anythingFader(2);});
			$(".homemain .wellness a").click(function(){$('.slider').anythingFader(3);});
			$(".homemain .bedroom a").click(function(){$('.slider').anythingFader(4);});
			
			$(".volevatchmain .luxe a").click(function(){$('.slider').anythingFader(2);});
			$(".volevatchmain .ambachtelijk a").click(function(){$('.slider').anythingFader(3);});
			$(".volevatchmain .tijdloos a").click(function(){$('.slider').anythingFader(4);});
			
			$(".volevatchmain .luxury a").click(function(){$('.slider').anythingFader(2);});
			$(".volevatchmain .crafts a").click(function(){$('.slider').anythingFader(3);});
			$(".volevatchmain .timeless a").click(function(){$('.slider').anythingFader(4);});
			
            $("ul.favorieten li.julie").click(function(){$('.slider').anythingFader(1);});
            $("ul.favorieten li.marco").click(function(){$('.slider').anythingFader(2);});
            $("ul.favorieten li.joost").click(function(){$('.slider').anythingFader(3);});
            $("ul.favorieten li.nicolien").click(function(){$('.slider').anythingFader(4);});
            $("ul.favorieten li.judith").click(function(){$('.slider').anythingFader(5);});
			$("ul.favorieten li.carolien").click(function(){$('.slider').anythingFader(6);});
            
            
//            $("#slide-jump").click(function(){
//                $('.slider').anythingFader(6);
//            });
            
        });                

});

