	var $popname2=jQuery.noConflict();

 $popname2(document).ready(function() {
	

	//Homepage Ticket Animations
	$popname2(".eventsTickets > li .ticket").hover(
		function () {
			if($popname2.browser.msie){
				$popname2(this).stop().animate({top:'-67px', opacity:1});
			}else{
				$popname2(this).stop().animate({top:'-67px', opacity:1});
			}
		},
		function () {
			$popname2(this).stop().animate({top:'0', opacity:1}, 800, "easeOutBounce");			
		}
	);

	
	
	//Collapse Areas
	$popname2('.collapse').hide();
	$popname2('.collapseHeader').toggle( function() {
		$popname2(this).next('.collapse').slideDown();
		$popname2(this).css('background', 'url("presentation/images/arrow_down.jpg") no-repeat 0% 50%');}, function() {
		$popname2(this).next('.collapse').slideUp();
		$popname2(this).css('background', 'url("presentation/images/arrow_right.jpg") no-repeat 0% 50%');
	});
	
	//Staff Component
	var openBoard = false;
	var openStaff = false;
	
	$popname2('.staffComp .board a.toggle').click( function() {
		
		if(openBoard==false){
			$popname2('.staffComp .board a.toggle').text('show board');
			$popname2('.staffComp .staff a.toggle').text('show staff');
			$popname2('.boardOverlay, .staffOverlay').css('display', 'none');
			openStaff=false;
			openBoard=false;
			
			$popname2('.boardOverlay').css('display', 'block');
			$popname2(this).text('hide board');
			openBoard = true;
		}else{
			$popname2('.staffComp .board a.toggle').text('show board');
			$popname2('.staffComp .staff a.toggle').text('show staff');
			$popname2('.boardOverlay, .staffOverlay').css('display', 'none');
			
			$popname2(this).text('show board');
			openBoard = false;
		}
		return false;
	});
	
	$popname2('.staffComp .staff a.toggle').click( function() {
		
		if(openStaff==false){
			$popname2('.staffComp .board a.toggle').text('show board');
			$popname2('.staffComp .staff a.toggle').text('show staff');
			$popname2('.boardOverlay, .staffOverlay').css('display', 'none');
			openStaff=false;
			openBoard=false;
			
			$popname2('.staffOverlay').css('display', 'block');
			$popname2(this).text('hide staff');
			openStaff = true;
		}else{
			$popname2('.staffComp .board a.toggle').text('show board');
			$popname2('.staffComp .staff a.toggle').text('show staff');
			$popname2('.boardOverlay, .staffOverlay').css('display', 'none');
			
			$popname2(this).text('show staff');
			openStaff = false;
		}
		return false;
	});
	
	//Homepage Slider
	/*
	$popname2('#captions').cycle({ 
		fx:     'fade', 
		timeout: 10000, 
		next:   '.nextButton', 
		prev:   '.prevButton'
	});
	*/
	//Homepage Tickets Links
	/*
	$popname2(".eventsTickets > li .ticket, .ticketsComp ul li").css('cursor', 'pointer').click(function(){
		var tLink = $popname2(this).find('h4').attr('title');
		window.location.href = tLink;
	});
	*/
	//Standard Template Slider
	/*
	$popname2('#banner ul').cycle({ 
		fx:     'fade', 
		pager:  '#bannerNav' 
	});
	*/
	//Testimonials Slider
	/*
	$popname2('.testimonials ul').cycle({ 
		fx:     'scrollRight', 
		timeout: 0, 
		next:   '.testimonialsNext', 
		prev:   '.testimonialsPrev'
	});
	*/
	//Modal Window
	$popname2('a[name=modal]').click(function(){
		var modal_id = $popname2(this).attr('class');
		show_modal(modal_id);
	});

	$popname2('.close').click(function(e){
		close_modal();
		$popname2('.staffComp .board a.toggle').text('show board');
		$popname2('.staffComp .staff a.toggle').text('show staff');
		$popname2('.boardOverlay, .staffOverlay').css('display', 'none');
		openStaff=false;
		openBoard=false;
		e.preventDefault();
		
	});

	function close_modal(){
		$popname2('#mask').fadeOut(500);
		$popname2('.modal').fadeOut(500);
	};

	function show_modal(modal_id){
		$popname2('#mask').css({ 'display' : 'block', opacity : 0});
		$popname2('#mask').fadeTo(500,0.8);
		$popname2('.'+modal_id).css({top: '60px', left:$popname2(window).width()/2}).fadeIn(500);
	};
	
	//Media Carousel
	/*
	$popname2('.cItems').jCarouselLite({
		btnNext: '.carNext',
		btnPrev: '.carPrev',
		circular: false
	});
	*/
	/*
	$popname2('.cItemsTwo').jCarouselLite({
		btnNext: '.carNextTwo',
		btnPrev: '.carPrevTwo',
		circular: false
	});
	$popname2('.cItemsThree').jCarouselLite({
		btnNext: '.carNextThree',
		btnPrev: '.carPrevThree',
		circular: false
	});
	*/
	$popname2('.carousel').css('height', '275px');
	
	var vidClicked = false;
	var identifier = null;
	var vidInfo = null;
	
	$popname2('.carousel li a').click( function() {
		
		//IE8 Bug Fix
		if($popname2.browser.msie){
			$popname2('.pause').click();
			if(vidClicked == false){
				identifier = $popname2(this).attr('rel');
				vidInfo = $popname2('#'+identifier).find('.vid').html();
				vidClicked = true;
			}else{
				$popname2('#'+identifier).find('.vid').empty().html(vidInfo);
				identifier = $popname2(this).attr('rel');
				vidInfo = $popname2('#'+identifier).find('.vid').html();
			}
		}
		
		
		$popname2('.mediaDetails').hide();
		$popname2('.carousel').css('height', '275px');
		$popname2(this).parents('div').css('height', '100%');
		var detailsID = $popname2(this).attr('rel');
		$popname2('#'+detailsID).fadeIn();
		
		removeActiveWL();
		$popname2(this).find('img').css({opacity: 1});
		$popname2(this).find('img').parents('li').addClass('activeWL');
		
		return false;
	});
	
	var removeActiveWL = function(){
		$popname2('.carousel li a').each(function () {
			$popname2(this).find('img').animate({opacity: 0.4}, 0);
			$popname2(this).find('img').parents('li').removeClass('activeWL');
		});
	}
	
	removeActiveWL();
	
	$popname2('.carousel li a').hover(function () {
		$popname2(this).find('img').animate({opacity: 1}, 250);}, function() {
		
		if($popname2(this).find('img').parents('li').hasClass('activeWL')){
		}else{
			$popname2(this).find('img').animate({opacity: 0.4}, 250);
		}
	});
	
	
	//Media Slideshow
	var eachSlideShowContainer = $popname2('.carousel').eq(2).children('.mediaDetails');
	
	$popname2(eachSlideShowContainer).each(function(){
		var $popname2this = $popname2(this).find('.slideshow');
		$popname2this.cycle({
			fx: 'scrollHorz',
			pause: true,
			next: '.sliderNavRight',
			prev: '.sliderNavLeft'  
		});
	});
	
	$popname2('.mediaDetails').hover(function(){
		$popname2('.sliderNavLeft, .sliderNavRight').stop().css('opacity', 0).show().animate({opacity: 1}, 750);
	}, function(){
		$popname2('.sliderNavLeft, .sliderNavRight').stop().animate({opacity: 0}, 750).hide();
	});
	
	//Music Player
	/*
	 $popname2("#playlist1, #playlist2, #playlist3, #playlist4, #playlist4, #playlist6, #playlist7, #playlist8, #playlist9, #playlist10").playlist(
	 	{
			playerurl: "/presentation/swf/drplayer.swf"
		}
	 );
	*/
	//Search Box
	$popname2('#topBar input[type="text"]').css('opacity', .5);
	$popname2('#topBar input[type="text"]').focus(function() {
  		$popname2('#topBar input[type="text"]').animate({opacity:1}, 300);
	});
	$popname2('#topBar input[type="text"]').blur(function() {
  		$popname2('#topBar input[type="text"]').animate({opacity:.5}, 300);
	});
	
	//Expandable Content Block/////////////////////////////
	
	$popname2('.sbExpandableBlock p').eq(1).nextAll('p, ul, ol').hide();
	
	$popname2('.sbExpandableBlock a').live('click', function(e){
		if($popname2('.sbExpandableBlock a').text() == 'Show More'){
			$popname2('.sbExpandableBlock a').html('<img src="/presentation/images/whiteArrowUp.jpg" alt="" width="11" height="7" />Hide');
		}else if($popname2('.sbExpandableBlock a').text() == 'Hide'){
			$popname2('.sbExpandableBlock a').html('<img src="/presentation/images/whiteArrowDown.jpg" alt="" width="11" height="7" />Show More');
		};
		e.preventDefault();
		$popname2('.sbExpandableBlock p').eq(1).nextAll('p, ul, ol').slideToggle('slow');
	});
	
	
	//Press Releases /////////////////////////////
	
	$popname2('.sbgWrap').eq(2).nextAll('div').hide();
	
	$popname2('.showAllsbg').live('click', function(e){
		if($popname2('.showAllsbg').text() == 'show more'){
			$popname2('.showAllsbg').html('<img src="/presentation/images/greenArrowUp.jpg" alt="" />hide');
		}else if($popname2('.showAllsbg').text() == 'hide'){
			$popname2('.showAllsbg').html('<img src="/presentation/images/greenArrowDown.jpg" alt="" />show more');
		};
		e.preventDefault();
		$popname2('.sbgWrap').eq(2).nextAll('div').slideToggle('slow');
	});
	
	
	//LOGO ROTATOR/////////////////////////////
	
	// variables
	var logo = Math.ceil($popname2('.sbImageRotator ul').children('li').length)-1;
	var logoPos = 0;
	
	//Hide all logos but the first
	$popname2('.sbImageRotator ul li').eq(0).nextAll().addClass('sbImageHide');
	
	var changeLogo = function(){
		if(logoPos < logo){
			if($popname2.browser.msie){
				$popname2('.sbImageRotator ul li').eq(logoPos).addClass('sbImageHide');
				logoPos++;
				$popname2('.sbImageRotator ul li').eq(logoPos).removeClass('sbImageHide');
			}else{
				$popname2('.sbImageRotator ul li').eq(logoPos).animate({opacity:.3}, 300,function(){
					$popname2(this).addClass('sbImageHide');
					logoPos++;
					$popname2('.sbImageRotator ul li').eq(logoPos).css({opacity:0}).removeClass('sbImageHide').animate({opacity:1}, 500);
				})
			}
		}else if(logoPos == logo){
			if($popname2.browser.msie){
				$popname2('.sbImageRotator ul li').eq(logoPos).addClass('sbImageHide');
				logoPos = 0;
				$popname2('.sbImageRotator ul li').eq(logoPos).removeClass('sbImageHide');
			}else{
				$popname2('.sbImageRotator ul li').eq(logoPos).animate({opacity:.3}, 300,function(){
					$popname2(this).addClass('sbImageHide');
					logoPos = 0;
					$popname2('.sbImageRotator ul li').eq(logoPos).css({opacity:0}).removeClass('sbImageHide').animate({opacity:1}, 500);
				})
			}
	
		}
				  
	}// end of changeLogo
	
	setInterval(function(){
	  //Logo
	  if(logo > 0){
	  changeLogo();
	  };
	}, 6500);
	
	
	//TEXT TICKER/////////////////////////////
	
	// variables
	var txt = Math.ceil($popname2('.sbTicker ul').children('li').length)-1;
	var txtPos = 0;
	
	//Hide all logos but the first
	$popname2('.sbTicker ul li').eq(0).nextAll().addClass('sbTickerHide');
	
	var changeTxt = function(){
		if(txtPos < txt){
			if($popname2.browser.msie){
				$popname2('.sbTicker ul li').eq(txtPos).addClass('sbTickerHide');
				txtPos++;
				$popname2('.sbTicker ul li').eq(txtPos).removeClass('sbTickerHide');
			}else{
				$popname2('.sbTicker ul li').eq(txtPos).animate({opacity:.3}, 300,function(){
					$popname2(this).addClass('sbTickerHide');
					txtPos++;
					$popname2('.sbTicker ul li').eq(txtPos).css({opacity:0}).removeClass('sbTickerHide').animate({opacity:1}, 500);
				})
			}
		}else if(txtPos == txt){
			if($popname2.browser.msie){
				$popname2('.sbTicker ul li').eq(txtPos).addClass('sbTickerHide');
				txtPos = 0;
				$popname2('.sbTicker ul li').eq(txtPos).removeClass('sbTickerHide');
			}else{
				$popname2('.sbTicker ul li').eq(txtPos).animate({opacity:.3}, 300,function(){
					$popname2(this).addClass('sbTickerHide');
					txtPos = 0;
					$popname2('.sbTicker ul li').eq(txtPos).css({opacity:0}).removeClass('sbTickerHide').animate({opacity:1}, 500);
				})
			}
	
		}
				  
	}// end of changeLogo
	
	setInterval(function(){
	  //txt
	  if(txt > 0){
	  changeTxt();
	  };
	}, 6500);
	
	
	// CSS COMPLIANT EXTERNAL LINK FUNCTION (OPEN NEW POP-UP) 
	if (document.getElementsByTagName) {
		var anchors = document.getElementsByTagName("a");
		for (var i=0; i<anchors.length; i++) {
			var anchor = anchors[i];
			anchor.hideFocus = true;
			if (anchor.getAttribute("href") && (anchor.getAttribute("rel") == "external" || anchor.getAttribute("rel") == "alternate" || anchor.getAttribute("href").indexOf(".pdf") > 4)) anchor.target = "_blank";
		}
	}
	
	//Calander Tip
	$popname2('.cal-event-title-month a').hover(function(){
		$popname2(this).next('.details').fadeIn();
	}, function(){
		$popname2(this).next('.details').fadeOut();
	});
	
	
	//Strip Blog Styles
	$popname2('#blogContent span, #blogContent img').removeAttr("style");
	
	//Contact Map Switch
	$popname2('.contact-us #banner ul li img').css('cursor', 'pointer').click(function(){	
		$popname2(this).parents('li').html("<iframe width='615' height='296' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=boston+childrens+chorus&amp;sll=40.957896,-72.962635&amp;sspn=0.007956,0.033023&amp;ie=UTF8&amp;hq=childrens+chorus&amp;hnear=Boston,+Suffolk,+Massachusetts&amp;cid=5733464206855096789&amp;ll=42.354865,-71.065836&amp;spn=0.022009,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed'></iframe>").css('cursor', 'pointer');
	})
	
})//end of dom ready
	
