	

	jQuery.noConflict();
	
	jQuery(document).ready(function(){ 
											jQuery(".photoalbum a").prettyPhoto({
																					theme:'facebook',
																					default_width: 500,
																					default_height: 344,
																					overlay_gallery: false,
																					showTitle:false
																				});
						
											jQuery(".options .left a").prettyPhoto({
																					theme:'facebook',
																					default_width: 500,
																					default_height: 344,
																					overlay_gallery: false,
																					showTitle:false
																				});
											
											jQuery(".right .reacties").prettyPhoto({
																				theme:'facebook',																				
																				default_width: 500,
																				default_height: 344,
																				overlay_gallery: false,
																				showTitle:false
																			});	
	
									 });
	
	
	
	
	var naam = '';
	var bericht = '';


	function reactie(id)
	{
		
		if( naam == '' )
		{						
			alert('Voer een reactie in.');
			return false;
		}
		
		if( bericht == '' )
		{						
			alert('Voer een naam in.');
			return false;
		}
		
		
		jQuery.ajax({
			type : 'POST',
			url : base_dir+"nieuws/addreactie/",
			dataType : 'json',
			data: {
				id 		: id,
				naam 	: naam,
				bericht : bericht
			},
			success : function(data)
			{
				jQuery.prettyPhoto.close();
				alert( "Bedankt voor uw inbreng, uw reactie wordt verwerkt door de redactie." );					
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				alert( "Er is iets misgegaan, uw reactie is niet geplaatst" );
			}
		});

	}					
		 
									 						

