function lo_show(id) {
    hs.expand(id);
    return false;
}
function m_show(str, url) {
	var obj = $("informer");
	if (obj) {
	    if (str && str.length > 0) {
	        $("i_informer").innerHTML = str;
	        obj.style.display = "block";
	        u = url;
	        document.onclick = function() { m_hide(u); };
	        m_scroll();
	        document.body.scroll = "no";
	        var spacer = $("m_spacer");
	        var iframe = $("i_iframe");
	        spacer.style.width = document.body.offsetWidth;
	        spacer.style.height = "2000px";
	        iframe.style.width = spacer.style.width;
	        iframe.style.height = spacer.style.height;
	        spacer.style.display = "block";
	    }
	}
}
function m_hide(url) {
	var obj = $("informer");
	if (obj) {
        obj.style.display = "none";
        var spacer = $("m_spacer");
        spacer.style.display = "none";
        document.body.scroll = "yes";
        if (url && url.length > 0) document.location = url;
    }
}
function m_scroll() {
    $("m_spacer").style.display == "block"
        ? m_hide()
        : $("informer").style.top = document.body.scrollTop;
}
function m_fshow(id) {
    var ft = $("ft_" + id);
    var fd = $("fd_" + id);
    if (ft && fd) {
        fd.style.width = ft.offsetWidth;
        fd.style.height = ft.offsetHeight;
        fd.style.display = fd.style.display == "none"
            ? "block"
            : "none";
    }
}
function m_op(id) {
    var o = $(id);
    if (o) {
        o.style.display = o.style.display == "none"
            ? "block"
            : "none";
    }
}
function m_fav() {
    window.external.AddFavorite(document.location, document.title);
}
function m_login() {
    m_show("<div align=center>Загрузка...</div>");
    xj_std_xj_show_login();
}
function m_logout() {
    $("m_lgout").innerHTML = "Отправка...";
    xj_std_process_login();
}
function m_city() {
    $("m_city").innerHTML = "Отправка...";
    xajax.xj_submit("frm_city", 'xj_std_process_city');
}
function m_search() {
    $("m_search").innerHTML = "Идет поиск...";
    xajax.xj_submit("frm_search", 'xj_std_process_search');
}
function m_reply(id) {
    m_show("<div align=center>Загрузка...</div>");
    xj_std_xj_show_reply(id);
}
function m_recover() {
    m_show("<div align=center>Загрузка...</div>");
    xj_std_xj_show_recover();
}
document.execCommand("BackgroundImageCache",false,true);
