/* function jQ_SrovnejVyskuKaret() { var counter = 0; var pocet_objektu = 0; do { var max_height = 0; var srovnat = true; $('.vyrovnavany_produkt_'+counter).each(function(index) { var height = $(this).height(); if (max_height < height) max_height = height; var vyska_obrazku = $(this).find('img').height(); var vyska = $(this).height(); if (vyska_obrazku == 0) srovnat = false; }); if (srovnat) { $('.vyrovnavany_produkt_'+counter).each(function(index) { $(this).height(max_height); }); } counter++; } while ( $('.vyrovnavany_produkt_'+counter).is() ); } */ function jQ_SrovnejVyskuKaret() { var counter = 0; $(' .tr_vyrovnani ').each(function(counter) { var max_height = 0; var srovnat = true; $(' .vyrovnavany_produkt_'+counter+' ').each(function(index) { var height = $(this).height(); if (max_height < height) max_height = height; }); if (srovnat) { $('.vyrovnavany_produkt_'+counter).each(function(index) { $(this).height(max_height); }); } }); } $(function() { $("a[rel^=lightbox]").lightBox(); }); $(document).ready(function() { //----------- formulare ------------- 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]); } }); $('#vice_informaci').click(function() { if ( $('#formular_informace').css('display') == "none" ) $('#formular_informace').show('slow'); else $('#formular_informace').hide('slow'); }); //------------------------ $('#text_stranka a').click(function() { return !ExternalLink(this.href); }); $('a.external').click(function() { if (window.open(this.href)) { return false; } }); /*jQ_SrovnejVyskuKaret();*/ });