﻿function anotherLovesCallback(loves) {
	var statusHTML = [];
	statusHTML.push('<div style="float:left;width:100px">');
	var userUrl;
	for (var i = 0; i < loves.length; i++) {
		userUrl = loves[i].userUrl;
		var imageUrl = loves[i].thumbnailImgUrl;
		var title = loves[i].title;
		statusHTML.push('<a href="' + loves[i].url + '" title="' + title + '" style="display:block;width:100px;height:100%;"><img src="' + imageUrl + '" alt="' + title + '" style="border: 0px none;width:100px;float:left" /></a>');
		if ((i<loves.length-1) && (((i + 1) % Math.ceil((loves.length / 2))) == 0))
			statusHTML.push('</div><div style="float:left;width:100px">');
	}
	statusHTML.push('</div><div style="clear:both"></div>');
	var list = document.getElementById('another_loves_list');
	if(!list){
		document.write('<div id="another_loves_list" style="width:200px"></div>');
		list = document.getElementById('another_loves_list');
	}
	list.innerHTML = statusHTML.join('');
}