/**
 * @author ANtek
 */

$(document).ready(function(){

    $("#partners img").fadeTo(100,0.1);
    $("#partners img").hover(function(){
        $(this).fadeTo(100,1);
    }, function() {
        $(this).fadeTo(100,0.1);
    }
    )

    $("#szukaj .button").attr("value","");
    if ($("#galeria").length > 0) {
        $("a.a_galeria").fancybox();
    }
    if ($(".gg-12").length > 0) {
        if ($("a.w_galeria").length > 0) {
            $("a.w_galeria").fancybox( {
                'autoScale':false,
                'autoDimensions': true,
                'titlePosition': 'inside'
            } );
        }
    }

    if ( $('.wycinki').text().length > 0 ) {
        var options =
        {
            zoomWidth: 450,
            zoomHeight: 450,
            showEffect:'show',
            hideEffect:'fadeout',
            fadeoutSpeed: 'slow',
            title: false,
            position: 'right'
        }
        $(".jqzoom").jqzoom(options);
    }

});

