﻿if (!window.Map)
	Map = {};

Map.Page = function() 
{
}

Map.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 signalanimation (sender,args)
{
	document.getElementById("divLoad").style.visibility="hidden";
document.getElementById("divLoad").style.display="none";
//alert("s");
	sender.findName("wavesanimation").begin();
	sender.findName("wavesanimation_dubai").begin();
	sender.findName("wavesanimation_london").begin();
	sender.findName("staranimation").begin();
	sender.findName("wavesanimation_fl").begin();
	sender.findName("wavesanimation_tx").begin();
	sender.findName("wavesanimation_ca").begin();
}

var sendername;
var sName; 
function popupanimation (sender,args)
{
	sendername=sender.name;
	
	sName = sendername.substring(6, sendername.length);
//alert("Popup_" + sName);
	sender.findName("Popup_" + sName ).Visibility="Visible";
	sender.findName("Popup_" + sName).Visibility="Visible";
	sender.findName(sName + "_popupanimation").begin();
	sender.findName(sName + "_popupanimation").begin();
}

function popupanimation_go (sender,args)
{
	sender.findName("Popup_" + sName).Visibility="Collapsed";
	sender.findName("Popup_" + sName).Visibility="Collapsed";
}
