var onItem = ''; var lbt = ''; function hideLightBoxList (item) { showHideLayers('','lb_list_'+ item,'hidden'); } function showLightBoxList (item) { clearPause(); if (onItem) { hideLightBoxList(onItem); if (onItem = item) { onItem = ''; return; } else { onItem = ''; } } if (item) { showHideLayers('','lb_list_'+ item,'visible'); onItem = item; } } function pauseLightBoxHide () { lbt = setTimeout("showLightBoxList()",500); } function clearPause () { if (lbt) { clearTimeout(lbt); lbt = ''; } }