/**
 * JavaScript to do link transformations within my site
 * @author Luke Sneeringer
 * @author Copyright 2008, Luke Sneeringer
 */
Event.observe(document, 'dom:loaded', function() {
	// iterate over all links and assign classes as appropriate
	boxes = new Array('.entry', '.comment', '.faq_block')
	boxes.each(function(box_type) {
		$$(box_type).each(function(box) {
			box.select('a').each(function(a_element) {
				// e-mail addresses
				if (a_element.protocol == 'mailto:') {
					a_element.addClassName('email')
				}
				else if (a_element.host != document.domain) {
					a_element.addClassName('website')
				}
			})
		})
	})
})