$(document).ready(function(){

	// Jquery Scripting by 80sinteractive 
	// Script written by Dennis de Goede
	

	// READMORE
		$("a:contains('...Lees meer')").addClass("readmore");	

	// FOOTER
	
		$("a[href='volg-ons/flickr/']").addClass("footer_flickr");
		$("a[href='volg-ons/twitter/']").addClass("footer_twitter");
		$("a[href='volg-ons/linkedin/']").addClass("footer_linkedin");
		
	// PORTFOLIO
		$('.news-list-item-image').hover(function() {
			$(this).fadeTo("fast", 0.15);
		}, function() {
			$(this).fadeTo("fast", 1);
		});
	
	// HOME
	
		$(".b-titel").parent().css({"opacity": "0.75"});
		$(".b-titel").parent().addClass("opacity75");	
	
		$('.b-wrap').hover(function() {
			$(".b-titel",this).animate({"top": "-75px", "height": "75px"}, 500);
			$(".b-tekst",this).animate({"top": "0px", "height": "300px"}, 500);
			$(".b-titel",this).parent().animate({"opacity": "1"});	
			$(".b-wrap",this).addClass("opacity100");
								
		}, function() {
			$(".b-titel",this).stop();
			$(".b-tekst",this).stop();
			$(".b-titel",this).animate({"top": "0px", "height": "150px"}, 50);
			$(".b-tekst",this).animate({"top": "0px", "height": "150px"}, 50);
			$(".b-titel",this).parent().animate({"opacity": "0.75"});
			$(".b-wrap",this).addClass("opacity75");	
		});
					
		$('.brand').click(function() {
			top.location.href='/wat-doen-we/brand-interaction/';
		});
	
		$('.visueel').click(function() {
			top.location.href='/wat-doen-we/visualisatie/';
		});
	
		$('.ontwikkel').click(function() {
			top.location.href='/wat-doen-we/ontwikkelen/';
		});

		$('.optimaal').click(function() {
			top.location.href='/wat-doen-we/optimaliseren/';
		});
		
	// ACCORDION
	
		$(function() {
			$("#accordion").accordion({ autoHeight: false });
		});	
	// Daniel verveelt zich
		/*
		$("#headerimg").css("margin-left","-4000px");
		$("#headerimg").animate({ 
			marginLeft: "40px"
		}, 1000 );
		$("#headermenu").css("opacity","0");
		$("#headermenu").animate({ 
			opacity: "1"
		}, 1000 );
		*/
	// nu niet meer
});
