';}document.getElementById("cardcontent").innerHTML = content;document.getElementById("showansw").style.display = "none";if (cards.length > (counter+1)){document.getElementById("showcard").style.display = "block";}else{document.getElementById("finalbuttons").style.display = "block";}if (document.getElementById("bottomlink-"+counter) == undefined){document.getElementById("links").innerHTML = document.getElementById("links").innerHTML + ''+(counter+1)+': '+cards[counter]["from"]+'
';}}function showNext(){counter = counter + 1;var content = ''+cards[counter]["from"]+'
'+cards[counter]["fromhint"]+'
';document.getElementById("contentlast").style.display = "none";document.getElementById("contentlast").innerHTML = content;document.getElementById("cardcontent").innerHTML = content;document.getElementById("showansw").style.display = "block";document.getElementById("showcard").style.display = "none";document.getElementById("counter").innerHTML = ""+(counter+1)+"/"+cards.length;}function setCounter(cnt){counter = cnt - 1;showNext();}