﻿if (!window.jop)
	jop = {};

jop.Page = function() 
{
}

jop.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:	
        
		this.foo = rootElement.findName("Storyboard1");
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
		this.sb = this.control.content.findName("Storyboard1")
		this.sb.Begin();

	},
	
	// 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.sb.Begin();
	}
}