types = new Array(); types[1] = new Array(); types[1]["published"] = 1; types[1]["frontpage"] = 0; types[1]["sticky"] = 0; types[2] = new Array(); types[2]["published"] = 1; types[2]["frontpage"] = 1; types[2]["sticky"] = 0; types[3] = new Array(); types[3]["published"] = 1; types[3]["frontpage"] = 1; types[3]["sticky"] = 1; types[4] = new Array(); types[4]["published"] = 1; types[4]["frontpage"] = 0; types[4]["sticky"] = 0; types[5] = new Array(); types[5]["published"] = 1; types[5]["frontpage"] = 0; types[5]["sticky"] = 0; types[6] = new Array(); types[6]["published"] = 1; types[6]["frontpage"] = 0; types[6]["sticky"] = 0; types[7] = new Array(); types[7]["published"] = 1; types[7]["frontpage"] = 0; types[7]["sticky"] = 0; types[8] = new Array(); types[8]["published"] = 1; types[8]["frontpage"] = 0; types[8]["sticky"] = 0; function showTooltip(id, contentId) { document.getElementById(id).style.display = "inline"; new Ajax.Updater(id, '?q=content&r=view&s=' + contentId + '&t=12', {method: 'get'}); } function hideTooltip(id) { document.getElementById(id).style.display = "none"; } function selectType() { value = document.getElementById("editFormType").value; published = document.getElementById("editFormPublished"); frontpage = document.getElementById("editFormFrontPage"); sticky = document.getElementById("editFormSticky"); type = types[value]; published.checked = type["published"]; frontpage.checked = type["frontpage"]; sticky.checked = type["sticky"]; }