﻿if (!window.ark)
	ark = {};

ark.Page = function() 
{
}

ark.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 VideoLoad(sender, args)
{
document.getElementById("dLoad").style.visibility="hidden";
document.getElementById("dLoad").style.display="none";
//alert("hello");
}
function PlayAgain(sender, args) {
    var position = sender.findName("mdWhy").position;
   // position.seconds = 0;
   // sender.findName("mdWhy").position = position;
   // sender.findName("mdWhy").play();
}
