
	//	more.js
	
	//	Checks all anchors in a page and removes the internal link if
	//	they're a WordPress 'more' link.

	//	Made especially for BittBox.com by Jonic Linley (www.100yen.co.uk)

	//	Note, this is a dirty hack. A cleaner version should follow, but
	//	this will do for now.

	function more_init() {
		if (document.all || document.getElementsByTagName) {
			a_arr = document.getElementsByTagName('a');
			var j = 0;
			for (i = 0; i < a_arr.length; i++) {
				a = a_arr[i];
				a_class = a.className;
				if (a_class == 'more-link') {
					a_href = a.href;
					a_link = a_href.split('#')[0];
					a.href = a_link;
				}
			}
		}
	}

	window.onload = function() {
		more_init();	
	}