


    $(function()
            {

                
                  $('srodek').ready( function() {
                    var a=  $('#lewa_kol').height();
                    var b=  $('#prawa_kol').height();
                    var c=  $('#srodek_kol').height();

                    if(a>850) {a=a-200;}
                        var d=Math.max(a,b,c);    

                    $('#lewa_kol').height(d);
                    $('#prawa_kol').height(d);
                    $('#srodek_kol').height(d);

                    var e=$('#banner').height();
                    var f=$('#stopka').height();
                    
                    var g=$('#menu_top').height();
                    var h=e+g+d+f;

                  
                     $('#container_lw').height(h);
                    $('#container_pr').height(h);

                     } );
               
                
                var tytul_str=$('#div_scie_nawigacja').attr('title');
                if(tytul_str!='')
                    {
                        $("title").text(tytul_str);
                    }              

                $('td.menu_top_poz a').hover(
                function()
                    {                        
                        $(this).addClass('z_tlem'); 
                    },
                function()
                    {
                       $(this).removeClass('z_tlem');

                    }
                );

                     
              
            });

function dodaj()
{
   var tytul = 'Wikon - nieruchomości w Radomiu';
   var adres = 'http://www.wikon-nieruchomosci.pl';

   //FireFox
   if (window.sidebar)
     {
        window.sidebar.addPanel(tytul, adres, "");
     }

   //IE
   else if (window.external)
     {
        window.external.AddFavorite(adres, tytul);
     }
   //Opera }
   else if (window.opera && window.print)
     {
        var a = document.createElement('a');
        a.setAttribute('href', adres);
        a.setAttribute('title', tytul);
        a.setAttribute('rel','sidebar');
        a.click();
     }
 }

