var _minimumWidth = 800;
var _minimumHeight = 600;


function ExitPresentation(){
	self.close();
}


function ScaleContent(scaleBool){
	var flashItem = window.document["mainFlashItem"];
	if(scaleBool == true)
	{	
		flashItem.setAttribute("width", "100%");
	
	}else
	{
		flashItem.setAttribute("width", _minimumWidth);
		flashItem.setAttribute("height", '100%');
		
	}
	/*flashObject.write("flashContent");
	//flashItem.setAttribute("scale", "noscale");
	flashObject.addParam("scale", "noscale");*/
	
}

function SetFullscreen(fullScrnBool)
{
	if(fullScrnBool == true)
	{
		var screenDimensionObj = GetScreenDimensions();
		window.resizeTo(screenDimensionObj.width,screenDimensionObj.height);
	}else
	{
		window.resizeTo(_minimumWidth,_minimumHeight);
	}
}

function LoadMainBackground(){
	document.getElementById("flashContent").className = "mainBackground";
}

//utility to get screen dimensions
function GetScreenDimensions()
{	var widthBuffer = 0;
	var heightBuffer = -60;
	
	//return the screen's dimensions + buffer specified in an object
	return {width: screen.width+widthBuffer,height: screen.height+heightBuffer};
}

function OpenFullScreenWindow(theURL,winName) {
	var screenObj = GetScreenDimensions();
	var WindowObject = window.open(theURL,winName,'width='+screenObj.width+',height='+screenObj.height+',toolbar=0,location=0,menubar=0,resizable=yes,scrollbars=0,status=0,top=0,left=0');
	WindowObject.focus();
}