jQuery(document).ready(function(){
	jQuery('#network-accordion').accordion({
		event: 'click',
		autoheight: false
	});
	
	var homePagePostsDefault = 20;
	
	showHomeElement = function(id)
	{
		jQuery('#home_posts_' + homePagePostsDefault).hide();
		jQuery('#home_posts_' + id).show();
		homePagePostsDefault = id;
	}
	
	show_hideo_think_slides = function(id)
	{
		if(jQuery('#right_slides_thinks_' + id).css('display') == 'none')
		{
			jQuery('#right_slides_thinks_' + id).show('fast');
			jQuery('#slide_visio_' + id).attr('class', 'slide_down');
		}
		else
		{
			jQuery('#right_slides_thinks_' + id).hide('fast');
			jQuery('#slide_visio_' + id).attr('class', 'slide_up');			
		}
	}
	
	jQuery('#gallery_all a').lightBox({
		imageLoading: 'http://www.brandosocial.com/images/lightbox-ico-loading.gif',
		imageBtnClose: 'http://www.brandosocial.com/images/lightbox-btn-close.gif',
		imageBtnPrev: 'http://www.brandosocial.com/images/lightbox-btn-prev.gif',
		imageBtnNext: 'http://www.brandosocial.com/images/lightbox-btn-next.gif'
	});	
	
	insert_video_think_page = function(vid)
	{
		jQuery('#youtube_title_insert').html(jQuery('#youtube_title_' + vid).html());
		jQuery('#youtube_description_insert').html(jQuery('#youtube_description_' + vid).html());
		jQuery('#video_youtube_think_page').html('<object width="364" height="245">'
											+ '<param name="movie" value="http://www.youtube.com/v/' + vid + '"> </param>'
											+ '<embed src="http://www.youtube.com/v/' + vid + '" type="application/x-shockwave-flash" width="364" height="245"></embed>'
											+ '</object>');
	}
	
	var fm = new FeedMenu();
	fm.write('#jquery_feed_menu');
});
 