<!--
function confirmation(name, loc) {
	var answer = confirm("Wilt u " + name + " echt verwijderen?")
	if (answer){
		window.location = loc;
	}
}

function subover(title) {
	document.getElementById("sub" + title).style.display = "inline";
}

function subout(title) {
	document.getElementById("sub" + title).style.display = "none";
}

function init(album) {
	i = 0;
	document.getElementById('file').onchange=function() {
		i++;
		document.getElementById('targetContainer').innerHTML = "<iframe frameborder=\"0\" id=\"target" + i + "\" name=\"target" + i + "\"></iframe><div class=\"file\" id=\"file" + i + "\">" + document.getElementById('file').value.substring(0,14) + "<img width=\"150\" src=\"../img/activity.gif\"></div>" + document.getElementById('targetContainer').innerHTML;
		document.getElementById('file_upload_form').action = 'upload.php?id=' + i + '&album=' + album
		document.getElementById('file_upload_form').target = 'target' + i;
		document.getElementById('file_upload_form').submit();
		document.getElementById('file').value='';
		this.style.display = 'none';
	}
}

tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",

	// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,link,unlink",
	theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,blockquote,|,undo,redo",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",

	// Replace values for the template plugin
	template_replace_values : {
		username : "Some User",
		staffid : "991234"
	}
});
//-->