// JavaScript Document
$(function() {
$('.banner_text').cycle({
fx:     'fade',
timeout: 5000,
delay:         2000,
cleartypeNoBg: 'true',
before: function() { if (window.console) console.log(this.src); }
});
});


$(document).ready(function() {
$("#twitter").getTwitter({
userName: "follr",
numTweets: 5,
loaderText: "",
slideIn: false,
slideDuration: 750,
showHeading: false,
headingText: "",
showProfileLink: false,
showTimestamp: false
});
});


var delay = 2000;
var count = 30;
var showing = 9;
var i = 0;

function move(i) 
{
    return function() {
        $('#recent'+i).remove().css('display', 'none').prependTo('#items');
    }
}

function shift() 
{
    var toShow = (i + showing) % count;
    $('#recent'+toShow).slideDown(1000, move(i));
    $('#recent'+i).slideUp(1000, move(i));
    i = (i + 1) % count;
    setTimeout('shift()', delay);
}   
 
$(document).ready(function() {
    setTimeout('shift()', delay);     
});

$(document).ready(function () {
$('#feed').rssfeed('http://blog.follr.com/feed/', {
limit: 5,
header: false,
titletag: 'h4',
date: false,
content: false
});

$(function(){ 
  $('#custom').jloupe({radiusLT:100, margin:12, borderColor:false, image:'img/loupe-trans.png'});
});

});
