/* target="_blank" workaround */
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.href && anchor.className.indexOf('external') != -1)
		anchor.target = "_blank";
	}
}

/* the chia tweety project */
function chia() {
	window.open('photos/se_diaries/chia/index.html','chia','resize=no,status=no,toolbar=no,location=no,width=600,height=350');
}

/* global functions */
if (document.getElementById) { // include all feature tests needed for your DOM script
	createStyleRule(".blogTrackback", "display: none;");
	createStyleRule(".blogComments", "display: none;");
	createStyleRule(".blogFooter", "border-bottom: 0;");
}

function blogFooterLinks() {
	setElementStyleByClassName("blogTrackback", "display", "none"); // fallback for IE5/Mac
	setElementStyleByClassName("blogComments", "display", "none"); // fallback for IE5/Mac
	setElementStyleByClassName("blogFooter", "border-bottom", "0"); // fallback for IE5/Mac

	document.getElementById("trackbackLink").onclick = function() {
		setElementStyleByClassName("blogTrackback", "display", "block");
		setElementStyleByClassName("blogFooter", "borderBottom", "1px solid #b6a18e");
		window.location = "#trackback";
		return false;
	};

	document.getElementById("commentsLink").onclick = function() {
		setElementStyleByClassName("blogComments", "display", "block");
		setElementStyleByClassName("blogFooter", "borderBottom", "1px solid #b6a18e");
		window.location = "#comments";
		return false;
	};
}

function init()	{
	externalLinks();
	blogFooterLinks();
}

window.onload = init;
window.defaultStatus='I own\; you rent.';
