/// <reference path="intellisense.js" />

if (!window.LutzPumpen)
	window.LutzPumpen = {};

LutzPumpen.Scene = function() 
{
}

LutzPumpen.Scene.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
	}
}

function LinkClicked(sender, args) {
	switch (sender.name) {
	case "BlauButton":
		window.location = "desktopdefault.aspx/tabid-18/";
		break;
	case "GelbButton": 
			window.location = "desktopdefault.aspx/tabid-15/";
		break;
	case "GruenButton": 
			window.location = "desktopdefault.aspx/tabid-17/";
		break;
	case "RotButton": 
			window.location = "desktopdefault.aspx/tabid-16/";
		break;
	}
}

function LinkEntered(sender, args) {
	switch (sender.name) {
	case "BlauButton":
		sender.findName("mouseEnterBlau").begin();
		break;
	case "GelbButton": 
		sender.findName("mouseEnterGelb").begin();
		break;
	case "GruenButton": 
		sender.findName("mouseEnterGruen").begin();
		break;
	case "RotButton": 
		sender.findName("mouseEnterRot").begin();
		break;
	}
	sender.findName("BackgroundAnimation").pause();
}

function LinkLeave(sender, args) {
	switch (sender.name) {
	case "BlauButton":
		sender.findName("mouseLeaveBlau").begin();
		break;
	case "GelbButton": 
		sender.findName("mouseLeaveGelb").begin();
		break;
	case "GruenButton": 
		sender.findName("mouseLeaveGruen").begin();
		break;
	case "RotButton": 
		sender.findName("mouseLeaveRot").begin();
		break;
	}
	sender.findName("BackgroundAnimation").begin();
}