/* PANE SCROLL NAVIGATION */
function prev_pane(current) {
	if ( $('pane'+(current-1)) ) new Effect.ScrollTo('pane'+(current-1));
	else new Effect.ScrollTo('pane0');
}
function next_pane(current) {
	if ( $('pane'+(current+1)) ) new Effect.ScrollTo('pane'+(current+1));
	else {
		new Effect.ScrollTo('pane0');
		show_next_link();
	}
}
function show_next_link() {
	if ($('next_link')) {
		setTimeout(function() {
			$('next_link').show();
			new Effect.Highlight('next_link', {startcolor: '#DDDDDD'} );
		}, 1200);
	}
}

function show_blurb(blurb_id) {
	if ($('blurb-'+blurb_id)) { $('blurb-'+blurb_id).show(); }
}
function hide_blurb(blurb_id) {
	if ($('blurb-'+blurb_id)) { $('blurb-'+blurb_id).hide(); }
}



/* COMMENTS SYSTEM */
function init_comments(post_id) {
	new Insertion.After($('comment_link'+post_id),'<div id="comments">test</div>');
	$('comments');
}