/* A bit of JavaScript */

var BEN = function() {

	return {
	
		init : function() {

      // console.info('Page Load');
      
			$("a.external").click(function(event){
				newWindow=window.open(this.href,'benjeffreys');
				if (window.focus) {newWindow.focus()}
				event.preventDefault();
			});

			$(".twitter").feedMe({
        feed: "twitter",
        username: "n_sonic",
        count: 1
      });
			
      $(".lastfm").feedMe({
        feed: "lastfm",
        username: "n_sonic",
        count: 5
      });
      
      $(".flickr").feedMe({
        feed: "flickr",
        username: "benjeffreys",
        count: 8
      });
           
		}
		
	};

}();

$(document).ready(function(){
	BEN.init();
});
