$(document).ready(function(){
  /*
   // This if included makes UI Tabs not work ???
	var container = document.getElementById("plug");
  container.style.display = "none";
  container.style.visibility = "hidden";
  //container.style.visibility = "block"; //show it
  */
});

function loadContent(element, sourceUrl) {
  $(element).empty();
  $(element).hide().load(sourceUrl, function() {
    $(this).show().stop();
  });
}

function replaceContent(id, contentDiv) {
	var container = document.getElementById(id);
	var holder = document.getElementById(contentDiv);
  //container.style.display = "none"; // hide it
	container.innerHTML = holder.innerHTML;
  container.style.visibility = "visible"; //show it
}
		
function show_div(div_name) {
  v = document.getElementById(div_name).innerHTML;
  tooltip.show(v);
}

