
var slideRocketObj;
var curPageTitle = "SlideRocket";

function ReturnFocusToEditor()
{
	if (isIE)
		IEReturnFocusToEditor();
	else if (isFM)
		FMReturnFocusToEditor();
	else if (isMZ)
		MZReturnFocusToEditor();
	else if (isSF3)
		SFReturnFocusToEditor();

	setTimeout('SetPageTitle("");', 0);
}

function ReturnFocusToApp()
{
	if (isIE)
		IEReturnFocusToApp();
	else if (isFM)
		FMReturnFocusToApp();
	else if (isMZ)
		MZReturnFocusToApp();
	else if (isSF3)
		SFReturnFocusToApp();
	
	setTimeout('SetPageTitle("");', 0);
}

function TriggerPaste()
{
	if (isIE)
		IETriggerPaste();
	else if (isFM)
		FMTriggerPaste();
	else if (isMZ)
		MZTriggerPaste();
	else if (isSF3)
		SFTriggerPaste();
}

function TriggerCopy()
{
	if (isIE)
		IETriggerCopy();
	else if (isFM)
		FMTriggerCopy();
	else if (isMZ)
		MZTriggerCopy();
	else if (isSF3)
		SFTriggerCopy();
}

function TriggerCut()
{
	if (isIE)
		IETriggerCut();
	else if (isFM)
		FMTriggerCut();
	else if (isMZ)
		MZTriggerCut();
	else if (isSF3)
		SFTriggerCut();
}

function Select()
{
	if (isIE)
		IESelect();
	else if (isFM)
		FMSelect();
	else if (isMZ)
		MZSelect();
	else if (isSF3)
		SFSelect();
}

function Unselect()
{
	if (isIE)
		IEUnselect();
	else if (isFM)
		FMUnselect();
	else if (isMZ)
		MZUnselect();
	else if (isSF3)
		SFUnselect();
}

function load()
{		
 
	if (isIE)
		IELoad();
	else if (isFM)
		FMLoad();
	else if (isMZ)
		MZLoad();
	else if (isSF3)
		SFLoad();
}

function SetPageTitle(t)
{
	if (t != "")
	{
		document.title=t;
		curPageTitle=t;
	}
	else if (curPageTitle != undefined)
	{
		document.title=curPageTitle;
	}
}

function MyDocuments()
{
	if (window.location.protocol.toString() != "file:")
	{
		newLoc = window.location.protocol + "//" + window.location.hostname.toString();
		// If the pathname of the current URL starts with something other than "/Client",
		// then we want to append it all the way up to but not including "/Client".
		indexOfClient = window.location.pathname.indexOf("/Client");
		if (indexOfClient > 0)
			newLoc = newLoc + window.location.pathname.substring(0, indexOfClient);
		window.location = newLoc + "/Members/Documents.aspx";
	}
}

function Restart()
{
	window.onbeforeunload = null;	// skip unaved changes warning
	window.location.reload();
}

function GetBrowserType()
{
	if (isIE)
		return "IE";
	if (isMac && isMZ)
		return "FirefoxMac";
	if (isMZ)
		return "FirefoxWindows";
	if (isSF3)
		return "Safari";
	return "Unknown";
}

function IsClipboardMenuCommandSupported()
{
	if (isIE)
		return true;
	return false;
}

function IsMenuLinkSupported()
{
	if (isFM)
		return false;
	return true;
}

function OpenInNewWindow(url)
{
	window.open(url);
}

function IsFlashPlayerUpgradeRecommended()
{
	return !DetectFlashVer(9,0,47);
}

