$(document).ready(function() {
swapImages();
});

function animateNav(){
    
    if($.browser.msie){
    
        
    }else{
        
   
    $('#nav1,#nav2,#nav3,#nav4,#nav5,#nav6').hide();
    $('#nav1').fadeIn(function(){

        $('#nav2').fadeIn(function(){

             $('#nav3').fadeIn(function(){

                $('#nav4').fadeIn(function(){

                     $('#nav5').fadeIn(function(){

                        $('#nav6').fadeIn()

                    });

                });

            });

        });

    });
     }
    
}  

function swapImages(){
    
$(function() {
    $("#imgnav img")

        .mouseover(function() {
            if (!$(this).hasClass('active')){
               var src = $(this).attr("src").replace(".png","_on.png");
            $(this).attr("src", src); 
            }
            
        })
        .mouseout(function() {
            if (!$(this).hasClass('active')){
            var src = $(this).attr("src").replace("_on", "");
            $(this).attr("src", src);
            }
        });
});

}



function animateHome(){
     $('#pic1,#pic2').hide();
  $('#pic1').fadeIn(500,function(){
    $('#pic2').fadeIn(500);
 
  });
}




function animateBeer(){
     $('#beer1,#beer2,#beer3').hide();
        $('#beer1').fadeIn(300,function(){
                  $('#beer3').fadeIn(300,function(){     
                      $('#beer2').fadeIn(300,function(){                
                });
        });
    });
}


var counter = 0;
function rotateIE(arr){
	if(counter==0){
	    ims[0].show();
	    ims[1].hide();
	    ims[2].hide();
	    counter++;
	}else if(counter==1){
	    ims[0].hide();
	    ims[1].show();
	    ims[2].hide();
	    counter++;	    
	}else{
	    ims[0].hide();
	    ims[1].hide();
	    ims[2].show();
	    counter=0;
	}
}  







