﻿if (!window.UntitledProject3)
	UntitledProject3 = {};

UntitledProject3.Page = function() 
{
}

UntitledProject3.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 DoPlay(sender, eventargs)
{    var theHost= document.getElementById("SilverlightControl");
    var theMedia= theHost.content.findName("wichitaFalls1_wmv");
    theMedia.Play();
    
}
function DoStop(sender, eventargs)
{
     var theHost= document.getElementById("SilverlightControl");
    var theMedia= theHost.content.findName("wichitaFalls1_wmv");
    theMedia.Stop();
}

function DoPause(sender, eventargs)
{
     var theHost= document.getElementById("SilverlightControl");
    var theMedia= theHost.content.findName("wichitaFalls1_wmv");
    theMedia.Pause();
}
