
$(document).ready(function(){

	if ($.browser.msie && $.browser.version.substr(0,1)<9) {
	
		$('.contentBox p, .contentBox ul').stop().fadeTo('slow', 0.5);
		$('.contentBox').hover(function() {
			$(this).find('p, ul').stop().fadeTo('slow', 1);
		}, function() {
			$(this).find('p, ul').stop().fadeTo('slow', 0.5);
		});
		
	} else {
	
		$('.contentBox p, .contentBox .icon, .contentBox ul').stop().fadeTo('slow', 0.5);
		$('.contentBox').hover(function() {
			$(this).find('p, .icon, ul').stop().fadeTo('slow', 1);
		}, function() {
				$(this).find('p, .icon, ul').stop().fadeTo('slow', 0.5);
		});
	
	}
	
	$("a.iframe").fancybox({
		'hideOnContentClick': false,
		'width': 325
	});
	
	var height = $(window).height() - 15;
	$('#wrapper').css('height', height);
	
	$(window).resize(function() {
		var height = $(window).height() - 15;
		$('#wrapper').css('height', height);
	});
	
	$('#twitter_update_list:empty').html("Oh no! It seems like Twitter is down. Check back later when Twitter gets back up and running. <a href='http://www.twitter.com/jonrundle' target='_blank'>twitter.com/jonrundle</a>");
	
});