if (!window.UntitledProject1)
	window.UntitledProject1 = {};

UntitledProject1.Page = function() 
{
}

UntitledProject1.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
var theImages = new Array();

//theImages[0] = '/china/hpc/sl/header_02_2.wmv';
//theImages[1] = '/china/hpc/sl/header_03_2.wmv';
//theImages[2] = '/china/hpc/sl/header_04.wmv';
//theImages[3] = '/china/hpc/sl/header_05.wmv';

theImages[0] = 'mms://wm.microsoft.com/ms/china/hpc/header_02_2.wmv';
theImages[1] = 'mms://wm.microsoft.com/ms/china/hpc/header_03_2.wmv';
theImages[2] = 'mms://wm.microsoft.com/ms/china/hpc/header_04.wmv';
theImages[3] = 'mms://wm.microsoft.com/ms/china/hpc/header_05.wmv';
var p = theImages.length;
var whichImage = Math.round(Math.random()*(p-1));
//alert(whichImage);
rootElement.findname("Media1").Source=theImages[whichImage];
//rootElement.findname("Media1").Source="header_02.wmv";


		// Sample event hookup:	
		rootElement.findname("Page").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();
		window.open('http://www.microsoft.com/hpc/default.aspx#proof', '_blank', '', false);
	}
}