jQuery.noConflict();jQuery(document).ready(function($){

	$('#gallery a').attr("rel", "lightbox-album");
	
	
	// Front page images
	var pic1 = -1;
	var pic2 = -1;
	var pic3 = -1;
	
	function randlinum (){
		
		var linum = $('ul.sidebar-thumbs li').length; //how many items are there?
		var i = Math.random(); //set a random between 0 and 1
		var lieq = Math.floor(i * linum); //Generate the random index number, between 0 and # of images - 1
		return lieq;
	}	

	pic1 = randlinum ();

	while (pic2 < 0 || pic2 == pic1) {
		pic2 = randlinum ();
	}
	
	while (pic3 < 0 || pic3 == pic1 || pic3 == pic2) {
		pic3 = randlinum ();
	}
	
	var pic1html = $('ul.sidebar-thumbs li:eq(' + pic1 + ')').html();
	var pic2html = $('ul.sidebar-thumbs li:eq(' + pic2 + ')').html();
	var pic3html = $('ul.sidebar-thumbs li:eq(' + pic3 + ')').html();
	
	$('ul.sidebar-thumbs').empty().append(pic1html).append(pic2html).append(pic3html);

	$('.sidebar ul#sb-test br').remove();
	$('.sidebar ul#sb-test cite').before("<br />").prepend("- ");


}); // end doc ready


$(window).load(function () {

}); // end load function