<!--
function setPage(id, pg) {
    var elem = document.getElementById(id);
        elem.src = pg;
        elem.style.visibility = 'visible';
                elem = document.getElementById(id + '_div');
                elem.style.display = '';
}
function hidePage(dv) {
         dv = typeof(dv) != 'undefined' ? dv : 'wr_cloud_div';
        var elem = document.getElementById(dv);
                elem.style.display = 'none';
}
function toggleV(id) {
    var elem = document.getElementById(id);
    if (elem.style.display == 'none') {
        elem.style.display = '';
    } else {
        elem.style.display = 'none';
    }
}

function registerPopup(id) {
	var el = document.getElementById(id);
	var ael = document.getElementById(id + 'a');
	el.pop_show = function() {
		var el = ael;
		var x = el.offsetWidth;
		var y = 0;
		while (el) {
			x += el.offsetLeft;
			y += el.offsetTop;
			el = el.offsetParent;
		}
		this.style.top = y + 'px';
		this.style.left = x + 'px';
		this.style.display = 'block';
	};
	el.pop_hold = function() {
		if (!this.pop_t_id) return;
		clearTimeout(this.pop_t_id);
		this.pop_t_id = null;
	};
	el.pop_hide = function() {
		if (this.pop_t_id) clearTimeout(this.pop_t_id);
		this.pop_t_id = setTimeout(function() {
			el.style.display = 'none';
		}, 333);
	};
	el.onmousemove = function() {
		el.pop_hold();
	};
	el.onmouseout = function() {
		el.pop_hide();
	};
	ael.onmouseover = function() {
		el.pop_show();
	};
	ael.onmousemove = function() {
		el.pop_hold();
	};
	ael.onmouseout = function() {
		el.pop_hide();
	}
}


-->


