﻿if (!window.SilverlightSeo)
	window.SilverlightSeo = {};

SilverlightSeo.Page = function() 
{
}

SilverlightSeo.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 contentdisplaycontrol_loaded(sender, args)
{
    var contentContainer = document.getElementById(sender.Name);

    if(contentContainer != undefined)
    {
        var content = document.getElementById(sender.Name).innerHTML;
        sender.Text = content;
    }    
}

function maincanvas_loaded(sender, args)
{
    if(document.getElementById("silverlightControlHost") != undefined)
    {  
        document.getElementById("silverlightControlHost").style.zIndex = 2;   
    }
}
