

$(document).ready(function() {
	$(".imgpop").fancybox({ 'overlayShow': true });
    $(".hoofdmenu ul li").hover(function() {$(this).addClass("over"); $('.sub1', this).css('display', 'block');}, function() {$(this).removeClass("over"); $('.sub1', this).css('display', 'none');});   $(".hoofdmenu .sub1 li").hover(function() {$(this).addClass("over"); $('.sub2', this).css('display', 'block');}, function() {$(this).removeClass("over"); $('.sub2', this).css('display', 'none');});
	$('.slideshow').cycle({ fx: 'fade', slideExpr: 'img', speed:1200, timeout:3000  });
	$('.nieuws').cycle({ fx: 'scrollVert', slideExpr: 'div.tweenieuwsberichten', pager: '.nieuws_nav', speed:1000, timeout:0  });
	$('.klantenslider').cycle({ fx: 'scrollRight', slideExpr: '.group', speed:1000, timeout:10  });
	
    $('.home_slider, .home_slider_overlay').cycle({
        fx: 'fade',
        startingSlide: Math.floor(Math.random()*4),
        speed: '1200',
        timeout: 2500,
        pager: '.home_slider_nav',
        slideExpr: 'div, div',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '.home_slider_nav li:eq(' + (idx) + ') a';
        }
    });
    
    $('.home_slider, .home_slider_overlay, .home_slider_overlay span').css("visibility","visible")
    
    	$("#twitterdump").tweet({
		username: ["ABMiddenNL"],
		join_text: "auto",
		avatar_size: 48,
		count: 2,
		auto_join_text_default: "",
        auto_join_text_ed: "",
        auto_join_text_ing: "",
        auto_join_text_reply: "",
        auto_join_text_url: "",
		loading_text: "Tweets laden..",
		template: "{text}{time}"
	});
    
});
