//
$(document).ready(function(){ 
 //
 $("img").hover(function(){
   $(this).fadeTo(100, 0.9)
 },
 function(){
  $(this).fadeTo(100, 1.0)
 });
 
 // hejbaci katalog
 $(".katalog a").hover(function(){
   $(this).animate({ fontSize: "18px" }, 100)
          .animate({ paddingLeft: "0px" }, 50)
 },
 function(){
   $(this).animate({ fontSize:"14px" }, 100 )
          .animate({ paddingLeft: "0px" }, 100)
 });
 
 // texty nad obrazky z katalogu
 $.fn.HoverImageText.defaults.AnimShow = {height: "show"};
 $('.imageLibrary a').HoverImageText();
 
 //
});

//
var retObj = "";

// otevre okno pro vyber adresare
function fnc_view_dir( name, element ) {
 retObj = name;
 el = element;
 window.open('incl/adm_view_dir.php', 'view_dir','width=700px; height=600px;');
}

// prime submitnuti formu
function submitForm( formName ) {
 document[formName].submit();
}

// zmena stranek +- jedna
function fnc_page( pageNumber ) {
 document.frm_submit.page.value = pageNumber;
 document.frm_submit.submit();
}

//
function fnc_editdel( id, action ) {
 document.frm_editdel.id.value = id;
 document.frm_editdel.action.value = action;
 document.frm_editdel.submit();
}

//
function DoNav(theUrl){
  document.location.href = theUrl;
}    
