function initPopup()
{
	var nodes = document.getElementsByTagName("span");
	for (var i=0; i<nodes.length; i++)
	{
		if (nodes[i].className.indexOf("i-icon") != -1)
		{
			var _popup = nodes[i].getElementsByTagName('span');
			/*alert(_popup[0].offsetHeight);*/
			if (_popup.length){
				nodes[i].onmouseover = function()
				{
					this.className += " active-popup";
					_popup[0].style.top = - _popup[0].offsetHeight + 'px';
					_popup[0].style.visibility = 'visible';
				}
				nodes[i].onmouseout = function()
				{
					this.className = this.className.replace(" active-popup", "");
					_popup[0].style.visibility = 'hidden';
				}
			}
		}
	}
}
if (window.addEventListener) {
	window.addEventListener("load", initPopup, false);
}
else if (window.attachEvent) {
	window.attachEvent("onload", initPopup);
}