function checkWidth(maxSize) 
			{
				
				/*
					This function gets the width of the users browser.
					Checks to see if it is larger then the specified Maximum Size.
						If it is larger then it returns the specified Maximum Size.
						If it is not larger then it returnst he users browser size.
				*/
				
				var myWidth = 0;	//Will be used as a storage space for the size while being checked.
				var MAX_WIDTH = maxSize;	//the Maximum that is to be checked for.
				if( typeof( window.innerWidth ) == 'number' ) 
				{
					//Non-IE
					myWidth = window.innerWidth;
				} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
				{
					//IE 6+ in 'standards compliant mode'
					myWidth = document.documentElement.clientWidth;
				} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
				{
					//IE 4 compatible
					myWidth = document.body.clientWidth;
				}
			
				if (myWidth> MAX_WIDTH)
				{
					width = MAX_WIDTH;	
				}
				else
				{
					width = myWidth;
				}
				return width;
			}