$(document).ready(function(){

/* MENU E FUNDO DESLIZANTE ========================================================================== */
$(function(){
 $(window).scroll(function() {
  var offsetCenter = $('#palco').offset().top;
   if (getScrollXY() >= offsetCenter) {
     $('#col_esq').addClass('fixedMenu');
        } else {
            $('#col_esq').removeClass('fixedMenu');
        }
    });
});

$(function(){
 $(window).scroll(function() {
  var offsetCenter = $('#palco').offset().top;
   if (getScrollXY() >= offsetCenter) {
	   $('#tudo').addClass('tudo_slide');
        } else {
		 $('#tudo').removeClass('tudo_slide');
        }
    });
});

function getScrollXY() {
  var scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
  } else if( document.body && document.body.scrollTop ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
  } else if( document.documentElement && document.documentElement.scrollTop ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
  }
  return scrOfY ;
}

/* ÁLBUNS ============================================================================================*/
$("#fot_max img").hide();
$("#fot_max p").hide();
$("#fot_max img#fot_1_max").show();
$("#fot_max p#fot_1_leg").show();
$("#fot_min div").click(function(){
 var ver_foto = $(this).attr("id");
 $("#fot_max img").hide();
 $("#fot_max p").hide();
 $("#"+ver_foto+"_max").animate({'opacity':'show'});
 $("#"+ver_foto+"_leg").animate({'opacity':'show'});
});

});// fecha document
