$(document).ready(function() {
	Cufon.replace('h1');
	Cufon.replace('.col-dx h2');
	
	$('a.blank').attr('target', '_blank');
	
	$('div#navigation ul:first li:last').addClass('last');
		
	$('div.slideshow').cycle({ fx: 'fade' });
	
	$('div.whatsnew:not(.expanded), div.monthlycase:not(.expanded)').each(function(i) {
		var obj = this;
		
		$(obj).children('p:first').addClass('expand').css({ 'margin-bottom': '0px' }).attr('title', 'Click to expand...').click(function() {
			$(obj).children('div:first').slideDown('slow');
			$(this).removeClass('expand').removeAttr('title').unbind();
		});
		
		$(obj).children('div:first').css({ 'margin-top': '5px' }).hide();
	});
});

var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-21567991-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);
})();
