/**
 * In IE6, unlike what seems like all the other browsers, the third flash
 * movie will send its hello message before the page html is loaded, so
 * we have to wait for all 4 events, the page load and the 3 movie loads,
 * before we procede with any other JS.
 *
 */

var itemsToLoad = 4;

$E.on(window, 'load', function() {    
    itemsToLoad--;
    
    if (itemsToLoad == 0) {
        begin();
    }
});


function begin() {
    oCreate = new Outcome(1, 'create');

    if (oCreate.left.drawingidEl.value != 0) {
        oCreate.left.showDrawing();
    }

    if (oCreate.right.drawingidEl.value != 0) {
        oCreate.right.showDrawing();
    }
}
