$(document).ready(function() {
 // hides the comment_box as soon as the DOM is ready
 // (a little sooner than page load)
  $('#comment_box').hide();
 // shows the comment_box on clicking the noted link  

 // toggles the comment_box on clicking the noted link  
  $('a#comment_box-toggle').click(function() {
    $('#comment_box').toggle(400);
    return false;
  });
});

$(document).ready(function() {
 // hides the slideshow_box as soon as the DOM is ready
 // (a little sooner than page load)
  $('#slideshow_box').hide();
 // shows the slideshow_box on clicking the noted link  

 // toggles the slideshow_box on clicking the noted link  
  $('a#slideshow_box-toggle').click(function() {
    $('#slideshow_box').toggle(400);
    $('#slideshow_box-toggle').toggle(400);
    return false;
  });
});

$(function() {
	$('#tabs > ul').tabs({ fx: { opacity: 'toggle' } });
});

$(function() {
    $('#rotating_awardees').cycle({
        fx:     'fade',
        speed:  'fast',
        timeout: 4000
    });
});

$(function() {
	$('#rotating_item').cycle('fade');
});

$(function() {
	$('#rotating_item_02').cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 3000
    });
});

$(function() {
    $('#community_news_ticker').before('<div id="nav" class="nav">').cycle({
        fx:     'fade',
        speed:  1000,
        timeout: 4500,
        pause:	1,
        pager:  '#nav',
        before: function() { if (window.console) console.log(this.src); }
    });
});

$(function() {
	$('#slideshow09').cycle({
		prev:    '#prev',
		next:    '#next',
		pause:  '#pause',
		fx:     'fade',
		speed:  1000,
		timeout: 5000
	});
	$('#pause').click(function() { $('#slideshow09').cycle('pause'); return false; });
	$('#play').click(function() { $('#slideshow09').cycle('resume', true); return false; });
	$('#playControl').toggle(
		function() {
			$('#slideshow09').cycle('pause');
			$(this).text('Play Slideshow');
		},
		function() {
			$('#slideshow09').cycle('resume', true);	
			$(this).text('Pause Slideshow');
	});
});