$(document).ready(function(){
	$('.blog-content img').each(function() {
		var alt = $(this).attr("alt");
		var altmu = "<small>"+alt+"</small>";
		if ( $(this).attr("class") == "") {
			$(this).wrap("<div class='blog-img'>"+"</div>");
		}
		else {
			$(this).wrap("<div class='blog-gallery-img'>"+"</div>");
		}
		//$(this).attr("class", "blog-img"); 
		
//		$(this).prepend(alt + "hello");
	});
	$('.blog-img img, .blog-gallery-img img').each(function() {
			var alt = $(this).attr("alt");
			$(this).parent().append("<small>"+alt+"</small>");
	});
	
  var tweeturl = "http://twitter.com/status/user_timeline/timboreader.json?count=8&callback=?";
  $.getJSON(tweeturl, function(data){
    $.each(data, function(i, item) {
      var txt = item.text
	      .replace(/(https?:\/\/[-a-z0-9._~:\/?#@!$&\'()*+,;=%]+)/ig,'<a href="$1">$1</a>')
	      .replace(/@+([_A-Za-z0-9-]+)/ig, '<a href="http://twitter.com/$1">@$1</a>')
	      .replace(/#+([_A-Za-z0-9-]+)/ig, '<a href="http://search.twitter.com/search?q=$1">#$1</a>');
	    $('<p></p>').addClass(i%2 ? 'even' : 'odd').html(txt).appendTo('#twitter_jquery');
	  });
  });


	
	
});// end ready

	/*$('.blog-content img.gallery').each(function() {
		var alt = $(this).attr("alt");
		var altmu = "<small>"+alt+"</small>";
		$(this).wrap("<div class='blog-gallery-img'>"+"</div>");
		//$(this).attr("class", "blog-img"); 
		
//		$(this).prepend(alt + "hello");
	});
yourfunction([{"truncated":false,"user":{"profile_sidebar_fill_color":"DAECF4","followers_count":91,"description":"Musician and web designer living in Bristol","utc_offset":0,"notifications":null,"friends_count":71,"profile_sidebar_border_color":"C6E2EE","following":null,"url":"http:\/\/fromnowon.me.uk","name":"Tim Reader","favourites_count":1,"profile_background_color":"C6E2EE","protected":false,"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60111539\/treader_normal.jpg","statuses_count":445,"profile_text_color":"663B12","screen_name":"timboreader","profile_background_tile":false,"profile_background_image_url":"http:\/\/static.twitter.com\/images\/themes\/theme2\/bg.gif","profile_link_color":"1F98C7","location":"Bristol","id":105563,"time_zone":"London","created_at":"Thu Dec 21 11:00:17 +0000 2006"},"in_reply_to_status_id":null,"text":"I'm meeting lots of complainers this weekend, sorry, I mean teachers","in_reply_to_user_id":null,"favorited":false,"in_reply_to_screen_name":null,"id":1620062881,"source":"<a href=\"http:\/\/twitterfon.net\/\">TwitterFon<\/a>","created_at":"Sun Apr 26 12:14:49 +0000 2009"},{"truncated":false,"user":{"profile_sidebar_fill_color":"DAECF4","followers_count":91,"description":"Musician and web designer living in Bristol","utc_offset":0,"notifications":null,"friends_count":71,"profile_sidebar_border_color":"C6E2EE","following":null,"url":"http:\/\/fromnowon.me.uk","name":"Tim Reader","favourites_count":1,"profile_background_color":"C6E2EE","protected":false,"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60111539\/treader_normal.jpg","statuses_count":445,"profile_text_color":"663B12","screen_name":"timboreader","profile_background_tile":false,"profile_background_image_url":"http:\/\/static.twitter.com\/images\/themes\/theme2\/bg.gif","profile_link_color":"1F98C7","location":"Bristol","id":105563,"time_zone":"London","created_at":"Thu Dec 21 11:00:17 +0000 2006"},"in_reply_to_status_id":null,"text":"Thought I'd joined the wrong queue at points today but on the whole looks promising","in_reply_to_user_id":null,"favorited":false,"in_reply_to_screen_name":null,"id":1613659686,"source":"<a href=\"http:\/\/twitterfon.net\/\">TwitterFon<\/a>","created_at":"Sat Apr 25 16:25:59 +0000 2009"},{"truncated":false,"user":{"profile_sidebar_fill_color":"DAECF4","followers_count":91,"description":"Musician and web designer living in Bristol","utc_offset":0,"notifications":null,"friends_count":71,"profile_sidebar_border_color":"C6E2EE","following":null,"url":"http:\/\/fromnowon.me.uk","name":"Tim Reader","favourites_count":1,"profile_background_color":"C6E2EE","protected":false,"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60111539\/treader_normal.jpg","statuses_count":445,"profile_text_color":"663B12","screen_name":"timboreader","profile_background_tile":false,"profile_background_image_url":"http:\/\/static.twitter.com\/images\/themes\/theme2\/bg.gif","profile_link_color":"1F98C7","location":"Bristol","id":105563,"time_zone":"London","created_at":"Thu Dec 21 11:00:17 +0000 2006"},"in_reply_to_status_id":1611201662,"text":"@jayydubs not in the least - just early start to be in central London by 9am. Nice pic, mmmm x","in_reply_to_user_id":31369042,"favorited":false,"in_reply_to_screen_name":"jayydubs","id":1611608978,"source":"<a href=\"http:\/\/twitterfon.net\/\">TwitterFon<\/a>","created_at":"Sat Apr 25 08:37:48 +0000 2009"},{"truncated":false,"user":{"profile_sidebar_fill_color":"DAECF4","followers_count":91,"description":"Musician and web designer living in Bristol","utc_offset":0,"notifications":null,"friends_count":71,"profile_sidebar_border_color":"C6E2EE","following":null,"url":"http:\/\/fromnowon.me.uk","name":"Tim Reader","favourites_count":1,"profile_background_color":"C6E2EE","protected":false,"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60111539\/treader_normal.jpg","statuses_count":445,"profile_text_color":"663B12","screen_name":"timboreader","profile_background_tile":false,"profile_background_image_url":"http:\/\/static.twitter.com\/images\/themes\/theme2\/bg.gif","profile_link_color":"1F98C7","location":"Bristol","id":105563,"time_zone":"London","created_at":"Thu Dec 21 11:00:17 +0000 2006"},"in_reply_to_status_id":null,"text":"Having 16 hours of choral conducting tuition this weekend.","in_reply_to_user_id":null,"favorited":false,"in_reply_to_screen_name":null,"id":1611604577,"source":"<a href=\"http:\/\/twitterfon.net\/\">TwitterFon<\/a>","created_at":"Sat Apr 25 08:36:22 +0000 2009"},{"truncated":false,"user":{"profile_sidebar_fill_color":"DAECF4","followers_count":91,"description":"Musician and web designer living in Bristol","utc_offset":0,"notifications":null,"friends_count":71,"profile_sidebar_border_color":"C6E2EE","following":null,"url":"http:\/\/fromnowon.me.uk","name":"Tim Reader","favourites_count":1,"profile_background_color":"C6E2EE","protected":false,"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60111539\/treader_normal.jpg","statuses_count":445,"profile_text_color":"663B12","screen_name":"timboreader","profile_background_tile":false,"profile_background_image_url":"http:\/\/static.twitter.com\/images\/themes\/theme2\/bg.gif","profile_link_color":"1F98C7","location":"Bristol","id":105563,"time_zone":"London","created_at":"Thu Dec 21 11:00:17 +0000 2006"},"in_reply_to_status_id":null,"text":"Too early too early too early","in_reply_to_user_id":null,"favorited":false,"in_reply_to_screen_name":null,"id":1611196019,"source":"<a href=\"http:\/\/twitterfon.net\/\">TwitterFon<\/a>","created_at":"Sat Apr 25 06:39:32 +0000 2009"}]);*/