$(document).ready(function(){
	$("h1:contains('Global Home')").hide();
	
   $("#edit-field-image-0-ahah-wrapper").hide();
   $("#edit-field-showimage-value-wrapper").hide();
   
   $(".vertical-tabs-pane fieldset:first").addClass("date-form");
   $("legend:contains('Date:')").addClass("date-legend");
   $(" .date-form").hide();
   
   $("fieldset.location").hide();
   $("#edit-field-englishtitle-0-value-wrapper").hide();
   $("#edit-field-englishcity-0-value-wrapper").hide();
   $("#edit-field-gallery-link-0-value-wrapper").hide();
   $("#edit-field-results-link-0-value-wrapper").hide();
   
   $("#edit-field-event-type-value-wrapper").hide();
   $("label:contains('Event type/News category')").hide();
   $("#multiselect_labels").hide();
   $("#multiselect_available").hide();
   $("#multiselect_btns").hide();
   $("#label_unselected").hide();
   $("#label_selected").hide();

   $("label:contains('Choose where to display details:')").hide();
   $("#edit-field-display-value-no-wrapper").hide();
   $("#edit-field-display-value-block-wrapper").hide();
   $("#edit-field-display-value-body-wrapper").hide();	
   $(".description:contains('If 'Do not display on page' is selected')").hide();
   
   $("label:contains('Entry method:')").hide();
   $("#edit-field-entrymethod-value--wrapper").hide();
   $("#edit-field-entrymethod-value-online-wrapper").hide();
   $("#edit-field-entrymethod-value-form-wrapper").hide();
    
   $("#edit-field-online-reg-url-0-value-wrapper").hide();
   $("#edit-field-entryform-link-0-value-wrapper").hide();
   $("#edit-field-contact-name-0-value-wrapper").hide();
   $("#edit-field-contact-phone-0-value-wrapper").hide();
   $("#edit-field-contact-email-0-email-wrapper").hide();
    $("#edit-field-showgmap-value-wrapper").hide();
   
   $('#edit-field-mark-value-no').click(function () { 
   	
           $("#edit-field-image-0-ahah-wrapper").hide("slow");
           $("#edit-field-showimage-value-wrapper").hide("slow");
           
           $(".date-form").hide("slow");
           
           $("fieldset.location").hide("slow");
           $("#edit-field-englishtitle-0-value-wrapper").hide("slow");
           $("#edit-field-englishcity-0-value-wrapper").hide("slow");
           $("#edit-field-gallery-link-0-value-wrapper").hide("slow");
           $("#edit-field-results-link-0-value-wrapper").hide("slow");           
           
           $("#edit-field-event-type-value-wrapper").hide("slow");
           $("label:contains('Event type/News category')").hide("slow");
           $("#multiselect_labels").hide("slow");
           $("#multiselect_available").hide("slow");
           $("#multiselect_btns").hide("slow");
           $("#label_unselected").hide("slow");
           $("#label_selected").hide("slow");
   
           $("label:contains('Choose where to display details:')").hide("slow");
           $("#edit-field-display-value-no-wrapper").hide("slow");
           $("#edit-field-display-value-block-wrapper").hide("slow");
           $("#edit-field-display-value-body-wrapper").hide("slow");
           
           $("label:contains('Entry method')").hide("slow");
           $("#edit-field-entrymethod-value--wrapper").hide("slow");
           $("#edit-field-entrymethod-value-online-wrapper").hide("slow");
           $("#edit-field-entrymethod-value-form-wrapper").hide("slow");
                
           $(".description:contains('If 'Do not display on page' is selected')").hide("slow");	 
            
           $("#edit-field-online-reg-url-0-value-wrapper").hide();
           $("#edit-field-entryform-link-0-value-wrapper").hide("slow");
           $("#edit-field-contact-name-0-value-wrapper").hide();
           $("#edit-field-contact-phone-0-value-wrapper").hide();
           $("#edit-field-contact-email-0-email-wrapper").hide();  
           $("#edit-field-showgmap-value-wrapper").hide();          
    });
    
    $('#edit-field-mark-value-news').click(function () { 
           $("#edit-field-image-0-ahah-wrapper").show("slow");
           $("#edit-field-showimage-value-wrapper").show("slow");
           $("#edit-field-englishtitle-0-value-wrapper").show("slow");
           $("#edit-field-englishcity-0-value-wrapper").show("slow");
           $("#edit-field-gallery-link-0-value-wrapper").show("slow");
           $("#edit-field-results-link-0-value-wrapper").show("slow");      
           
           $(".date-form").show("slow");
           $("legend:contains('Date:')").show("slow");
           $("#edit-field-date-value-wrapper").hide("slow");
           $("#edit-field-date-value2-wrapper").show("slow");
           $(".date-clear").hide("slow");
           $("label:contains('To date:')").hide("slow");
           
           $("fieldset.location").show("slow");
           $("#edit-field-location-0-name-wrapper").hide("slow");
           $("#edit-field-location-0-city-wrapper").show("slow");
           $("#edit-field-location-0-country-wrapper").show("slow");
           $("#gmap-auto1map-gmap0").hide("slow");
           $("div#gmap-auto1map-locpick_latitude0-wrapper").hide("slow");
           $("div#gmap-auto1map-locpick_longitude0-wrapper").hide("slow");
           $(".description:contains('If you wish to supply your own latitude and longitude')").hide("slow");
           $(".description:contains('You may set the location by clicking on the map')").hide("slow");

           $("#edit-field-event-type-value-wrapper").show("slow");
           $("label:contains('Event type/News category')").show("slow");
           $("#multiselect_labels").show("slow");
           $("#label_unselected").show("slow");
           $("#label_selected").show("slow");
           $("#multiselect_available").show("slow");
           $("#multiselect_btns").show("slow");
   
           $("label:contains('Choose where to display details:')").hide("slow");
           $("#edit-field-display-value-no-wrapper").hide("slow");
           $("#edit-field-display-value-block-wrapper").hide("slow");
           $("#edit-field-display-value-body-wrapper").hide("slow");
           $(".description:contains('If 'Do not display on page' is selected')").hide("slow");	 
           
           $("#edit-field-online-reg-url-0-value-wrapper").hide();
           $("#edit-field-entryform-0-value-wrapper").hide();
           $("#edit-field-contact-name-0-value-wrapper").hide();
           $("#edit-field-contact-phone-0-value-wrapper").hide();
           $("#edit-field-contact-email-0-email-wrapper").hide();
           $("#edit-field-showgmap-value-wrapper").hide();
           
           $("label:contains('Entry method:')").hide("slow");
           $("#edit-field-entrymethod-value--wrapper").hide("slow");
           $("#edit-field-entrymethod-value-online-wrapper").hide("slow");
           $("#edit-field-entrymethod-value-form-wrapper").hide("slow");
           	 
    });
    
    
    $('#edit-field-mark-value-event').click(function () { 
    	
    	   
           $("#edit-field-image-0-ahah-wrapper").show("slow");
           $("#edit-field-showimage-value-wrapper").show("slow");
           $("#edit-field-englishtitle-0-value-wrapper").show("slow");
           $("#edit-field-englishcity-0-value-wrapper").show("slow");
           $("#edit-field-gallery-link-0-value-wrapper").hide("slow");
           $("#edit-field-results-link-0-value-wrapper").hide("slow"); 
           $(".date-form").show("slow");
           $("legend:contains('Date:')").show("slow");
           $("#edit-field-date-value-wrapper").show("slow");
           $(".date-clear").show("slow");
           $("label:contains('To date:')").show("slow");


           $("fieldset.location").show("slow");
           $("#edit-field-location-0-name-wrapper").show("slow");
           $("#edit-field-location-0-city-wrapper").show("slow");
           $("#edit-field-location-0-country-wrapper").show("slow");
           $("#gmap-auto1map-gmap0").show("slow");
           $("div#gmap-auto1map-locpick_latitude0-wrapper").hide("slow");
           $("div#gmap-auto1map-locpick_longitude0-wrapper").hide("slow");
           $(".description:contains('If you wish to supply your own latitude and longitude')").hide("slow");
           $(".description:contains('You may set the location by clicking on the map')").show("slow");

           $("#edit-field-event-type-value-wrapper").show("slow");
           $("label:contains('Event type/News category')").show("slow");
           $("#multiselect_labels").show("slow");
           $("#multiselect_available").show("slow");
           $("#multiselect_btns").show("slow");
           $("#label_unselected").show("slow");
           $("#label_selected").show("slow");           
   
           $("label:contains('Choose where to display details:')").show("slow");
           $("#edit-field-display-value-no-wrapper").show("slow");
           $("#edit-field-display-value-block-wrapper").show("slow");
           $("#edit-field-display-value-body-wrapper").show("slow"); 
           $(".description:contains('If 'Do not display on page' is selected')").show("slow");
           
           $("label:contains('Entry method:')").show("slow");
           $("#edit-field-entrymethod-value--wrapper").show("slow");
           $("#edit-field-entrymethod-value-online-wrapper").show("slow");
           $("#edit-field-entrymethod-value-form-wrapper").show("slow");
           $("#edit-field-online-reg-url-0-value-wrapper").hide("slow");
           $("#edit-field-entryform-link-0-value-wrapper").hide("slow");
            
           
    });
    
    
    $('#edit-field-mark-value-blog').click(function () { 
    	
           $("#edit-field-image-0-ahah-wrapper").show("slow");
           $("#edit-field-showimage-value-wrapper").show("slow");
           $("#edit-field-englishtitle-0-value-wrapper").hide("slow");
           $("#edit-field-englishcity-0-value-wrapper").hide("slow");
           $("#edit-field-gallery-link-0-value-wrapper").hide("slow");
           $("#edit-field-results-link-0-value-wrapper").hide("slow");           
           
      
           $("#edit-field-event-type-value-wrapper").show("slow");
           $("label:contains('Event type/News category')").show("slow");
           $("#multiselect_labels").show("slow");
           $("#label_unselected").show("slow");
           $("#label_selected").show("slow");
           $("#multiselect_available").show("slow");
           $("#multiselect_btns").show("slow");
   
           $(".date-form").hide("slow");
           $("fieldset.location").hide("slow");
           
           $("label:contains('Choose where to display details:')").hide("slow");
           $("#edit-field-display-value-no-wrapper").hide("slow");
           $("#edit-field-display-value-block-wrapper").hide("slow");
           $("#edit-field-display-value-body-wrapper").hide("slow");
           
           $("label:contains('Entry method')").hide("slow");
           $("#edit-field-entrymethod-value--wrapper").hide("slow");
           $("#edit-field-entrymethod-value-online-wrapper").hide("slow");
           $("#edit-field-entrymethod-value-form-wrapper").hide("slow");
                
           $(".description:contains('If 'Do not display on page' is selected')").hide("slow");	 
            
           $("#edit-field-online-reg-url-0-value-wrapper").hide();
           $("#edit-field-entryform-link-0-value-wrapper").hide("slow");
           $("#edit-field-contact-name-0-value-wrapper").hide();
           $("#edit-field-contact-phone-0-value-wrapper").hide();
           $("#edit-field-contact-email-0-email-wrapper").hide();  
           $("#edit-field-showgmap-value-wrapper").hide();      
           	 
    });
    
        
    $('#edit-field-display-value-no').click(function () { 
    	   	
        $("#edit-field-contact-name-0-value-wrapper").hide("slow");
        $("#edit-field-contact-phone-0-value-wrapper").hide("slow");
        $("#edit-field-contact-email-0-email-wrapper").hide("slow");
        $("#edit-field-showgmap-value-wrapper").hide("slow");
    });
    
        
    $('#edit-field-display-value-block').click(function () { 
    	
        $("#edit-field-contact-name-0-value-wrapper").show("slow");
        $("#edit-field-contact-phone-0-value-wrapper").show("slow");
        $("#edit-field-contact-email-0-email-wrapper").show("slow");
        $("#edit-field-showgmap-value-wrapper").show("slow");
    });
    
        
    $('#edit-field-display-value-body').click(function () {    	
    	
        $("#edit-field-contact-name-0-value-wrapper").show("slow");
        $("#edit-field-contact-phone-0-value-wrapper").show("slow");
        $("#edit-field-contact-email-0-email-wrapper").show("slow");
        $("#edit-field-showgmap-value-wrapper").show("slow");
    });
    
    $('#edit-field-entrymethod-value-online').click(function () {    	
    	
        $("#edit-field-online-reg-url-0-value-wrapper").show("slow");

    });
    
    $('#edit-field-entrymethod-value-form').click(function () {    	
    	
        $("#edit-field-entryform-link-0-value-wrapper").show("slow");

    });



});