


function sidebar_link_slide(target_id, source_link_object){
	if(source_link_object != undefined){
		$(source_link_object).addClass('sidebar_link_header_active');
	}
	$(target_id).slideDown();
}

/*
var active_header_background_index = 0;

$(function(){
	
	//preload next header image
	$("<img src='" + header_images[1] + "' />");
	
	setInterval(function(){
		var next_index = active_header_background_index + 1;
		if(header_images[next_index] == undefined){
			next_index =0;
		}
		
		$('#header_background').css('background-image', "url('" + header_images[next_index] + "')");
		$('#header_background_img').fadeOut('slow', function(){
			$('#header_background_img').attr('src', header_images[next_index]).show();
			active_header_background_index = next_index;
			
			
			//preload next image
			next_index = next_index +1;
			if(header_images[next_index] != undefined){
				$("<img src='" + header_images[next_index] + "' />");
			}
		});
		
		
	}, 10000);
	
});
*/

$(function(){
	$(".timeago").timeago();
});
