$("#homeslider").coinslider(
{
width: 960, // width of slider panel
height: 606, // height of slider panel
spw: 10, // squares per width
sph: 1, // squares per height
delay: 5000, // delay between images in ms
sDelay: 75, // delay beetwen squares in ms
opacity: 0.7, // opacity of title and navigation
titleSpeed: 75, // speed of title appereance in ms
effect: 'rain', // random, swirl, rain, straight
navigation: false, // prev next and buttons
links : false, // show images as links
hoverPause: false
});

function populateBlog(blogs) {
  var entry = blogs.feed.entry[0];
  $("#blog_holder h3 a").html(entry.title["$t"]);
  $("#blog_content").html(entry.content["$t"].substring(0,entry.content["$t"].indexOf("<br />", 0)));
}

function loadTweets(tweets) {
  var  $tweets = $("#tweets");
  for(var i = 0; i < 3; i++) {
    var tweet = tweets[i].text;
    // process links and reply
    
    var $tweet = $("<p></p>");
    tweet = tweet.replace(/http([s]?):\/\/([^\ \)$]*)/g, function(url) {
            return '<a href="'+url+'" rel="nofollow">'+url+'</a>';
        }).replace(/@([_a-z0-9]+)/ig, function(reply) {
            return  '<a href="http://twitter.com/'+reply.substring(1)+'">'+reply+'</a>';
        });
     
    $tweet.html(tweet);
    $tweets.append($tweet);
  }
}
