// typical website functions, with jquery goodness

// SPAM EMAIL FILTER
showEml = function() {
	email_adds = $(".elink");
	for (i = 0; i < email_adds.length; i++) {
		eaddr = email_adds[i];
		addr = $(eaddr).attr("id");
		// underscored values enable multiple uses of the same email on the page, but with a slightly different id.
		altext = addr.lastIndexOf("_");
		// if there are others, we strip the leading underscores and return the actual email addressee
		if(altext == 0) {addr_temp = addr.substring(altext+1,addr.length); } else { addr_temp = addr;}
		showeml = addr_temp + '@onereel.org';
		$(eaddr).replaceWith('<a href="mailto:' + showeml + '">' + showeml + '</a>');
	}
}

insertFlash = function(filename, title, width, height, bgcolor, where) {
	var fc = new FlashObject(filename, title, width, height, "7", bgcolor);
	fc.addParam("wmode", "opaque");
	fc.write(where);
	return false;
}