﻿if (!window.sl_banner)
	sl_banner = {};

sl_banner.Page = function() 
{
}

sl_banner.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();
	}
}

var timelines2 = new Array("elearning_anim","webcast_anim");
var canvases2 = new Array("elearning","webcast");
var urls2 = new Array("http://getprojectpromo.com","http://www.msepmu.com");

currsection2=0;

function playfirst2(sender, eventArgs)
{
sender.findName(canvases2[currsection2]).visibility = "Visible";
	sender.findName(timelines2[currsection2]).begin();
}

function animcomplete2(sender,eventArgs){

sender.findName(canvases2[currsection2]).visibility = "Collapsed";
	sender.findName(timelines2[currsection2]).stop();
	currsection2++;

if (currsection2 == 2)
	{
		currsection2 = 0;
	}
	
	sender.findName(canvases2[currsection2]).visibility = "Visible";
	sender.findName(timelines2[currsection2]).begin();
	
}

function click2(sender,eventArgs){
window.open(urls2[currsection2]);
}