// JavaScript Document


/* Digg javascript 
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
*/

/* Google +1 (asynchronous) */
(function() {
	var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
	po.src = 'https://apis.google.com/js/plusone.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();




/* Construct email address to try and fool spam-crawlers. */
function mailto(name, domain, extension, text, css) {
	address = (name + '@' + domain + '.' + extension);
	if ((text == '') || (text == null)) {
		text = address;
	}
	if (css != '') {
		css = ' class="' + css + '"';
	}
	// Straight version:
	document.write('<a href="mailto:' + address + '"' + css + '>' + text + '</a>');
	// Obfuscated version:
	//var _0x38b6=["\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x6D\x61\x69\x6C\x74\x6F\x3A","\x22\x20\x63\x6C\x61\x73\x73\x3D\x22\x65\x6D\x61\x69\x6C\x22\x3E","\x3C\x2F\x61\x3E","\x77\x72\x69\x74\x65"];document[_0x38b6[3]](_0x38b6[0]+address+_0x38b6[1]+text+_0x38b6[2]);
}



/* Google analytics */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17700057-1']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

