$(document).ready(function(){
	//gwFooter();
	//$(window).scroll(gwFooter).resize(gwFooter);
	$('div#top').click(function(){$('html,body').animate({scrollTop:'0px'},400);});
	$('div.featured').cycle({fx: 'fade', pager: 'ul.pager',pagerAnchorBuilder: function(idx, slide) { return '<li></li>';} });
	$('section#bulletin').tabs('section#bulletin div', {tabs: 'h3', effect: 'slide', initialIndex: -1});


	$('div.members').children('div').children('ul').masonry();
	$('div.members').children('nav').children('a').click(function(){
		$(this).parent().parent().children('div').hide();
		$(this).parent().parent().children('div.'+$(this).attr('class')).show();
		$('div.members').children('div').children('ul').masonry('reload');
		
	});
});
function gwFooter(){
	$h=$('header.main').outerHeight()+$('div.main').outerHeight()+$('footer.main').outerHeight()+$('div#wpadminbar').outerHeight(); 
	if($h<$(document).height()){
		$h=$(document).height()-$h+$('div.main').height()-$('div#adminbar').outerHeight()-$('div#wpadminbar').outerHeight();
		$('div.main').css('height',$h);
	}
}

