function showNewsitem( ID ) {
	var _Height = $('#News' + ID + ' .Teaser .Text' ).innerHeight();
	$('#News' + ID + ' .ReadMore').css( 'display', 'none' );	
	$('#News' + ID + ' .Teaser').animate({
		height: _Height
	}, 1000, function(){
	});
}

function closeNewsitem( ID ) {
	var _Height = $('#News' + ID + ' .Teaser .Text' ).innerHeight();
	$('#News' + ID + ' .Teaser').animate({
		height: 0
	}, 1000, function(){
		$('#News' + ID + ' .ReadMore').css( 'display', 'block' );
	});
}

$(document).ready(function(){
	$('.ReadMore').each(function(){
		$(this).click(function(ev){
			ev.preventDefault();
			showNewsitem( $(this).attr( 'rel' ) );
		});
	});
	
	$('.CloseNews').each(function(){
		$(this).click(function(ev){
			ev.preventDefault();
			closeNewsitem( $(this).attr( 'rel' ) );
		});
	});

	$('.Switch').each(function(){

		$(this).mouseenter(function(){
			$(this).addClass( 'Hover' );
		}).mouseleave(function(){
			$(this).removeClass( 'Hover' );
		}).click(function(){
			var Obj = $(this);
			if( $(Obj).hasClass( 'Open' ) ) {

				$(Obj).removeClass( 'Open' );
				
				$(Obj).children( '.Step1' ).animate({
					opacity: 1
				}, 1000, function() {
					
				});

			} else {

				$(Obj).children( '.Step1' ).animate({
					opacity: 0
				}, 1000, function() {
					$(Obj).addClass( 'Open' );
				});
				
			}
		});
	});
});

/* Versie 1
$(document).ready(function(){
	$('.Switch').each(function(){

		$(this).mouseenter(function(){
			$(this).addClass( 'Hover' );
		}).mouseleave(function(){
			$(this).removeClass( 'Hover' );
		}).click(function(){
			var Obj = $(this);
			if( $(Obj).hasClass( 'Open' ) ) {

				$(Obj).children( '.Step2' ).animate({
					opacity: 0
				}, 1000, function() {
					$(Obj).children( '.Step1' ).animate({
						opacity: 1
					}, 1000, function() {
						$(Obj).removeClass( 'Open' );
					});
				});
				
			} else {

				$(Obj).children( '.Step1' ).animate({
					opacity: 0
				}, 1000, function() {
					$(Obj).children( '.Step2' ).animate({
						opacity: 1
					}, 1000, function() {
						$(Obj).addClass( 'Open' );
					});
				});
				
			}
		});
	});
});
*/
