jQuery(function($) {



                // usuniecie ostatniego separatora pozycji menu w stopce
                $('#footer #menuwrapper2 ul li:last').css({'background' : 'none'});



                // efekt hover dla linkow w naglowku
                $('#header #main_menu ul li').hover(function(){
                    $(this).stop(true,true);
                    $(this).fadeOut(100);
                    $(this).fadeIn(200).toggleClass('menuactive');
                },
                function(){
                    $(this).stop(true,true);
                    $(this).fadeOut(100);
                    $(this).fadeIn(200).toggleClass('menuactive');
                });



                // efekt hover dla linkow w stopce
                $('#footer #menuwrapper2 ul li a').hover(function(){
                    $(this).stop(true,true);
                    $(this).fadeOut(100);
                    $(this).fadeIn(100).addClass('hover');
                },
                function(){
                    $(this).stop(true,true);
                    $(this).fadeOut(100);
                    $(this).fadeIn(100).removeClass('hover');
                });



                // jQuery font replacement
                $('#content #left_column h1').flash({
                    src: 'images/helvetica_light_font.swf',
                    wmode: 'transparent',
                    flashvars: {

                        css: [
                            '* {color: #68696d; font-weight: normal;}',
                            'a {display: block; text-transform: uppercase;}'
                        ].join(' ')
                    }},
                {version: 9},
                function(htmlOptions) {
                    htmlOptions.flashvars.txt = this.innerHTML;
                    this.innerHTML = '<span>'+this.innerHTML+'</span>';
                    var $alt = $(this.firstChild);
                    htmlOptions.height = $alt.height();
                    htmlOptions.width = $alt.width();
                    $alt.addClass('alt');
                    $(this)
                    .addClass('flash-replaced')
                    .prepend($.fn.flash.transform(htmlOptions));
                });



                $('#footer #menuwrapper2 ul li a').hover(function(){
                    $(this).stop(true,true);
                    $(this).fadeOut(100);
                    $(this).fadeIn(100).addClass('hover');
                },
                function(){
                    $(this).stop(true,true);
                    $(this).fadeOut(100);
                    $(this).fadeIn(100).removeClass('hover');
                });



            });
