User:Hofmic/global.js

/* Shrinkable News */ if(document.getElementById("news_section")) { alert("Hello world"); for(var i=1; i <= 6; i++) {		if(document.getElementById("news_header_shrinkable_"+i+"_visible")) {			document.getElementById("news_header_shrinkable_"+i+"_visible").onclick = "shrinkableNews("+i+");"; }	} }

function shrinkableNews(id){ if(document.getElementById("news_body_shrinkable_"+id+"_visible")) {		document.getElementById("news_body_shrinkable_"+id+"_visible").id = "news_body_shrinkable_"+id+"_invisible"; } else if(document.getElementById("news_body_shrinkable_"+id+"_invisible")) {		document.getElementById("news_body_shrinkable_"+id+"_invisible").id = "news_body_shrinkable_"+id+"_visible"; } }