// JavaScript Document
$(document).ready(function() {

	$('#edit-search-block-form-1').val('Use a keyword, title, author or ISBN');
	$('#edit-search-block-form-1').focus(function () {
		if($(this).val() == 'Use a keyword, title, author or ISBN') {
			$(this).val('').addClass('filled');
		}
	});
	$('#edit-search-block-form-1').blur(function () {
		if($(this).val() == '') {
			$(this).val('Use a keyword, title, author or ISBN').removeClass('filled');
		}
	});

//----  Creates an "All" link next to expanded TV Menu Items
	$('#block-tvmenu-0 .expanded>a, #block-tvmenu-0 .collapsed>a').each(function() {
		$(this).after('<a class="direct" href="'+$(this).attr('href')+'">&nbsp;</a>');
	});

	//---- This block gives a hover class to the nice-menu tabs
	$('#block-nice_menus-1 .nice-menu li').bind('mouseenter', function () {
		$(this).addClass('hover');
	}).bind('mouseleave', function () {
		$(this).removeClass('hover');
	});

	$('ul.nice-menu a.active').parent().addClass('active');


//--- Remove Delete Button from Taxonomy Term Edit Screen
	
	$('#taxonomy-form-term #edit-delete').css('display','none');
	$('.user-admin #taxonomy-form-term #edit-delete').css('display','inline-block');


$('#content-area h1.title').html($('#content-area h1.title').html().replace('Terms in <em>Categories</em>','Category Management'));



});

