$(function() { $("a[rel^=lightbox]").lightBox(); $('a.sipka_vyskakovaci').click(function () { $('.vyskakovaci').not( $(this).parents('.vyskakovaci') ).hide('slow'); $('.vyskakovaci', $(this).parent()).first().show('slow'); return false; }); $('a.krizek').click(function () { $(this).parents('.vyskakovaci').first().hide('slow'); $('.vyskakovaci', $(this).parent().parent()).hide('slow'); return false; }); }); $(document).ready(function() { var inputy = []; $('.form_event_inputs').each(function(index) { inputy[this.name] = this.value; }); $('.form_event_inputs').focus(function() { if (this.value == inputy[this.name]) { $(this).val(''); } }); $('.form_event_inputs').blur(function() { if (this.value == '') { $(this).val(inputy[this.name]); } }); });