function slide_right()
{
	var x = jQuery('#pink_tab').css('right');
	_gaq.push(['_trackEvent', 'greenroom', 'slide_right', '']);
	jQuery('#fade_left').off('mouseleave', nudge_right_undo);
	jQuery('.slide_wrapper').animate({ left: '20px' }, 400);
	jQuery('.slide_wrapper').animate({ left: '0px' }, 150);
	document.getElementById('content').style.height = 'auto';
	document.getElementById('content').style.overflow = 'visible';
	document.getElementById('content2').style.height = '1000px';
	document.getElementById('content2').style.overflow = 'hidden';
	jQuery('.slide_wrapper').height(jQuery('#content').height());
	jQuery('#fade_left').fadeToggle(400, function() { jQuery('#fade_left').width('-=30'); });
	jQuery('#fade_right').fadeToggle(400);
	jQuery('#pink_tab').animate({ right: '-=825px' }, 400, function() { jQuery('#pink_tab').css('right', x); });
}

function slide_left()
{
	var x = jQuery('#green_tab').css('left');
	_gaq.push(['_trackEvent', 'greenroom', 'slide_left', '']);
	jQuery('#fade_right').off('mouseleave', nudge_left_undo);
	jQuery('.slide_wrapper').animate({ left: '-845px' }, 400);
	jQuery('.slide_wrapper').animate({ left: '-825px' }, 150);
	document.getElementById('content').style.height = '1000px';
	document.getElementById('content').style.overflow = 'hidden';
	document.getElementById('content2').style.height = 'auto';
	document.getElementById('content2').style.overflow = 'visible';
	jQuery('.slide_wrapper').height(jQuery('#content2').height());
	jQuery('#fade_left').fadeToggle(400);
	jQuery('#fade_right').fadeToggle(400, function() { jQuery('#fade_right').width('-=30'); });
	jQuery('#green_tab').animate({ left: '-845px' }, 400, function() { jQuery('#green_tab').css('left', x); });
}

function nudge_right_undo()
{
	jQuery('.slide_wrapper').animate({ left: '-=30px' }, 150);
	jQuery('#fade_left').animate({ width: '-=30px' }, 150);
	jQuery('#fade_left').off('mouseleave', nudge_right_undo);
}

function nudge_right()
{
	_gaq.push(['_trackEvent', 'greenroom', 'nudge_right', '']);
	jQuery('.slide_wrapper').animate({ left: '+=30px' }, 150);
	jQuery('#fade_left').animate({ width: '+=30px' }, 150);
	jQuery('#fade_left').on('mouseleave', nudge_right_undo);
}

function nudge_left_undo()
{
	jQuery('.slide_wrapper').animate({ left: '+=30px' }, 150);
	jQuery('#fade_right').animate({ width: '-=30px' }, 150);
	jQuery('#fade_right').off('mouseleave', nudge_left_undo);
}

function nudge_left()
{
	_gaq.push(['_trackEvent', 'greenroom', 'nudge_left', '']);
	jQuery('.slide_wrapper').animate({ left: '-=30px' }, 150);
	jQuery('#fade_right').animate({ width: '+=30px' }, 150);
	jQuery('#fade_right').on('mouseleave', nudge_left_undo);
}

function nudge_up(event)
{
	jQuery(event.data.element + '> .tint').animate({ height: '+=10px' }, 100);
	jQuery(event.data.element + '> span').animate({ top: '-=10px' }, 100);
}

function nudge_up_undo(event)
{
	jQuery(event.data.element + '> .tint').animate({ height: '-=10px' }, 100);
	jQuery(event.data.element + '> span').animate({ top: '+=10px' }, 100);
}
