// Trigger scroll to display images that might not have been displayed before
$("#"+cardID).find("img.imageborder").trigger("scroll");

// Set the height of each VCard to the height of the heighest VCard
/*$("#"+cardID).find("div.card_item").each(function() {
$(this).height(Math.max.apply(null, $("div.card_item").map(function() {
return $(this).height();
}).get()));
});*/

// Set global flag so that switchting from table to card view or vice versa is known by the functions below
tableVCardSwitching = 1;