function FrameCurt() { try { if(kind == 0) // hide { var ht = 24; if(countdown > ht) { self.resizeTo(250,countdown); countdown -= 20; timeoutID = setTimeout("FrameCurt()", 5); } else { countdown = parent.m_Map.Height - 50; timeoutID = clearTimeout(timeoutID); kind = 1; document.all.hiddenTable.style.display = "none"; parent.document.getElementById("SearchFrame").style.height = 24; document.images["sizeImg"].src = "/Images/Map/SearchMap/BtnMax.gif"; } } else // show { var ht = parent.m_Map.Height - 50; document.all.hiddenTable.style.display = ""; if(countup < ht) { self.resizeTo(250,countup); countup += 20; timeoutID = setTimeout("FrameCurt()", 5); } else { countup = 0; timeoutID = clearTimeout(timeoutID); parent.document.getElementById("SearchFrame").style.height = parent.m_Map.Height - 50; document.images["sizeImg"].src = "/Images/Map/SearchMap/BtnMin.gif"; kind = 0; } } } catch(e) { } }