function setScreen()
{
	sizeProportionW = document.documentElement.clientWidth / 1280;
	sizeProportionH = document.documentElement.clientHeight / 685;
	
	document.getElementById('headerText').style.fontSize = (60 * sizeProportionW) + "pt";
	
	objPageTitle = document.getElementById('pageTitle').style;
	objPageTitle.fontSize = (72 * sizeProportionH) + "pt";
	
	browserID = navigator.appVersion;
	
	z = browserID.search("MSIE")
	
	if (z != -1) // client browser is internet explorer
	{
		with(objPageTitle)
		{
			bottom = "325px";
			left = "50px";
		}
		
		a = browserID.indexOf("MSIE");
		b = browserID.slice(a);
		var c = new Array();
		c = b.split(";");
		d = c[0].slice(5);
		e = parseInt(d);
		
		cookieExist = readCookie("littleturtle");

		if (e < 9 && cookieExist == null)
		{
			alert("Note: Some stylistic elements of this site are lost when viewing the site with older versions of Internet Explorer (IE). You can still view and obtain information from the site, but you will not experience it in the way the designer intended. Please consider upgrading to IE 9.0 or higher, or switching to a different browser, such as Google Chrome or Apple Safari.");
			today = new Date();
			currentYear = today.getUTCFullYear();
			newYear = parseInt(currentYear) + 1;
			today = today.toUTCString();
			newDate = today.replace(currentYear, newYear); 

			document.cookie = "littleturtle=old_msie; expires=" + newDate + "; path=/";
		}
	}
	
	else // client browser is opera, safari, chrome, firefox
	{
		with(objPageTitle)
		{
			bottom = "185px";
			left = "-120px";
		}
	}
	
	objBackground = document.getElementById('background').style;
	objHeader = document.getElementById('header').style;
	objScratchpad = document.getElementById('scratchpad').style;
	objHeaderHeight = document.documentElement.clientHeight * 0.15;
	objLinkedIn = document.getElementById('icon_in').style;
	objFacebook = document.getElementById('icon_fb').style;
	objTwitter = document.getElementById('icon_tr').style;
	
	objLogo = document.getElementById('logo').style;
	objLogo.width = "15%";
	
	with(objHeader)
	{
		width = document.documentElement.clientWidth - 100 + "px";
		height = objHeaderHeight + "px";
	}
	
	with(objScratchpad)
	{
		width = document.documentElement.clientWidth - 100 + "px";
		top = objHeaderHeight + 4 + "px";
		height = document.documentElement.clientHeight - objHeaderHeight - 3 + "px";
	}
	
	logoWidth = document.getElementById('logo').width;
	menuBarStart = logoWidth + 75;
	scratchWidth = parseInt(objScratchpad.width);
	menuBarWidth = scratchWidth - menuBarStart;
	menuBarSpacing = menuBarWidth / 6;
	
	objMenuBar = document.getElementById('menuBar').style;
	objMenuBar.width = menuBarWidth + "px";
	objMenuBar.left = menuBarStart + "px";
	
	var menuItem = new Array();
	
	menuItem[0] = document.getElementById('menu0');
	menuItem[1] = document.getElementById('menu1');
	menuItem[2] = document.getElementById('menu2');
	menuItem[3] = document.getElementById('menu3');
	menuItem[4] = document.getElementById('menu4');
	menuItem[5] = document.getElementById('menu5');
	
	for (x=0; x<=5; x++)
	{
		menuItem[x].style.width = menuBarSpacing + "px";
		menuItem[x].style.left = (menuBarSpacing * x) + "px";
		menuItem[x].style.fontSize = 20 * sizeProportionW + "pt";
	}
	
	if (document.documentElement.clientWidth < 800 || document.documentElement.clientHeight < 525)
	{
		document.getElementById('headerText').style.fontSize = "36pt";
		objBackground.width = "800px";
		objBackground.height = "525px";
		objSpacer = document.getElementById('spacer').style;
    document.getElementById('social').style.position = "absolute";
    
		with(objSpacer)
		{
			position = "absolute";
			left = "0px";
			top = "0px";
			width = "800px";
			height = "525px";
		}
		
		with(objHeader)
		{
			width = "700px";
			height = "80px";
		}
		
		with(objScratchpad)
		{
			width = "700px";
			top = "84px";
			height = "475px";
		}
		
		objLogo.width = "120px";
		
		objMenuBar.left = "195px";
		objMenuBar.width = "505px";
	
		for (x=0; x<=5; x++)
		{
			menuItem[x].style.width = "84px";
			menuItem[x].style.left = (84 * x) + "px";
			menuItem[x].style.fontSize = "11pt";
		}
	}
	
	else
	{
		objBackground.width = "100%";
	}
	
	objBackgroundHeight = document.getElementById('background').height;
	
	if (objBackgroundHeight < document.documentElement.clientHeight)
	{
		objBackground.height = "100%";
	}
	
	document.getElementById('overlay').style.visibility = "hidden";
}

function menuSelect(action, x)
{
	var menuImage = new Array();
	
	menuImage[0] = document.getElementById('menuimg0').style;
	menuImage[1] = document.getElementById('menuimg1').style;
	menuImage[2] = document.getElementById('menuimg2').style;
	menuImage[3] = document.getElementById('menuimg3').style;
	menuImage[4] = document.getElementById('menuimg4').style;
	menuImage[5] = document.getElementById('menuimg5').style;
	
	if (action == "hi")
	{
		menuImage[x].visibility = "visible";
	}
	
	if (action == "lo")
	{
		menuImage[x].visibility = "hidden";
	}
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0)
		{
			return c.substring(nameEQ.length,c.length);
		}
	}
	
		return null;
}

function fontIncrease(objToIncrease)
{
	objElement = document.getElementById(objToIncrease).style;
	objElement.fontSize = parseInt(objElement.fontSize) + 2 + "pt";
}

function fontDecrease(objToDecrease)
{
	objElement = document.getElementById(objToDecrease).style;
	objElement.fontSize = parseInt(objElement.fontSize) - 2 + "pt";
}
