﻿function createEventsLandingSilverlight()
											{
											  var scene = new EventsLanding.Page();
											  Silverlight.createObjectEx({
											    source: "/slovenija/junak/xaml/EventsLanding.xaml",
											    parentElement: document.getElementById("SilverlightControlHost"),
											    id: "SilverlightControl",
											    properties: {
											      width: "786px",
											      height: "440px",
											      version: "1.0"
											    },
											    events: {
											      onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
											    }
											  });
											}
											
											
											if (!window.Silverlight)
											  window.Silverlight = {};
											
											Silverlight.createDelegate = function(instance, method) {
											  return function() {
											    return method.apply(instance, arguments);
											  }
											}
