// Custom Mintleaf Functions

function youtubeFeedCallback( data )
{
 document.writeln('<table style="width:600px;padding-top:10px; display:block; color:#000000;">');
 
 document.writeln('<tr valign=top style="height:5px;"><td style="color:#4B7BB1;"><b>Title:</b></td><td style="color:#333333;"> ' + data.entry[ "title" ].$t + '</td></tr>' );
 
 document.writeln('<tr style="height:5px;"><td style="color:#4B7BB1;"><b>Published:</b></td><td style="color:#333333;">' + new Date( data.entry[ "published" ].$t.substr( 0, 4 ), data.entry[ 
 "published" ].$t.substr( 5, 2 ) - 1, data.entry[ "published" ].$t.substr( 8, 2 ) ).toLocaleDateString( )+ '</td></tr>' );
 
 document.writeln( '<tr style="height:5px;"><td style="color:#4B7BB1;"><b>Duration:</b></td><td style="color:#333333;"> ' + Math.floor( data.entry[ "media$group" ][ "yt$duration" ].seconds / 60 ) + 
 ':' + ( data.entry[ "media$group" ][ "yt$duration" ].seconds % 60 ) + ' (' + data.entry[ "media$group" ][ 
 "yt$duration" ].seconds + ' seconds)</td><tr>' );
 
 document.writeln('</table>');
 document.writeln( '<p class="content">' + data.entry[ "media$group" ][ "media$description" ].$t.replace( /\n/g, '<br/>' ) + '</p>' );
}
/*
function getID(url)
{
	window.location ="/Community/"+url;
	
}*/
