/*
	Triggered when user clicks the fullscreen button in flash
	Needs callback to know this has happened.
*/
function fullScreen() 
{
	var obj = document.getElementById("colorguide"); //the flashobject
	obj.style.position = "absolute";
	obj.style.top = "0";
	obj.style.left = "0";
	if (navigator.appName.indexOf("Microsoft")!=-1) {
		var winW = document.body.offsetWidth;
		var winH = document.body.offsetHeight;
	} else {
		var winW = window.innerWidth;
		var winH = window.innerHeight;
	}
	obj.width = winW;
	obj.height = winH;
	
	flashObj.fullscreenChangedCallback();
	return true;
}

/*
	Triggered by flash when the user clicks the fullscreenbutton in fullscreen mode
	needs a callback to know it has returned.
*/
function defaultScreen() 
{
	var obj = document.getElementById("colorguide"); //the flashobject
	obj.style.position = "";
	obj.style.top = "";
	obj.style.left = "";
	obj.width = "711";
	obj.height = "499";
	
	flashObj.fullscreenChangedCallback();
	return true;
}
