function action(arg)
{
alert(arg);
}

function newPage()
{
}

function openPostIt(evnt, postItID)
{ 
//alert("attention please: " + evnt + " " + postItID);
var postItDiv = document.getElementById(postItID);
//alert("x: " + evnt.layerX + " y: " + evnt.layerY + " width: " + document.width);
postItDiv.style.top = evnt.layerY + "px";

//if (evnt.layerX > (document.width / 2))
windowWidth = top.innerWidth;
if (evnt.layerX > (windowWidth / 2))
{
postItDiv.style.left = null; // this breaks Camino, but prevent safari from changing the width of the div
postItDiv.style.right = (windowWidth - evnt.layerX) + "px"; // this is whack, but apparently this changes your axes?!
}
else
{
postItDiv.style.right = null;
postItDiv.style.left = evnt.layerX + "px";
}

postItDiv.style.display = "block";
} 

function closePostIt(evnt, postItID)
{ 
//alert(evnt.target);
//alert(evnt.target.parentNode);
var postItDiv = evnt.target.parentNode.parentNode;
//var postItDiv = document.getElementById(postItID);

postItDiv.style.display = "none";
} 

function inspect(elm){
  var str = "";
  for (var i in elm){
    str += i + ": " + elm.getAttribute(i) + "\n";
  }
  alert(str);
} 


