$(function(){
	if(!$.browser.msie){
	$('#gallery img').animate({
		"opacity" : 0.75
	});
	$('#gallery img').hover(function() {
		$(this).stop().animate({
			"opacity" : 1
			});
		},
		function() {
		$(this).stop().animate({
			"opacity" : 0.75
			});
	});
	
	var prevnum = 1;
	
/*	$('#gallery-navigation a').click(function(){
		var linkid= $(this).attr('id');
		var pagenum = linkid.slice(7);
		
		if(linkid=='galleryall'){
		$('#gallery').slideUp(500, function(){
		$('#gallery').load('gallery.php #gallery', function(){
	                $('#gallery').css({"padding-left" : 0});
			$('#gallery').slideDown(3000);
			$('#gallery img').animate({"opacity" : 0.75});
			$('#gallery img').hover(
				function() {$(this).stop().animate({"opacity" : 1});
				},
				function() {$(this).stop().animate({"opacity" : 0.75});
				});
			});
		});
		}
		
		else{
		if(pagenum < prevnum){
		$('#gallery').animate({"left" : "800px"}, 800, function(){
		$('#gallery').load(linkid + '.php #gallery', function(){
			$('#gallery').css({"padding-left" : 0});
			$('#gallery').css({"left" : -800});
			$('#gallery').animate({"left" : "0px"}, 800);
			$('#gallery img').animate({"opacity" : 0.75});
			$('#gallery img').hover(
				function() {$(this).stop().animate({"opacity" : 1});
				},
				function() {$(this).stop().animate({"opacity" : 0.75});
				});
			});
		});
		}
		else if(pagenum > prevnum){
		$('#gallery').animate({"right" : "800px"}, 800, function(){
		$('#gallery').load(linkid + '.php #gallery', function(){
			$('#gallery').css({"padding-left" : 0});
			$('#gallery').css({"right" : -800});
			$('#gallery').animate({"right" : "0px"}, 800);
			$('#gallery img').animate({"opacity" : 0.75});
			$('#gallery img').hover(
				function() {$(this).stop().animate({"opacity" : 1});
				},
				function() {$(this).stop().animate({"opacity" : 0.75});
				});
			});
		});
		}
		}
		prevnum=pagenum;
		return false;
	});
	}*/
});