if (location.href.indexOf("archive") != -1) { document.write("current") }