$(function() {
	$("#navUl").lavaLamp({
		fx: "backout", speed: 700 })
});

$(function() {
    $('img.imgSmall').animate({"opacity": .5 });

    $('img.imgSmall').hover(function() {
        $(this).stop().animate({ "opacity": 1 });
    }, function() {
        $(this).stop().animate({ "opacity": .5 });
    });
});

$(function() {	
	$('#imgThumbs img').click(function() {
		var clickedId = this.id;
		var splitId = clickedId.split('-');
		var bigId = '#imgBig-' + splitId[1];
		if($(bigId).css('display') == 'none') {
			$('.imgBig').hide();
			$(bigId).fadeIn();
		}
	});
});

$(function() {	
	$('#controls li').click(function() {
		var clickedId = this.id;
		var splitId = clickedId.split('-');
		var bigId = '#bigImage-' + splitId[1];
		if($(bigId).css('display') == 'none') {
			$('.bigImage').hide();
			$(bigId).fadeIn();
		}
	});
});

$(function() {	
	$('#controls2 li').click(function() {
		var clickedId = this.id;
		var splitId = clickedId.split('-');
		var bigId = '#bigImage-' + splitId[1];
		if($(bigId).css('display') == 'none') {
			$('.bigImage2').hide();
			$(bigId).fadeIn();
		}
	});
});