
/*
 UI effects.
 Uses the Revealing Module Pattern.
 */

if (typeof CSARK == 'undefined') { CSARK = {}; }

CSARK.UI = (function()
{
	function init()
	{
		// set up the intro text box
		$('#content #bodyholder').draggable({
			containment: 'parent',
			cancel: '.bodytext,.closebutton',
			delay: 100
		});
		
		$('#content .closebutton').click(function()
		{
			$('#content .bodytext').slideToggle('fast');
		});
	}
	
	return {
		init: init
	};
	
}());


// set up the above items
$(document).ready(CSARK.UI.init);


