$('#logo').fadeIn(6000);
	
var message = "You may not right click on this page.",
	$sidebarA = $("#sidebar a");
			
// attempt to prevent right clicking on page
	function noClick(e){
		if (document.layers||document.getElementById&&!document.all){
			if (e.which==2||e.which==3){
				alert(message);
				return false;
			}
		}
	}
	if (document.layers){
		document.captureEvents(event.mousedown);
		document.onmousedown=noClick; 
	}document.oncontextmenu=new Function("alert(message);return false");

// title tags for sidebar
	$sidebarA.each(function(){
		$(this).attr(
			'title', $(this).children('img').attr('alt')
		);
	});

var $imageItem = $("#image-list li"); //change #image-list to whatever or class 
	
$imageItem.each(function(){ //adds image number and title to thumbnails
 		var $index = $imageItem.index(this) + 1;
				$img = $(this);
				$title = $img.find('img').attr('alt');	
		$img.append('<p>Image ' + $index + '</p>');
		$img.append('<h3>' + $title + '</h3>');			
	});
	
var $mainItem = $("#gallery #image-list li");
$mainItem.each(function(){ //change main Gallery titles in Gallery instead of Image
 		var $index = $mainItem.index(this) + 1;
				$img = $(this);
		$img.find('p').text('Gallery ' + $index );
	});

// add rel for lightbox	
$("#image-list a").each(function(){
	$(this).attr({
		rel: 'gallery[images]'
	});
});
