$(document).ready(function(){
	jQuery('img.addCaption').addcaption();
});

function initBookmarking()
{
	if(window.opera)
	{
		if ($('bookmark-ctrl').attr('rel') != '') {
			$('bookmark-ctrl').attr('rel', 'sidebar');
		}
	}

	$('#bookmark-ctrl').click(function(event) {
		event.preventDefault();

		var url = this.href;
		var title = this.title;

		if (window.sidebar) {
			window.sidebar.addPanel(title, url, '');
		}
		else if (window.external) {
			window.external.AddFavorite(url, title);
		} 
		else if(window.opera) {
			return false;
		}
		else {
			alert('Unfortunately, this browser does not support the requested action, please bookmark this page manually.');
		}
	});
}

function initBBCNewsFeed()
{
	new rssticker_ajax('BBC', 600, 'ticker', 'ticker', 2500, '');
}
