/*
 Javascript Library for Czasopis.pl
 Written by Aleksander Maksymiuk, http://setpro.net.pl/
*/

$(document).ready(function() {

    $('#CommentFormLayer').hide();
    $('.plus').show();
    $('.minus').hide();

    $('.plus').click(function() {
        $('#CommentFormLayer').slideDown(400);
        $('.plus').hide();
        $('.minus').show();
    });
    $('.minus').click(function() {
        $('#CommentFormLayer').slideUp(400);
        $('.plus').show();
        $('.minus').hide();
    });

    $(function() {
        $('a.lightbox').lightBox();
    });

});

function popup(URL, secs, ww, wh) {
    var handle = window.open('about:blank', 'newwindow', 'scrollbars=no,resizable=no,width='+ww+',height='+wh+',left=0,top=0');
    handle.document.open();
    handle.document.write('<html><head><title>Obraz w pełnych rozmiarach</title></head><body bgColor="#ffffff"><center><img src="'+URL+'" alt="Kliknij by zamknąć..." title="Kliknij by zamknąć..." onclick="window.close();" /></center></body></html>');
    handle.document.close();
    if (secs > 0) setTimeout('handle.close()', 1000 * secs);
}

function reloadPage() {
    document.location.reload();
}

