$(document).ready(function() {

	// Apply lightbox effect to all images with the class 'lightbox'
	var lightboximage = $("img.lightbox").parent('a');	
	$(lightboximage).lightBox({
		imageLoading: 'http://franklocker.com/Image/lightbox-ico-loading.gif',
		imageBtnClose: 'http://franklocker.com/Image/lightbox-btn-close.gif',
		imageBtnPrev: 'http://franklocker.com/Image/lightbox-btn-prev.gif',
		imageBtnNext: 'http://franklocker.com/Image/lightbox-btn-next.gif'						  							  							
	});

	// Make nice links with hover effect
	$('#link-list li').hover(function() {
		$(this).css({'background-color' : '#333333', 'cursor' : 'pointer'});		
		}, function() {
		$(this).css({'background-color' : 'transparent', 'cursor' : 'auto'});		
	});
	
	// When clicked - send user to proper page
	$('#link-list li').click(function() {
		var h3 = $(this).children('h3');
		var a = $(h3).children('a');
		var url = $(a).attr('href');
		window.location = url;											  
	});
	
	$("#news").load("right-sidebar.html");
		
}); // End jQuery
