jQuery(document).ready(function(){
     jQuery("#vid-embed").append("<div id=\'first-vid\'></div>");
     jQuery.getJSON("http://gdata.youtube.com/feeds/api/users/seabl/uploads?max-results=1&v=2&alt=jsonc&callback=?", function(data) {
        var dataContainer = jQuery("#first-vid");
        jQuery.each(data.data.items, function(i, val) {
            if (typeof(val.player) !== 'undefined' && typeof(val.title) !== 'undefined') {
                dataContainer.append("<iframe width='300' height='250' src='http://www.youtube.com/embed/"+val.id+"?rel=0&autohide=0' frameborder='0' name='vid-frame' allowfullscreen></iframe>");
			}
        });
    });
     jQuery("#vid-videos").append("<div id =\'data\'></div>");
     jQuery.getJSON("http://gdata.youtube.com/feeds/api/users/seabl/uploads?max-results=6&v=2&alt=jsonc&callback=?", function(data) {
        var dataContainer = jQuery("#data");
        jQuery.each(data.data.items, function(i, val) {
            if (typeof(val.player) !== 'undefined' && typeof(val.title) !== 'undefined') {
                dataContainer.append("<div class='vid'><a href = \'http://www.youtube.com/user/seabl?feature=watch#p/a/u/0/"+val.id+"\' target = '_blank'><div class='vid-thumb'><img src="+val.thumbnail.sqDefault+"></div><div class='vid-title'>"+val.title+"</div></a></div>");
			}
        });
    });
});
