$(document).ready(function() {


    // fetch and display latest blog posts
    $.jGFeed('http://blog.threddie.com/rss.xml',
	function(feeds){
	    $("ul#blog img.loading").hide();

	    // Check for errors
	    if(!feeds){
		// there was an error
		$("ul#twitter").append("<li>error retrieving blog posts</li>");
	    }
	    // cycle and display feed items
	    for(var i=0; i<feeds.entries.length; i++){
		var entry = feeds.entries[i];

		$("ul#blog").append("<li><a class='item' href='"+entry.link+"'>"+entry.title+"</a></li>");
	    }
	}, 3);



    // video modal
    $("#screenie").jqm();

    $("a.video").click(function() {
		$("#screenie").jqmShow();
    });






});
