﻿// Global Variables
var nTOID;

function xHideWeatherBalloon()  { document.getElementById("WeatherBalloon").style.display = 'none'; }
function xOffWeatherIcon() { nTOID = setTimeout('xHideWeatherBalloon()', 1000); }

function xOverWeatherBalloon(oHS) 
{
clearTimeout(nTOID);
}

function xOverWeatherIcon(oHS) {
var DIVID = oHS.id;
clearTimeout(nTOID);

var curleft = 0;
var curtop = 0;
var oDivDB = document.getElementById("WeatherBalloon").style;

if (oHS.offsetParent)
 {
    do {
        curleft += oHS.offsetLeft;
        curtop += oHS.offsetTop;
    } while (oHS = oHS.offsetParent);
 }

//alert('Offsets: L:' + curleft + ' T:' + curtop + '\n  DIV ID  ' + DIVID); //debug

oDivDB.top = curtop - 150 ;
oDivDB.left = curleft -30;

oDivDB.display = 'block';

}
