$(document).ready(function() {
	 		$('div#SlideshowDubbelContainer').hide();

 		$('div#SlideshowDubbelContainer').fadeIn(750);
		 //		$('div#SlideshowDubbelContainer').slideDown(1250);

 	
 	//alert($("div.accordionContent").hide();
 	if ($('div#ProjectsRechtsContainer1 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer1Link').hide();$('a.ProjectsRechtsContainer1Link').attr("id", "newID") }
 	if ($('div#ProjectsRechtsContainer2 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer2Link').hide();$('a.ProjectsRechtsContainer2Link').attr("id", "newID")  }
 	if ($('div#ProjectsRechtsContainer3 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer3Link').hide();$('a.ProjectsRechtsContainer3Link').attr("id", "newID")  }
 	if ($('div#ProjectsRechtsContainer4 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer4Link').hide();$('a.ProjectsRechtsContainer4Link').attr("id", "newID")  }
 	if ($('div#ProjectsRechtsContainer5 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer5Link').hide();$('a.ProjectsRechtsContainer5Link').attr("id", "newID")  }
 	if ($('div#ProjectsRechtsContainer6 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer6Link').hide();$('a.ProjectsRechtsContainer6Link').attr("id", "newID")  }
 	 	if ($('div#ProjectsRechtsContainer7 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer7Link').hide();$('a.ProjectsRechtsContainer7Link').attr("id", "newID")  }
 	if ($('div#ProjectsRechtsContainer8 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer8Link').hide();$('a.ProjectsRechtsContainer8Link').attr("id", "newID")  }
 	if ($('div#ProjectsRechtsContainer9 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer9Link').hide();$('a.ProjectsRechtsContainer9Link').attr("id", "newID")  }
	 	if ($('div#ProjectsRechtsContainer10 div.accordioncontent').height() < 115) { $('a.ProjectsRechtsContainer10Link').hide();$('a.ProjectsRechtsContainer10Link').attr("id", "newID")  }

 	
 	
 	
	//ACCORDION BUTTON ACTION	
	$('div.accordionButton').click(function() {
		
		$('div.accordionContent').slideUp('slow');	
		$(this).next().slideDown('slow');
	});

$('a.ProjectsRechtsContainer1Link').click(function() {
	id = 'ProjectsRechtsContainer1';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer2Link').click(function() {
	id = 'ProjectsRechtsContainer2';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer3Link').click(function() {
	id = 'ProjectsRechtsContainer3';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer4Link').click(function() {
	id = 'ProjectsRechtsContainer4';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer5Link').click(function() {
	id = 'ProjectsRechtsContainer5';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer6Link').click(function() {
	id = 'ProjectsRechtsContainer6';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer7Link').click(function() {
	id = 'ProjectsRechtsContainer7';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer8Link').click(function() {
	id = 'ProjectsRechtsContainer8';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer9Link').click(function() {
	id = 'ProjectsRechtsContainer9';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

$('a.ProjectsRechtsContainer10Link').click(function() {
	id = 'ProjectsRechtsContainer10';
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$('div#' + id).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

});

/*
$('div.accordioncontainer').click(function() {
 	//alert('boe');
	id = this.id;
	//alert($('div#' + id + ' div.accordioncontent').height());
	hoogte = $('div#' + id + ' div.accordioncontent').height() + 54;
	//alert(hoogte);
	$('div.accordioncontainer').animate({'height':'140px'},325);
	//alert($(this).height());
	$(this).animate({'height': + hoogte + 'px'},325);
	$('a#readlink').fadeIn("slow");
	$('a.' + id + 'Link').fadeOut("slow");

	//alert($(this)."div.accordioncontent").height());	
	//alert($(this) + accordioncontent + height()); 
	//$('div#' + id + ' div.accordioncontent').each(){
//	alert(this.height());
	//alert(id);
	//}

}); */
	
//	$('div.accordioncontainer').click(function() {
	//	$('div.accordioncontainer').animate({$(this).height()},1500);
		//alert($('.accordioncontent').height()); 
		//$('div.#ProjectsRechtsContent').css({'overflow':'visible'},1500);
		//$(this > '.accordioncontainer').animate({'height':'100%'},1500);
//		$('div.accordioncontent').each() {
	//		alert(this.getAttr('height'));
	//	}
	//	$('div.#SlideShowDubbelContainer').animate({'height':'100%'},1500);

		//alert('klik');
		//$(this).animate({'height':'100%'},150);	//	$(this).next().slideDown('slow');
		//$(this).next().animate({'height':'182px'},150);

//	});
 
 //	$('div.accordiontest').click(function() {
	//	$(this).animate({'height':'100%'},1500);
		//$('div.#ProjectsRechtsContent').css({'overflow':'visible'},1500);

	//	$('div.#SlideShowDubbelContainer').animate({'height':'100%'},1500);

		//alert('klik');
		//$(this).animate({'height':'100%'},150);	//	$(this).next().slideDown('slow');
		//$(this).next().animate({'height':'182px'},150);

	//});
 
	//HIDE THE DIVS ON PAGE LOAD	
//	$("div.accordionContent").hide();
 
});
