function emailCloak() {
		if (document.getElementById) {
			var alltags = document.all? document.all : document.getElementsByTagName("*");
			for (i=0; i < alltags.length; i++) {
			  if (alltags[i].className == "emailCloak") {
			  	var oldText = alltags[i].firstChild;
			  	var emailAddress = alltags[i].firstChild.nodeValue;
			  	var user = emailAddress.substring(0, emailAddress.indexOf("("));
			  	var website = emailAddress.substring(emailAddress.indexOf(")")+1, emailAddress.length);
			  	var newText = user+"@"+website;
			  	var a = document.createElement("a");
			  	a.href = "mailto:"+newText;
				var address = document.createTextNode(newText);
				a.appendChild(address);
				alltags[i].replaceChild(a,oldText);
			  }
			}
		}
	}
window.onload = emailCloak;

//jquery ondocument functions
$(document).ready(function(){
	//skip over paragraphs that contain none text items
	paragraphs = $('#content p');
	nParagraphs = (paragraphs.length) - 2 //2 at the end;
	
	for(i=1; i<nParagraphs; i++) { //start from one to skip over the date
		if($("#content p:eq("+i+")").text() != ""){
			break;
		}
	}
	
	p = $("#content p:eq("+i+")").text();
	
	letter = p.slice(0, 1);
	letter = "<span class='dcap'>" + letter + "</span>";
	end = p.slice(1, p.length);
	
	newP = "<p>"+letter + end+"</p>";

	//$("#content p:eq("+i+")").replaceWith(newP);
	
	
	//slide the readme in/out..
	$("#respond-intro-toggle").click(function () {
      $("#respond-intro").slideToggle("slow");
    });
	
	//close the comments alert
	$("#posted-alert-close").click(function () {
		$("#posted-alert").fadeOut("slow");									 
	});
	
	//show / hide more info on the user bookmarks
	$("#user-bookmarks-about-toggle").click(function () {
      $("#user-bookmarks-about").slideToggle("slow");
    });
});