Cufon.replace('#main_menu a span.mm', { hover: true, hoverables: { span: false }, fontSize: '13px' });
Cufon.replace('#search_box #info', { fontSize: '15px' });
Cufon.replace('#search_box #phone', { fontSize: '22px' });
/*Cufon.replace('h2');*/
/*Cufon.replace('h3');*/
Cufon.replace('h4');
Cufon.replace('#main #leftNav.box_kontakt p.phone', { fontSize: '22px' });

// set the default position
var current = 0;

function bgscroll(){
    // 1 pixel row at a time
    current -= 1;
    // move the background with backgrond-position css properties
    $('#logosArea').css("backgroundPosition", current+"px 0");
}


$(document).ready( function() {
    $("#search_string").focus( function() { if ( $(this).val() == 'szukaj') $(this).val(''); } );
    $("#search_string").blur( function() { if ( $(this).val() == '') $(this).val('szukaj'); } );
    // speed in milliseconds
    var scrollSpeed = 70;
    //Calls the scrolling function repeatedly
    var init = setInterval("bgscroll()", scrollSpeed);

    //
    // popup1
    //
    var popID='popup1';
    var popWidth = 640;
    $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="/gfx/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>');
    //var popMargTop = ($('#' + popID).height()) / 2;
    var popMargTop=50;
    var popMargLeft = ($('#' + popID).width() + 80) / 2;
    $('#' + popID).css({
        'margin-top' : -popMargTop,
        'margin-left' : -popMargLeft
    });

    $('a.close').click( function() {
        $('#popup1').hide();
    });
});

