﻿if (!window.ScriptWeb1)
	window.ScriptWeb1 = {};

ScriptWeb1.Scene = function() 
{
}

ScriptWeb1.Scene.prototype =
{
	handleLoad: function(plugIn, userContext, rootElement) 
	{
		this.plugIn = plugIn;
		
		// Sample button event hookup: Find the button and then attach event handlers
		var animation = plugIn.content.findName("Delay");
		animation.begin(); 
	}
	
}

Delay_Completed=function(sender, args)
{
    var animation = sender.findName("PopUp");
    if (window.isL2R!=null)
    {
        animation = sender.findName("PopUpL2R");
    }
	
	animation.begin(); 
}

PopUp_Completed=function(sender, args)
{
	var animation = sender.findName("Hold");
	if (window.isL2R)
    {
        animation = sender.findName("HoldL2R");
    }
	animation.begin(); 
}
Hold_Completed=function(sender, args)
{
	var animation = sender.findName("PopDown");
	if (window.isL2R)
    {
        animation = sender.findName("PopDownL2R");
    }
	animation.begin(); 
}
