var addthis_config = {
	pubid: 'gmurphey',
	data_track_clickback: true,
	data_track_addressbar: true
};

try {Typekit.load();} catch(e) {}

(function ($) {
	$(function () {
		var $body = $('body');
		var $footer_frame = $('#footer-frame');

		var $window_height = $(window).height();
		var $body_height = $body.height();

		if ($window_height > $body_height) {
			$body.height($window_height);
	
			$body.css({ 'position' : 'relative' });
			$footer_frame.css({ 'position' : 'absolute', 'bottom' : '0' });
		}

		$('a[href^="http:"]:not(a[href^="http://' + document.location.hostname + '"])').click(function () {
			try { _gaq.push(['_trackEvent', 'Outbound Links', $(this).attr('href')]) } catch (e) {}
		});
		
		try {
			addthis.addEventListener('addthis.menu.share', function (e) {
				_gaq.push(['_trackSocial', e.data.service]);
			});
		} catch (e) {}
		
		SyntaxHighlighter.autoloader(
			'css 	/js/syntaxhighlighter/shbrushcss.min.js',
			'js 	/js/syntaxhighlighter/shbrushjscript.min.js',
			'php 	/js/syntaxhighlighter/shbrushphp.min.js'
		);
		
		SyntaxHighlighter.defaults['toolbar'] = false;
		SyntaxHighlighter.defaults['gutter'] = false;

		SyntaxHighlighter.all();
	});
}) (jQuery);
