function MoneyS() {
var small = document.getElementById('money-small');
var full = document.getElementById('money-full');
var link = document.getElementById('money-link');

if (small.style.display == "none") {
small.style.display = ""; 
link.innerHTML = "все";
} else { 
small.style.display = "none"; 
link.innerHTML = "основные";
}

if (full.style.display == "none") { 
full.style.display = ""; } else { 
full.style.display = "none"; }}

var cm = null;
var hide_delay = 500;
var tstat = 0;
var timer1;

function switchDiv (el, vis) {
if (!vis) { el.style.display = "none"; }
else { el.style.display = ""; }
return 1;}

function getPos (el, sProp) {
var iPos = 0;
while (el != null) {
iPos += el["offset" + sProp]
el = el.offsetParent } return iPos }

function show (el, m) {
if (cm != null) { switchDiv (cm, false); }

if (m != null) {
m = document.getElementById(m);
m.style.left = getPos(el, "Left") + "px";
m.style.top =  getPos(el, "Top") + el.offsetHeight + "px";
switchDiv(m, true); cm = m; } }

function hidemenu () {
timer1 = setTimeout("show(null,null)",hide_delay);
tstat = 1; return 1; }
                                                                                                    
function cancelhide() {
if (tstat == 1) {
clearTimeout(timer1);    
tstat = 0; } return 1; }

function doNewMap (path) {
var ws = document.getElementById("newmap");

var p = document.createElement("p");
var br = document.createElement("br");

var div = document.createElement("div");
div.setAttribute ("id", "map");

p.appendChild(br);
p.appendChild(div);
ws.appendChild(p);
ws.style.display = "";

try {
INIT_MAPS('map', '0', '600', path);
window.onresize();
} catch (e) {}

var todel = document.getElementById('newmap_lnk');
todel.parentNode.removeChild(todel);
}

function OpenDiv(el) {
var elm = document.getElementById(el);
if (elm.style.display == "") {elm.style.display = "none"; } 
else { elm.style.display = ""; }
}
