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

$(document).ready(function() {

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

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

    $('a.media_photo').colorbox();
    $('a.media_youtube').colorbox({iframe: true, width: 640, height: 390});
    $('a.media_outsite').colorbox({iframe: true, width: '90%', height: '80%'});
    $('a[rel="media_photo"]').colorbox();
    $('a[rel="media_static"]').colorbox({slideshow: false});
    $('a[rel="media_gallery"]').colorbox({slideshow: true});
    $('a[rel="media_sound"]').colorbox();
    $('a[rel="media_video"]').colorbox();
    $('a[rel="media_youtube"]').colorbox({iframe: true, width: 640, height: 390});
    $('a[rel="media_outsite"]').colorbox({iframe: true, width: '90%', height: '80%'});

});

function popup(URL, secs, ww, wh) {
    handle = window.open("", "", "scrollbars=no,resizable=no,width="+ww+",height="+wh+",left=0,top=0");
    handle.document.open();
    handle.document.write('<html><head><title>Full Size Image</title></head><body bgColor="#ffffff"><center><img src="'+URL+'" alt="Click To Close This Full Size Image..." title="Click To Close This Full Size Image..." onclick="window.close();" /></center></body></html>');
    handle.document.close();
    if (secs > 0) setTimeout("handle.close()", 1000 * secs);
};

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

