tinyMCE.init({
	theme : "advanced",
	mode : "textareas",
	plugins : "fullpage",
	theme_advanced_buttons3_add : "fullpage"
});

function changePic(imageSrc) {
	document.getElementById('largeImage').src = imageSrc;
}

function changeFlash(flashSrc) {
	alert('hoi');
	//document.getElementById('photoBlock').innerHTML = 'hoi';
}

function showThumbs(collection, start) {
	new Ajax.Request("../../lib/javascript/ajax/viewer/thumbs.php?collection="+collection+"&start="+start, {
		onSuccess : function(resp) {
			document.getElementById('viewerThumbs').innerHTML = resp.responseText;
		},
		onFailure : function(resp) { 
			alert("Oops, there's been an error.");
		}, 
		parameters : null
		}
	);
}

function showViewer(id) {
	new Ajax.Request("../../lib/javascript/ajax/viewer/viewer.php?id="+id, {
		onSuccess : function(resp) {
			document.getElementById('viewer').innerHTML = resp.responseText;
		},
		onFailure : function(resp) { 
			alert("Oops, there's been an error.");
		}, 
		parameters : null
		}
	);
}
