///////////////////////////////////////////////////////////////////////////////
//
//  default.html.js
//
//
// © 2007 Microsoft Corporation. All Rights Reserved.
//
// This file is licensed as part of the Silverlight 1.0 SDK, for details look
// here: http://go.microsoft.com/fwlink/?LinkID=89144&clcid=0x409
//
///////////////////////////////////////////////////////////////////////////////

function createSilverlight()
{

    //window.onload = function()
    //{
      //  var img = new Array(
        //"img/aura_mid.jpg", "img/menu_top_bg.png", "img/menu_title_bg.png");
        //loadImages(img);
    //}
    
    Silverlight.createObjectEx({
        source: "interfaceB.xaml",
        parentElement: document.getElementById("SilverlightControlHost"),
        id: "SilverlightControl",
        properties: {
            width: "721",
            height: "294",
            background:"#222224",
            isWindowless: "true",
            framerate:"30",
            version: "1.0"
        },
        events: {
           // onError: 'errorHandle', onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
        }
    });
}

function loadImages(urls)
{
  var img = new Array();
  for(var i=0; i < urls.length; i++)
  {
  img[img.length]= new Image();
  img[img.length - 1].src = urls[i];
  }
}
