function SetScreenMode(DefaultThemeName, ThemeInstance)
	{if(checkCookie('FullScreenMode', 'T', 1)==true){FullScreen(DefaultThemeName, ThemeInstance);}}

function FullScreen(DefaultThemeName, ThemeInstance)
	{for(X=0; X < ThemeInstance.length; X=X + 1)
			{if(GetCurrentTheme(DefaultThemeName)==ThemeInstance[X].FilePath)
				{var ThemeBanner=ThemeInstance[X].FullScreenBanner}}

		if(document.getElementById('ContentBlock').className=='ContentBlock')
			{HideElement('RightMenu');}

		HideElement('FullScreenButton');
		ShowElement('NavigationModeButton');
		ShowElement('FullScreenBanner');
		HideElement('AgencyBanner');
		HideElement('MainMenu');
		HideElement('PageFooter');

		document.getElementById('PageBody').style.background='url(\''+ ThemeBanner +'\') center top no-repeat';
		document.getElementById('ContentBlock').style.margin='0';
		document.getElementById('PageHead').style.height='115px';
		document.getElementById('SiteSearch').style.top='91px';
		document.getElementById('ContactUs').style.top='90px';
		setCookie('FullScreenMode', 'T', 1);}

function NavigationMode(DefaultThemeName, ThemeInstance)
	{for(X=0; X < ThemeInstance.length; X=X + 1)
			{if(GetCurrentTheme(DefaultThemeName)==ThemeInstance[X].FilePath)
				{var ThemeBanner=ThemeInstance[X].MainBanner}}

		if(document.getElementById('ContentBlock').className=='ContentBlock')
			{RightMargin='0 200px 0 220px';
			ShowElement('RightMenu');}
		else
			{RightMargin='0 0 0 220px';}

		ShowElement('FullScreenButton');
		HideElement('NavigationModeButton');
		HideElement('FullScreenBanner');
		ShowElement('AgencyBanner');
		ShowElement('MainMenu');
		ShowElement('PageFooter');

		document.getElementById('PageBody').style.background='url(\''+ ThemeBanner +'\') center top no-repeat';
		document.getElementById('ContentBlock').style.margin=RightMargin;
		document.getElementById('PageHead').style.height='165px';
		document.getElementById('SiteSearch').style.top='141px';
		document.getElementById('ContactUs').style.top='140px';
		setCookie('FullScreenMode', 'F', 0);
		location.reload(true);}
