// Google analytics.
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17683496-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);
  })();

// Predefine variables for page updating.
var social_url = "";
var social_headline = "";
var social_notes = "";
function go_to_delicious() {
	var url = (social_url) ? social_url : document.URL;
	var headline = (social_headline) ? social_headline : document.title;
	var notes = social_notes;
	url = encodeURIComponent(url);
	headline = encodeURIComponent(headline);
	notes = encodeURIComponent(notes);
	var open_url = 'http://del.icio.us/post?v=4&noui&jump=close&url='+url+'&title='+headline+'&notes='+notes;
	window.open(open_url,'Del.icio.us','toolbar=no,width=700,height=400');
	return false;
}
function go_to_digg() {
	var url = (social_url) ? social_url : document.URL;
	var headline = (social_headline) ? social_headline : document.title;
	var notes = social_notes;
	url = encodeURIComponent(url);
	headline = encodeURIComponent(headline);
	notes = encodeURIComponent(notes);
	// &topic=X
	var open_url = 'http://www.digg.com/submit?phase=2&url=' + url + '&title=' + headline + '&bodytext=' + notes;
	window.open(open_url,'Digg!','toolbar=no,scrollbars=yes,resizable=yes');
	return false;
}
function go_to_social(base_url) {
	var url = (social_url) ? social_url : document.URL;
	url = encodeURIComponent(url);
	var open_url = base_url + url;
	window.open(open_url,'Bookmark It','toolbar=no,scrollbars=yes,resizable=yes,width=700,height=400');
	return false;
}

