
$(document).ready(function() {
	$('div#tip').hide();
	$('#weekly_tip h1').click(function() {
		$("#tip").toggle();
		$("#weekly_tip").toggleClass("opened");
	});
});


/* load links in new window with rel instead of rel="external" */
function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}
window.onload = externalLinks;