function getElement(element) {
	
	if (document.getElementById) {
		// For Mozilla and IE
		return document.getElementById(element);
	} else if (document.all) {
		// For IE, if the version of IE doesn't the first method
		return document.all[element];
	} else if (document.layers) {
	// For others
		return document.layers[element];
	}
	
	return;
}


function openAnnotationDescription(element) {
	//console.log("Opening " + element);

	$("description-" + element).fade({duration: 0.5});
	$("editAnnotation-" + element).appear();
	return true;
}

function closeAnnotationDescription(element) {
	//console.log("Closing " + element);
	
	$("editAnnotation-" + element).fade({duration: 0.5});
	$("description-" + element).appear();
	return true;
}


function openAnnotationDelete(element) {
	$("description-" + element).fade({duration: 0.5});
	$("deleteAnnotation-" + element).appear();
	return true;
}

function closeAnnotationDelete(element) {
	$("deleteAnnotation-" + element).fade({duration: 0.5});
	$("description-" + element).appear();
	return true;
}

function openAnnotationAdd(element) {
	$("description-" + element).fade({duration: 0.5});
	$("addAnnotation-" + element).appear();
	return true;
}

function closeAnnotationAdd(element) {
	$("addAnnotation-" + element).fade({duration: 0.5});
	$("description-" + element).appear();
	return true;
}



function showBox(element) {
	$(element).style.visibility = "visible";
	return true;
}

function hideBox(element) {
	$(element).style.visibility = "hidden";
	return true;
}



