$(document).ready(function() {
        /*ZALAMOVANI TEXTU*/        
        var el = $('.content');
        el.html(el.html().replace(/ a /g, ' a&nbsp;'));
        el.html(el.html().replace(/ i /g, ' i&nbsp;'));
        el.html(el.html().replace(/ k /g, ' k&nbsp;'));
        el.html(el.html().replace(/ K /g, ' K&nbsp;'));
        el.html(el.html().replace(/ o /g, ' o&nbsp;'));
        el.html(el.html().replace(/ O /g, ' O&nbsp;'));
        el.html(el.html().replace(/ s /g, ' s&nbsp;'));
        el.html(el.html().replace(/ S /g, ' S&nbsp;'));
        el.html(el.html().replace(/ u /g, ' u&nbsp;'));
        el.html(el.html().replace(/ U /g, ' U&nbsp;'));
        el.html(el.html().replace(/ v /g, ' v&nbsp;'));
        el.html(el.html().replace(/ V /g, ' V&nbsp;'));
        el.html(el.html().replace(/ z /g, ' z&nbsp;'));
        el.html(el.html().replace(/ Z /g, ' Z&nbsp;'));
        el.html(el.html().replace(/ve /g, 've&nbsp;'));
        el.html(el.html().replace(/Ve /g, "Ve&nbsp;"));
        el.html(el.html().replace(/na /g, "na&nbsp;"));
        el.html(el.html().replace(/Na /g, "Na&nbsp;"));
        el.html(el.html().replace(/nad /g, "nad&nbsp;"));
        el.html(el.html().replace(/Nad /g, "Nad&nbsp;"));
        el.html(el.html().replace(/pod /g, "pod&nbsp;"));
        el.html(el.html().replace(/Pod /g, "Pod&nbsp;"));
        el.html(el.html().replace(/od /g, "od&nbsp;"));
        el.html(el.html().replace(/Od /g, "Od&nbsp;"));         
        el.html(el.html().replace(/za /g, "za&nbsp;"));
        el.html(el.html().replace(/Za /g, "Za&nbsp;")); 
        el.html(el.html().replace(/po /g, "po&nbsp;"));
        el.html(el.html().replace(/Po /g, "Po&nbsp;"));         
        el.html(el.html().replace(/ze /g, "ze&nbsp;"));
        el.html(el.html().replace(/Ze /g, "Ze&nbsp;"));        
        el.html(el.html().replace(/do /g, "do&nbsp;"));
        el.html(el.html().replace(/Do /g, "Do&nbsp;"));
        el.html(el.html().replace(/před /g, "před&nbsp;"));
        el.html(el.html().replace(/Před /g, "Před&nbsp;"));
        el.html(el.html().replace(/pro /g, "pro&nbsp;"));
        el.html(el.html().replace(/Pro /g, "Pro&nbsp;"));
        el.html(el.html().replace(/se /g, "se&nbsp;"));
        el.html(el.html().replace(/Se /g, "Se&nbsp;"));
        el.html(el.html().replace(/při /g, "při&nbsp;"));
        el.html(el.html().replace(/Při /g, "Při&nbsp;"));


        /*BUBBLE*/
        $('.linkBubble').mouseenter(function() {
                $(this).children('.bubble').show();
        }).mouseleave(function() {
                $('.bubble').hide();
        });  
        
        /*ACCORDION*/   
        $('#accordion h3 a').click(function() {    
                if(!$(this).is('.active')) {            
                        $('#accordion .text').hide('slow');
                                                
                        $(this).parent().next('.text').show('slow');                        
        
                        $('#accordion h3 a').removeClass('active');
                        $('#accordion .in').removeClass('active');  

                        $(this).addClass('active');
                        $(this).parent().parent().addClass('active');                                

                }else{
                        $('#accordion h3 a').removeClass('active');
                        $('#accordion .in').removeClass('active');  
                        $(this).parent().next('.text').hide('slow');                        
                        
                        return false;                
                };
                return false;
        });        
        
        /*LEFTCOL TD WIDTH 185*/
        $('.leftCol').parent().parent('td').css('width', '185px');

        /*HP PROMO*/   
        $('#hpPromo div.image').hide();   
        $('#hpPromo div.image:first').show();   
        $('#hpPromo li.active').next().addClass('noseparator');
        
        $('#hpPromo a.link').click(function() {     
        
                $('#hpPromo li').removeClass('active');           
                $(this).parent().addClass('active');      
                
                $('#hpPromo div.image').fadeOut('slow');                
                $(this).prev('div.image').fadeIn('slow');    

                $('#hpPromo li').removeClass('noseparator');
                $('#hpPromo li.active').next().addClass('noseparator');
                                    
                return false;
        });    

        $('.bannerHp').mouseenter(function() {
                $(this).addClass('bannerHpActive');
        }).mouseleave(function() {
                $(this).removeClass('bannerHpActive');
        });       
        
        $(function() {        
            $('#hpPromoIn').cycle({
                fx:      'fade',
                speed:    1000, 
                timeout:  5000,
                pause:    1,
                cleartype:  true,
                cleartypeNoBg:  true
            });                                                        
        });    

});


