// $(function() {
// 	$('#nav-01')
// 		.css( {backgroundPosition: "-39px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-39px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-39px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-02')
// 		.css( {backgroundPosition: "-112px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-112px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-112px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-03')
// 		.css( {backgroundPosition: "-189px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-189px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-189px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-04')
// 		.css( {backgroundPosition: "-269px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-269px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-269px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-05')
// 		.css( {backgroundPosition: "-353px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-353px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-353px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-06')
// 		.css( {backgroundPosition: "-458px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-458px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-458px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-07')
// 		.css( {backgroundPosition: "-617px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-617px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-617px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-08')
// 		.css( {backgroundPosition: "-725px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-725px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-725px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-09')
// 		.css( {backgroundPosition: "-795px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-795px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-795px -48px)"}, 
// 				{duration:350})
// 			})
// 	$('#nav-10')
// 		.css( {backgroundPosition: "-850px -48px"} )
// 		.mouseover(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-850px 0)"}, 
// 				{duration:350})
// 			})
// 		.mouseout(function(){
// 			$(this).stop().animate(
// 				{backgroundPosition:"(-850px -48px)"}, 
// 				{duration:350})
// 			})
// });

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

    $('img.imgSmall').hover(function() {
        $(this).stop().animate({ "opacity": 1 });
    }, function() {
        $(this).stop().animate({ "opacity": .5 });
    });
	
	var smallImageCount = $('.imgSmall');
	
	for (var x=1; x<=smallImageCount.length; x++) {
		var imgBigID = '#imgBig' + x;
		var imgSmallID = '#imgSmall' + x;
	}	
	
	$('#locationGal 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() {
//     $("li:has(ul)").hover(function() {
//         $(this).children("ul").css("display", "none");
//         $(this).children("ul").slideDown();
//      },function() {
//         $(this).children("ul").slideUp();
//      });
// });