$(document).ready(function () {
$('#bg-top').fadeTo(600,0.4);
}); 

$(document).ready(function(){
        $(".tweet").tweet({
            username: "thegardeners",
            join_text: "auto",
            avatar_size: 1,
            count: 2,
            auto_join_text_default: "The Gardeners: ",
            auto_join_text_ed: "The Gardeners: ",
            auto_join_text_ing: "The Gardeners: ",
            auto_join_text_reply: "The Gardeners hebben geantwoord op: ",
            auto_join_text_url: "The Gardeners bekeken: ",
            loading_text: "laden tweets..."
        });
    });

$(document).ready(function(){
//Set opacity on each span to 0%
$(".navigation img").css({'opacity':'0'});

$('.navigation img').hover(
	function() {
		$(this).stop().fadeTo(100, 1);
	},
	function() {
		$(this).stop().fadeTo(500, 0);
	}
)
});

$(document).ready(function(){
//Set opacity on each span to 0%
$("#klanten img").css({'opacity':'1'});

$('#klanten img').hover(
	function() {
		$(this).stop().fadeTo(200, 0.5);
	},
	function() {
		$(this).stop().fadeTo(500, 1);
	}
)
});

$(document).ready(function(){
//Set opacity on each span to 0%
$(".footer-bar-content-socialmedia img").css({'opacity':'1'});

$('.footer-bar-content-socialmedia img').hover(
	function() {
		$(this).stop().fadeTo(200, 0.50);
	},
	function() {
		$(this).stop().fadeTo(500, 1);
	}
)
});

$(document).ready(function() {
			setTimeout("animation2()",300);
		});
function animation2(){
			bird();
label();
rocket();
}
function bird(){
			$("#bird").animate({top:"-=0px"}, { duration: 1500,
                    easing: 'swing'
                }).animate({top:"-=3px"}, { duration: 50,
                    easing: 'swing'
                }).animate({top:"+=3px"}, { duration: 150,
                    easing: 'swing'
                }).animate({top:"-=2px"}, { duration: 30,
                    easing: 'swing'
                }).animate({top:"+=2px"}, { duration: 100,
                    easing: 'swing'
                });
			setTimeout("bird()",200);
		}
function label(){
			$("#label").animate({top:"-=5px"}, { duration: 1000,
                    easing: 'swing'
                }).animate({top:"+=5px"}, { duration: 700,
                    easing: 'swing'
                });
			setTimeout("label()",200);
		}
function rocket(){
			$("#rocket").animate({top:"-=0px"},1500).animate({top:"-=5px"},100).animate({top:"+=5px"},100).animate({top:"-=7px"},50).animate({top:"+=7px"},50).animate({top:"-=7px"},50).animate({top:"+=7px"},50).animate({top:"-=800px"},1000).animate({top:"+=800px"}, { duration: 5000,
                    easing: 'swing'
                });
			setTimeout("rocket()",200);
		}
