Libraries, Archives and Record Offices
jQuery(document).ready(function()
{
jQuery('.arrow-up').hide();
jQuery('#linklist1 a.track_this_link').click(function() {
linkid = this.id;
linkid = linkid.substring(5);
path = '';
jQuery.ajax( { type: 'POST', url: 'http://www.hanesmon.org.uk/aaswp/wp-admin/admin-ajax.php', data: { action: 'link_library_tracker', _ajax_nonce: '652049e5fe', id:linkid, xpath:path } });
return true;
});
jQuery('#linklist1 .expandlinks').click(function() {
target = '.' + jQuery(this).attr('id');
subcattarget = '.' + jQuery(this).attr('data-subcat');
if ( jQuery( target ).is(':visible') ) {
jQuery(target).slideUp();
jQuery(subcattarget).slideToggle();
jQuery(this).children('img').attr('src', 'http://www.hanesmon.org.uk/aaswp/wp-content/plugins/link-library/icons/expand-32.png');
} else {
jQuery(target).slideDown();
jQuery(subcattarget).slideToggle();
jQuery(this).children('img').attr('src', 'http://www.hanesmon.org.uk/aaswp/wp-content/plugins/link-library/icons/collapse-32.png');
}
});
jQuery('#linklist1 .linklistcatclass').click(function() {
jQuery(this).siblings('.expandlinks').click();
});
jQuery('#linklist1 .linklistcatnamedesc').click(function() {
jQuery(this).siblings('.expandlinks').click();
});
});