if (!window.SilverlightSite2)
	SilverlightSite2 = {};

SilverlightSite2.Page = function() 
{
}

SilverlightSite2.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:	
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	},
	
	// Sample event handler
	handleMouseDown: function(sender, eventArgs) 
	{
		// The following line of code shows how to find an element by name and call a method on it.
		// this.control.content.findName("Storyboard1").Begin();
	}
}

function hyperlink_MouseLeftButtonDown(sender, args) {
    window.location = "/emea/teched2008/developer/registration/";
}

		if (!window.Silverlight) 
			Silverlight = {};

		Silverlight.createDelegate = function(instance, method) {
			return function() {
				return method.apply(instance, arguments);
			}
		}

function createSilverlight()
		{
			if (Silverlight.isInstalled("2.00") || Silverlight.isInstalled("1.00")) {
				
			var scene = new SilverlightSite2.Page();
			Silverlight.createObjectEx({
				source: "/emea/teched2008/images/dev_track/superebsil/SuperEbSidereg.xaml",
				parentElement: document.getElementById("silverlightControlHost"),
				id: "SilverlightControl",
				properties: {
					width: "100%",
					height: "100%",
					version: "1.0",
					isWindowless: "True",
                    background: "Transparent"
				},
				events: {
					onLoad: Silverlight.createDelegate(scene, scene.handleLoad),
					onError: function(sender, args) {
						var errorDiv = document.getElementById("errorLocation");
						if (errorDiv != null) {
							var errorText = args.errorType + "- " + args.errorMessage;
									
							if (args.ErrorType == "ParserError") {
								errorText += "<br>File: " + args.xamlFile;
								errorText += ", line " + args.lineNumber;
								errorText += " character " + args.charPosition;
							}
							else if (args.ErrorType == "RuntimeError") {
								errorText += "<br>line " + args.lineNumber;
								errorText += " character " +  args.charPosition;
							}
							errorDiv.innerHTML = errorText;
						}	
					}
				}
			});			
			} else {
				document.write("<a href='/emea/teched2008/developer/registration/'><img src='/emea/teched2008/images/dev_track/superebsil/lc.gif' height='100' widht='146' /></a>");
			}
		}