var path = 'http://citychurchrva.com/site/';
var template_path = path + 'wp-content/themes/CityChurch/';

$(document).ready( function() {	
	$('.hider .title').click(function() {
		$(this).next().toggle();
		$(this).closest('li').css('backgroundImage', $.proxy(function(){
			if($(this).next().css('display') == 'block') {
				return 'url(' + template_path + 'img/arrow-down.png)';
			} else {
				return 'url(' + template_path + 'img/arrow-right.png)';
			}
		}, this));
		return false;
	});
	
    $('.slideshow').cycle({
        random: 1,
		timeout: 4000
    });	

	$('#flickr a').lightBox({
		imageLoading: template_path + '/img/lightbox-ico-loading.gif',
		imageBtnClose: template_path + '/img/lightbox-btn-close.gif' ,
		imageBtnPrev: template_path + '/img/lightbox-btn-prev.gif' ,
		imageBtnNext: template_path + '/img/lightbox-btn-next.gif' ,
	});

});


