

//Common events
$(document).ready(function()
{ 
    $("div.Table_Row").mouseover(function(){$(this).addClass("Table_Row_Hover")});
    $("div.Table_Row").mouseout(function(){$(this).removeClass("Table_Row_Hover")});
    //$(".datepicker").datepicker({showOn: 'focus'});
    
    // set up rollover
    $(".Rollover").hover
    (
        function()
        {
            this.src = this.src.replace("_off","_hover");
        },
        function()
        {
            this.src = this.src.replace("_hover","_off");
        }
    );
     
});

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//    Dump Object
//      This function dumps an object
/////////////////////////////////////////////////////////////////////////////////////////////////////////////  
function dumpObj(obj, name, indent, depth) 
{
    var MAX_DUMP_DEPTH = 10; 

    if (depth > MAX_DUMP_DEPTH) 
    {
        return indent + name + ": <Maximum Depth Reached>\n";
    }

    if (typeof obj == "object") 
    {
        var child = null;
        var output = indent + name + "\n";
        indent += "\t";
        for (var item in obj)
        {
            try 
            {
                child = obj[item];
            } 
            catch (e) 
            {
                child = "<Unable to Evaluate>";
            }

            if (typeof child == "object") 
            {
                output += dumpObj(child, item, indent, depth + 1);
            }
            else 
            {
                output += indent + item + ": " + child + "\n";
            }
        }
        return output;
    } 
    else 
    {
        return obj;
    }
}
