// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// This jQuery call prevents jQuery from conflicting with Prototype (if jQuery is loaded)
if (typeof jQuery != 'undefined') jQuery.noConflict();

function showDiv(event, divName, text) {
	var fullName = document.getElementById(divName);
	fullName.innerHTML = text;
	fullName.style.position = 'absolute';
	fullName.style.display = 'inline';
	scrollTop = (document.all)? document.documentElement.scrollTop : window.pageYOffset;
	scrollLeft = (document.all)? document.documentElement.scrollLeft : window.pageXOffset;
	fullName.style.top = (parseInt(event.clientY) + parseInt(scrollTop) - 25) + 'px';
	fullName.style.left = (parseInt(event.clientX) + parseInt(scrollLeft) - 155) + 'px';
}

function hideDiv(divName) {
	document.getElementById(divName).style.display = 'none';
}

function removeElement(id) {
	e = document.getElementById(id);
	e.parentNode.removeChild(e);
}
