$(document).ready(function(){
	
	$('.msgok').each(coolReveal);
	$('.msgerror').each(coolReveal);
	
	var iSlideshowFadeSpeed = 1200;
	var iSlideshowTimeout = 3000;

	$('.slideshow-inner').cycle({ 
		fx: 'fade', 
		speed: iSlideshowFadeSpeed,
		timeout: iSlideshowTimeout
	});
		
	$('A[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});
	
	//$('.which_content').hide();
	$('.which h3 a').click(toggleWhichContent);	
	
});

function coolReveal()
{
	$(this).hide();
	$(this).slideDown('slow'); 
}

function toggleWhichContent()
{
	if ($('.which_content').is(':visible'))
	{
		$('.which_content').slideUp('slow');
	}
	else
	{
		$('.which_content').slideDown('slow');
	}
}


