﻿if (!window.Blend1)	window.Blend1 = {};
Blend1.Scene = function() {}
Blend1.Scene.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
	}
}
function createSilverlight() {
/// <summary>Microsoft's copperplate Silverlight jscript</summary>
	var scene = new Blend1.Scene(); // defined in Scene.xaml.js
	// 1.0 RC 1-Aug-07
    Silverlight.createObjectEx({
	    source: 'TileClient.xaml?7', 
	    parentElement: document.getElementById("SilverlightControlHost"),
	    id:'SilverlightControl', 
	    properties:{
	        width:'100%', 
	        height:'100%', 
	        background:'#00000000', 
	        isWindowless:'true',
	        framerate:'24', 
	        enableFramerateCounter:false, 
	        version:'1.0'},
	    events:{
	       onError:  OnErrorEventHandler,
	       onLoad:   OnLoadEventHandler 
	    },
	    context:null
	});
}