// CUFON

Cufon.replace('#nav');
Cufon.replace('.upcoming');
Cufon.replace('.intro');
Cufon.replace('.noteBig');
Cufon.replace('.noteSmall');
Cufon.replace('.noteTitle');
Cufon.replace('.pastPerf h2');
Cufon.replace('.bioBar');
Cufon.replace('#ensemble-page h2');
Cufon.replace('.pressBar');
Cufon.replace('#mason h2');
Cufon.replace('h3');
Cufon.replace('.sidetitle');
Cufon.replace('label');


$(document).ready(function() { 
$('ul.nav').superfish(); 




// PERFORMANCES

var galleryBool = false;
				
					$('.thumb').click(function(){

						$("#galleryMain").slideToggle("slow");
						
					});
				
				xpos="0";
				ypos="0";
				
				$('#galleryTab').hover(function(){
						xpos="93";
						
						$(this).css("background-position", xpos+'px ' + ypos+'px')},
						function(){
						
						xpos="0";
						
						$(this).css("background-position", xpos+'px ' + ypos+'px')
				});
				
												
				$('.clicky').click(function(e){
					
					e.preventDefault();
					galleryBool = !galleryBool;
					if(galleryBool){
						ypos="23";
						xpos="0";
					$('#galleryTab').css("background-position", xpos+'px ' + ypos+'px');
					 
					$('#galleryFeatured').show();
					
					$('#feature').hide();
					
					}else{
					ypos="0";
					xpos="0";
					$('#galleryTab').css("background-position", xpos+'px ' + ypos+'px');
					$('#galleryFeatured').hide();
					
					$('#feature').show();
					}
					
				});
				
				

// THE ENSEMBLE

$(".artistName").each(function(i){

var fullName = $(this).html();
var shortName = fullName.substr(0, fullName.indexOf(" "));
$(this).html(shortName);
});  


$(".bioPics").hover(function(){
        $(this).children().css("display","inline");} , 
                        function(){
        $(this).children(".artistName").css("display","none");
});


// PRESS & REVIEWS


//   TOP
   
    $('.top').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });


// Select SEARCH bar text
$('#keywords').click(function() {
  $('#keywords').select();
});



// End JQUERY

 
 
}); 

