var pathgfx = '/templates/default/images/';

/*
 * PNGfix init
 */
$(document).ready(function(){
    $(document).pngFix();
});

/*
 * jFav init
 */
$(document).ready(function(){
    $('.jFav').jFav();
});


/*
 * Colorbox
 */
$(function() {
    $('.cboxElement').colorbox({
        innerWidth: 480,
        innerHeight: 360,
        initialWidth: 50,
        initialHeight:50,
        iframe: true,
        close: 'x'
    });

    $('.invest .localization .map a').colorbox({
        initialWidth: 50,
        initialHeight:50,
        close: 'x'
    });
    
    $('.cBoxCRM a').colorbox({
        innerWidth: 1050, //940,
        innerHeight: 650, //570,
        initialWidth: 50,
        initialHeight:50,
        iframe: true,
        close: 'x'
    });
});


/*
 * Lightbox
 */
$(function() {
    $('a.lightbox').lightBox();
    $('.gallery a').lightBox();
});


/*
 * DatePicker
 */
$(function() {
    $.datepicker.setDefaults( $.datepicker.regional[ "pl" ] );
    $( ".datepicker" ).datepicker({
        changeMonth: true,
        changeYear: true
    });


});


/*
 * Cycle
 */
$(document).ready(function() {
    if($('.ads.banner .container2')) {
        $('.ads.banner .container2').cycle({
            fx: 'fade',
            timeout: 15000,
            speed: 1000
        });
    }
    
    if($('.ads.special .container2')) {
        $('.ads.special .container2').cycle({
            fx: 'fade',
            timeout: 7000,
            speed: 2000
        });
    }
});

