
/* search text toggling */
jQuery(function () {
    jQuery("#global-search input.search-field").focus(function () {
        if (this.value == this.defaultValue) this.value = '';
    }).bind('blur', function () {
        if (this.value == '') this.value = this.defaultValue; 
    });
});


/* after DOM is loaded
------------------------------------------------------------------------*/

jQuery(document).ready(function ($) {

    /* fixes for IE
    --------------------------------------------------------------------*/

    if ($.browser.msie) {

        if (parseFloat($.browser.version) == 6) {

            // fix menus for IE6
            $("#site-nav li").hover(
				function () {
				    $(this).children(".sub-nav").show();
				},
				function () {
				    $(this).children(".sub-nav").hide();
				}
			);

            // doc type links
            $('#page-container a[href$=".doc"]').addClass('doc');
            $('#page-container a[href$=".pdf"]').addClass('pdf');
        }

        // breadcrumbs
        $("#breadcrumbs li:not(:first-child)").each(function () {
       		$(this).html(" > " + $(this).html());
        });
    }

    /* search results
    --------------------------------------------------------------------*/

    $('img[src$="/search/images/icons/HTM_sm.gif"]').hide(); // hide redundant icon for webpages

});

