@ -21,17 +21,18 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') {
if ( h != null && h != "" ) { _h = h } ;
if ( h != null && h != "" ) { _h = h } ;
if ( uid != null && uid != "" ) { _uid = uid } ;
if ( uid != null && uid != "" ) { _uid = uid } ;
if ( data . media != null && data . media != "" ) {
if ( data . thumbnail != null && data . thumbnail != "" ) {
trace ( "CUSTOM THUMB" ) ;
mediaElem = "<div class='thumbnail thumb-custom' id='" + uid + "_custom_thumb'><img src='" + data . thumbnail + "'></div>" ;
return mediaElem ;
} else if ( data . media != null && data . media != "" ) {
var _valid = true ,
var _valid = true ,
mediaElem = "" ,
mediaElem = "" ,
m = VMM . MediaType ( data . media ) ; //returns an object with .type and .id
m = VMM . MediaType ( data . media ) ; //returns an object with .type and .id
// DETERMINE THUMBNAIL OR ICON
// DETERMINE THUMBNAIL OR ICON
if ( data . thumbnail != null && data . thumbnail != "" ) {
if ( m . type == "image" ) {
trace ( "CUSTOM THUMB" ) ;
mediaElem = "<div class='thumbnail thumb-custom' id='" + uid + "_custom_thumb'><img src='" + data . thumbnail + "'></div>" ;
return mediaElem ;
} else if ( m . type == "image" ) {
mediaElem = "<div class='thumbnail thumb-photo'></div>" ;
mediaElem = "<div class='thumbnail thumb-photo'></div>" ;
return mediaElem ;
return mediaElem ;
} else if ( m . type == "flickr" ) {
} else if ( m . type == "flickr" ) {