var g_ff='';
var g_divid='funfloatdiv';

function funfloat(pic,txt) {
 if (!document.getElementById(g_divid)) {
  document.body.innerHTML+='<div id="'+g_divid+'" class="ffbox" style="position:absolute; top:0px; left:0px"><div id="funfloatclose" class="ffclose" style="position:absolute;right:0px"><a href="javascript:unfun()">(close)</a></div><div id="funfloatin" style="text-align:center"></div></div>';
 }
 var show = '';
 if (txt) { show = '<img src="'+pic+'" alt="'+txt+'" title="'+txt+'"/><br/>'+txt; }
 else { show = '<img src="'+pic+'"/>'; }
 if (g_ff!=show) {
  g_ff=show;
  document.getElementById('funfloatin').innerHTML = show;
 }
 else if (document.getElementById(g_divid).style.display=='block') { return unfun(); }
 pos_the_thing();
 document.getElementById(g_divid).style.top=(cury-50)+'px';
 document.getElementById(g_divid).style.left=(curx+10)+'px';
 document.getElementById(g_divid).style.display='block';
}

function pos_the_thing() {
 track_mouse_move();
}

function unfun() {
 if (document.getElementById(g_divid)) {
  document.getElementById(g_divid).style.display="none";
 }
}


/////////////
