// BackgroundChanger.js - version 1.0

var currentBackground="briefcase";

function setCurrentBackground(newBackground)
{
	currentBackground = newBackground;
	SendDataToFlashMovie(newBackground);
}

function getFlashMovieObject(movieName)
{
	if (window.document[movieName])
	{
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1)
	{
		if (document.embeds && document.embeds[movieName])
		return document.embeds[movieName];
	}
	else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
	{
		return document.getElementById(movieName);
	}
}

function SendDataToFlashMovie(newBackground)
{
	var flashMovie=getFlashMovieObject("Background");
	flashMovie.changeBackground(newBackground);
}