﻿if (!window.vday_banner)
	vday_banner = {};

vday_banner.Page = function() 
{
}

vday_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();
	}
}

function PageClick(sender, eventArgs) {
	location.href="http://www.microsoft.com/hk/windowsmobile/events/smb/?WT.mc_id=ms_productsite";
}

/*function getURL(){
	location.href="http://www.microsoft.com/hk/windowsmobile/events/wm6/?WT.mc_id=ms_productsite";
}*/
function Replaygo(sender,e){
	sender.Position="0:0:0";
	sender.Play();
}
function MediaFailed(sender,e){
	alert("影片下載失敗，請重新載入頁面，若仍舊發生問題請聯絡網站管理員")
}