﻿/* Remove all classes with reference to 'core.css' from search */
$(document).ready(function(){
    $("*", $(".traen_header_search")).removeClass();
});                       



// hide root in breadcrumb
$(document).ready(function () {
    var parent = $(".HideRootNode").first().parent();
    parent.css('display', 'none');
    parent.next().css('display', 'none');
});


/* Show/hide animation */
function showSlidingDiv(target) {
    $(target).animate({ "height": "toggle" }, { duration: 100 });
}


// Please leave this comment in place
// Created by: Randy Drisgill (The Mossman)
// August 17, 2007
//
// THIS OVERRIDES THE OOTB SHAREPOINT FUNCTION WHICH CAUSES ACTIVEX INSTALL ISSUES
//
// Essentially it overrides the ootb sharepoint function which calls the activex object
// See http://support.microsoft.com/default.aspx/kb/931509 for info on the issue
function ProcessDefaultOnLoad(onLoadFunctionNames) {
    //** Uncomment this to see when this runs
    //alert('Fixing the Issue');
    
    ProcessPNGImages();
    UpdateAccessibilityUI();

    //** We comment out the offending ootb function
    //** and leave the rest of the functions as they were
    //ProcessImn();
    for (var i = 0; i < onLoadFunctionNames.length; i++) {
        var expr = "if(typeof(" + onLoadFunctionNames[i] + ")=='function'){" + onLoadFunctionNames[i] + "();}";
        eval(expr);
    }
    if (typeof (_spUseDefaultFocus) != "undefined")
        DefaultFocus();
}	

