// Initialization
// Roger C. Garrett
// 12/16/2009
//
// This file contains functions intended to occur at initialization of the page for the Math/Algebra page.
// It is assumed that this function will override the document onload method.
//

function OnLoad()
{
    // This function overrides the Document.onload method and thereby gets called afte the entire documents
    // content has been loaded.
    //
    // The overriding of this function is done with either a window.addEventListener() or a window.attachEvent
    // depending on whether or not its running on Internet Explorer, and is currently done at the end of the
    // <BODY> section of the HTML page.
   
    // TEST START: Make some image objects dragable in the test area.
    //var myTableTestManipulationContainer = document.getElementById("TableTestManipulationContainer");
    //var myDragContainer = new ContainerConstrainedDrag(myTableTestManipulationContainer);

    //myDragContainer.draggableObjectAdd(document.getElementById("TestZero"));
    //myDragContainer.draggableObjectAdd(document.getElementById("TestOne"));
    //myDragContainer.draggableObjectAdd(document.getElementById("TestTwo"));
    //myDragContainer.draggableObjectAdd(document.getElementById("TestY"));
    //myDragContainer.setActive();
    // TEST END
    
    
//    // TEST START
//    // This tests whether or not the image files get loaded properly.
//    var text = "";
//    for (var index = 0 ; index < imageFileNames.length ; ++index)
//    {
//        var fileName = imageFileNames[index];
//        var info = Algebra.getImageInfo(fileName);
//        text += fileName + " " + info.width + " by " + info.height + "\n";
//    }
//    alert(text);
//    // TEST END
 
}
