
function stickDiv(elmnt, e){
document.getElementById("flyaway"+ elmnt).style.display="block";
if (window.event){window.event.cancelbubble=true;}
if (e && e.stopPropagation){
e.stopPropagation();
}
if(window.event){window.event.returnValue=false;}
if(e && e.reventDefault){e.prevent.Default();}
}

function unstickDiv(e){
if (e.target){
var thediv=e.target.id}
else if 
(window.event)
{var thediv=window.event.srcElement.id}
document.getElementById(thediv).style.display="none";
if (window.event){window.event.cancelbubble=true;}
if (e && e.stopPropagation){
e.stopPropagation()}
/*if(window.event){window.event.returnValue=false}
if(e && e.reventDefault){e.prevent.Default()}*/
}



//courtesy of Scott Andrew as cited and offered DHTML Utopia 
function addEvent(elm, evType, fn, useCapture){
  if (elm.addEventListener) {elm.addEventListener(evType, fn, useCapture);
  return true}
  else if (elm.attachEvent){var r=elm.attachEvent('on' + evType, fn);
  return r; 
  }
  else
  {elm['on' +evType]=fn;}
}


function flyMe(theNum){
//alert("Fly");
var changeString="flyaway" + theNum;
var theInfo=document.getElementById(changeString);
theInfo.style.display="block";
/*if (window.event){window.event.cancelBubble=true;}
if (e && e.preventDefault){e.preventDefault();}
if(window.event){
window.event.returnValue=false}
if(e && e.preventDefault){e.preventDefault}*/
}

function groundMe(theNum)
{
//	alert("Ground");
var changebString="flyaway" + theNum;
document.getElementById(changebString).style.display='none'
}

function setUpEvs(){
for (n=1;n<7;n++){
var changeString="flyaway" + n;
theInfo=document.getElementById(changeString);
//theInfo.style.display="block";
//addEvent(theInfo, 'click', stickDiv(n), false);
addEvent(theInfo, 'mouseout', unstickDiv, false);
}
}

