function anonymous(obj ) { var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push(''); var hasColumns = (function () { var checkColumns = function (_items) { if (!_items) { return false; } for (var i=0; i<_items.length; i++) { if (_items[i].columnBreak || (_items[i].items && checkColumns(_items[i].items))) { return true; } } return false; }; return checkColumns(items);}()); p.push(''); if(hasColumns) { p.push(' '); if(items[0].image && items[0].image.src) { p.push('
'); } else if (items[0].greeting) { p.push('
'); } else { p.push('
'); } p.push(''); } p.push(''); var renderItems = function(items) { p.push(' '); jQuery.each(items, function (i, item) { p.push(' '); if(hasColumns && item.columnBreak) { p.push(' '); if(item.image && item.image.src) { p.push('
'); } else if (item.greeting) { p.push('
'); } else { p.push('
'); } p.push(' '); } p.push(' '); if(item.dividerBefore) { p.push('
'); } p.push(' '); if(item.text || item.content) { p.push(' '); if(item.url) { p.push(' 16) { p.push(' style=\'line-height:',item.image.height ,'px;\' '); } p.push(' > '); if(item.decorate == 'carat') { p.push(' '); } p.push(' '); if(item.image && item.image.src) { p.push(' '); } p.push(' '); if(item.text) { p.push(' ',item.text,''); if(item.badgeText) { p.push(' ',item.badgeText,' '); } p.push(' '); } else if (item.content) { p.push(' '); jQuery.each(item.content, function (j, cItem) { p.push(''); if(cItem.url && cItem.text) { p.push('',cItem.text ,''); } else if (cItem.text) { p.push('',cItem.text,''); } p.push(''); }); p.push(' '); } p.push(' '); if(item.subtext) { p.push(' ',item.subtext ,' '); } p.push(' '); if(item.url) { p.push(' '); } else {p.push(' '); } p.push(' '); } p.push(' '); if(item.image && item.image.src) { p.push(' '); if(item.url) { p.push(' '); } p.push(' \'', '); if(item.url) { p.push(' '); } p.push(' '); } p.push(' '); if(item.items) { p.push('
'); renderItems(item.items); p.push('
'); } p.push(' '); }); p.push(''); }; p.push(''); renderItems(items); p.push(''); if(hasColumns) { p.push('
'); } p.push('');}return p.join(''); }