$(document).ready(function(){  
	
	$('div.body').delay(100).fadeIn('slow');
	
	
	
	$("img.showagenda").click(function() { 
   
   		 if($("div.hidden").css('display') == 'none')
         	$("div.hidden").slideDown('fast');
		 else
         	$("div.hidden").slideUp('fast');
		 
     });  
	
	
	
	$("div.pressRelease a.more").click(function() { 
		
		if($(this).html() == 'Read full article')
		{
			 $(this).parent().find('div.pressReleaseText').hide();
			 $(this).parent().find('div.pressReleaseFull').slideDown('fast');
			 
			 $(this).html('Close full article');
		}
		else
		{
   		 	$(this).parent().find('div.pressReleaseFull').slideUp('show');
   		 	$(this).parent().find('div.pressReleaseText').show();
		 
		 	$(this).html('Read full article');
		}
				 
     });  
	
	
	
	$("a#show").click(function() { 
		
   		 var target = $(this).attr('rel');
		 
   		 $('a#show').removeClass('largeActive');
   		 $(this).addClass('largeActive');	
		 
   		 $('div.contentHide').fadeOut('fast');
   		 $('div#'+target).fadeIn('slow');		 
		 
     });  
	
	
	
	$("div.feature img").mouseenter(function() { 
		
   		 var file = $(this).attr('src');
		 
		 file = file.replace('High', '');
		 $(this).attr('src', file);
		 
     });  
	
	$("div.feature img").mouseleave(function() { 
		
   		 var file = $(this).attr('src');
		 
		 file = file.replace('feature', 'featureHigh');
		 $(this).attr('src', file);
		 
     });  
	
	
	
	$("a.social").mouseenter(function() { 
		
   		 var file = $(this).find('img').attr('src');
		 
		 file = file.replace('icon', 'iconHigh');
		 $(this).find('img').attr('src', file);
		 
     });  
	
	$("a.social").mouseleave(function() { 
		
   		 var file = $(this).find('img').attr('src');
		 
		 file = file.replace('High', '');
		 $(this).find('img').attr('src', file);
		 
     });  
	
});
