$(document).ready(function(){
    $(".fullevent").hide();
    $("#fullbio").hide();
	$("#navtop li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
	$(".gallery li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
	$("#search_results .searchlink").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
 	
    $("#artist_profile p.readon").click(function () {
    	 $("#fullbio").slideToggle("fast", function(){ 
                                if  ($(this).is(':visible')) { 
                                $('#artist_profile p.readon a').html('Hide'); 
                                $('#artist_profile p.readon').addClass('open');                           } 
                                else { 
      $('#artist_profile p.readon a').html('Read on');
      $('#artist_profile p.readon').removeClass('open');
       							}                         
       return false;});
      return false;
    });
    	
 
    $("#event_list h3").click(function () {
    var id = $(this).attr('id');
    	 $("#fullevent" + id).slideToggle("fast", function(){                    
                                if  ($("#fullevent" + id).is(':hidden')) { 
       $('#event_list h3#' + id).removeClass('open');
       							}
       							else { 
       $('#event_list h3#' + id).addClass('open');
       							}
						       return false;});
      return false;
    });	      	
     
    $('#mce-EMAIL').click(function() {
        $(this).select();
    });
        
    $('.search').click(function() {
        $(this).select();
    });

});
