	function highlight(id, newColor)
	{
		identity = document.getElementById(id);
		identity.style.backgroundColor = newColor;
	}

	function switcher(id, newclass)
	{
		identity = document.getElementById(id);
		identity.className = newclass;
	}

	function swaptext(name)
	{
		identity = document.getElementById('box1');
		identity.innerHTML = name;
	}

	function formSelect(id) {
		identity = document.getElementById(id);
		identity.style.border = '1px solid #D49544';
	}

	function formUnSelect(id) {
		identity = document.getElementById(id);
		identity.style.border = '1px solid #e0e0e0';
	}

	function doWidth() {
		if (document.body.clientWidth > 900) {
			return '900px';
		}
		else if (document.body.clientWidth < 735) {
			return '725px';
		}
		else {
			return '100%';
		}
	}

	/*
		function externalLinks()
		from "New Window Links in a Standards-Compliant World
		http://www.sitepoint.com/article/standards-compliant-world
	*/

	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.getAttribute("href") && anchor.getAttribute("rel") == "external") {
				anchor.target = "_blank";
			}
		}
	}

	window.onload = externalLinks;

	/* AddThis.com */
	var addthis_pub = 'gregorlove';
	var addthis_brand = 'gRegorLove.com';
	var addthis_options = 'favorites,facebook,delicious,twitter,google,email,more';