var maxBlockHeight=0; $(document).ready( function() { ChangeNewsBlockHeight(); ChangeActionsBlockHeight(); }); function SubmitSearchForm( ) { if ( document.searchLeft.searchtext.value != 'Поиск' && document.searchLeft.searchtext.value != '' ) { document.searchLeft.submit( ); } } function wo(link,ww,hh,title,scrollbars, resize) { if ( !hh ) { wh = screen.height-'100px'; } else { wh = parseInt(hh)+24; } w=window.open(link,'',(ww ? 'width='+ww+',' : '')+(wh ? 'height='+wh+',' : '')+'toolbar=0,scrollbars='+scrollbars+', '+(resize>=0 ? 'resizable='+resize : 'resizable')); if (link.indexOf('.html')==-1) { if (document.layers) title=''; w.document.open(); w.document.write(''+title+''); w.document.write('
'+title+'
Распечатать Распечатать
'); //w.document.write(''); w.document.write(''); w.document.close(); } w.focus(); } function MenuSubmenuGenerate() { $('#mainMenu a').hover( function () { over(); }, function () { out(); } ); } function ChangeNewsBlockHeight() { $('#rightColumn div.catItem').each( function() { if ( $(this).height() > maxBlockHeight ) { maxBlockHeight = $(this).height(); } else { maxBlockHeight = maxBlockHeight; } }); $('#rightColumn div.catItem').each( function() { $(this).height( maxBlockHeight ); }); } function ChangeActionsBlockHeight() { $('#rightColumn div.catItem2').each( function() { if ( $(this).height() > maxBlockHeight ) { maxBlockHeight = $(this).height(); } else { maxBlockHeight = maxBlockHeight; } }); $('#rightColumn div.catItem2').each( function() { $(this).height( maxBlockHeight ); }); }