function savebookmark(id,model)
{
	$('#bookmark-it').show();
	$('#bookmessage').html("One moment please");
	jQuery.post("/bookmarks/add/",{nid:id,model:model},function(data){ $('#bookmessage').html(data);$('#bookmark-it').slideUp(1900)});
}

function deletebookmark(id)
{
	if(confirm("Delete bookmark?")==true)
	{
	jQuery.post("/bookmarks/del/",{bid:id},function(data){$('#book-content').load("/bookmarks/list/ #bookmark-table");});
	}
}


// following lines: most convenient place to be, other than making own JS file!!!! //

$(document).ready(function() {
	$('label.embed-code-button').click(function () {
		$('#embed-toggle').toggle();
	});
	$('a#embed-help').click(function () {
		$('#embed-help-toggle').toggle();
		return false;
	});
	
});
