﻿if (!window.The_Stoned_Pig___Welcome)
	window.The_Stoned_Pig___Welcome = {};

The_Stoned_Pig___Welcome.Scene = function() 
{
}

The_Stoned_Pig___Welcome.Scene.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("Timeline1").Begin();
	}
}

function hyperlink_MouseLeftButtonDown(sender, args) {
    window.location = "http://www.goaheadspace.com/stonedpig/silverlight/album";
}

function hyperlink_MouseEnter(sender, args) {
    sender.findName("hyperlink_line").opacity = 1;
}

function hyperlink_MouseLeave(sender, args) {
    sender.findName("hyperlink_line").opacity = 0;
}

function StartAlbum() {
    document.URL = "http://www.goaheadspace.com/stonedpig/silverlight/album"
}