//Code for adding and removing children/parent projects
$(document).ready(function(){
	$.ajax({
			type: "GET",
			url: "/fileadmin/scripts/filter_tags_by_query.php",
			error: function() {
				alert("Error: unable to retrieve data.");
			},
			success: function(resp) {
				var project_codes = (resp).split("|");
				vuDAT_ACT.initialize(document.getElementById("filtertags_ACT"),project_codes,{
					Submit: function(selectedItem){
						loadTagPage(selectedItem);
					},
					Sort:false,
					Clickable:true
					}
				);
			}
	});
});
function loadTagPage(elem) {
	//alert(elem);
	location.href = "/showcase/?tag="+elem.replace(/(.\(.*.\))/,'');
}