/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var pf_count;
var pf_current;
var pf_active = true;

$(window).load(function() {
    $('.picturebox a:eq(0)').fadeIn('slow');
    pf_count = $(".picturebox a").size();
    pf_current = 0;
    if (pf_count != 1) setInterval("pf_nextPicture()", 4000);
});



function pf_nextPicture() {
    $('.picturebox a:eq('+(pf_current)+')').fadeOut('slow');
    pf_current = pf_current + 1;
    if (pf_current == pf_count) pf_current = 0;
    $('.picturebox a:eq('+pf_current+')').fadeIn('slow');
}