function imagelibrarypopup(imagesrc, title) { var containerId = 'imagelibrary-popup'; var containerClass = 'popup-container'; if ($(containerId)==null) { var divpopup = document.createElement('div'); divpopup.id = containerId; divpopup.className = containerClass; Element.hide(divpopup); } else { var divpopup = $(containerId); } var code = ""; var sep = ""; /* HEADER */ code = code + sep + "
"; code = code + sep + "
"+"
"; code = code + sep + "
"+title+"
"; code = code + sep + "
"; /* CONTENT */ code = code + sep + "
"; code = code + sep + ""; code = code + sep + "
"; /* FOOTER */ code = code + sep + "
"; code = code + sep + ""; code = code + sep + "
"; divpopup.innerHTML = code; $('body').appendChild(divpopup); /* SET Y POSITION */ try { divpopup.style.top = getRelativeY()+10; } catch (err) { } Element.show(divpopup); } function searchImageLibrary(searchString){ var OptAs="keyword"; var OptBoolean="+and+"; var OptFuzzy="0"; var OptHits="6"; var OptVariants="0"; var OptDocType="ImageLibPress"; SrchString=searchString; SrchString=SrchString.replace(/^ {1,}/g,""); SrchString=SrchString.replace(/ {1,}$/g,""); if (OptAs=="keyword") { re = / /gi; SrchString="("+SrchString.replace(re,OptBoolean)+")"; } document.location=dbPath+"SrchImageLib?SearchView&Query="+SrchString+"&Start=1&Count="+OptHits+"&SearchOrder=1&SearchFuzzy="+OptFuzzy+"&SearchWv="+OptVariants; } function imageFinderClearField(fieldbbj, defaultvalue) { if (fieldbbj.value==defaultvalue) { fieldbbj.value=""; } } function showImageCategory(category) { var docalias = "nav_fotogalerie"; if (category=="") { cat='Vše'; } document.location=dbPath+"docbyalias/"+docalias+"?OpenDocument&category="+category+""; }