  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-15570205-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


var retObj = "";

$(document).ready(function(){ // This sets the opacity of the thumbs to fade down to 60% when the page loads
   //
   // oznaceni obrazku najetim mysi
   $("imga").hover(function(){
     $(this).fadeTo(100, 0.95); // This sets the opacity to 100% on hover
   },
   function(){
    $(this).fadeTo(100, 1.0); // This sets the opacity back to 60% on mouseout
   });
   
   // hejbaci katalog
   $(".katalog a").hover(function(){
     $(this).animate( { fontSize:"20px" }, 100 )
   },
   function(){
     $(this).animate({ fontSize:"14px" }, 100 )
   });
   
   // texty nad obrazky z katalogu
 	 $.fn.HoverImageText.defaults.AnimShow = {height: "show"};
	 $('.imageLibrary a').HoverImageText();

   //
});


// 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=800,height=400;');
}

// 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();
}

// submitnuti na klavesu enter
function fnc_test_key( formname, object, event ) {
 if ( event.keyCode == 13 ) {
  if ( (object.name != "page") && document[formname].page ) document[formname].page.value = "1";
  document[formname].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;
}

