function UserAgentInfo ()
{
	userAgent = navigator.userAgent;
	userAgentName = navigator.appName;
	userAgentVersion = navigator.appVersion;
	
	// Internet Explorer
	if (userAgentName.search(/Microsoft\sInternet\sExplorer/i) != -1)
	{
		this.name = 'Internet Explorer';
		matches = userAgentVersion.match(/(\d\.\d)/);
		if (matches && matches[1].length > 0)
		{
			this.version = matches[1];
		}
		else
		{
			this.version = false;
		}
	}
	// Firefox
	else if (userAgent.search(/Firefox/i) != -1)
	{
		this.name = 'Firefox';
		matches = userAgentVersion.match(/Firefox\/(\d\.\d)/);
		if (matches && matches[1].length > 0)
		{
			this.version = matches[1];
		}
		else
		{
			this.version = false;
		}
	}
	// Mozilla
	else if (userAgent.search(/Mozilla/i) != -1)
	{
		this.name = 'Mozilla';
		matches = userAgentVersion.match(/(\d\.\d)/);
		if (matches && matches[1].length > 0)
		{
			this.version = matches[1];
		}
		else
		{
			this.version = false;
		}
	}
	// Opera
	else if (userAgentName.search(/Opera/i) != -1)
	{
		this.name = 'Opera';
		matches = userAgentVersion.match(/(\d\.\d)/);
		if (matches && matches[1].length > 0)
		{
			this.version = matches[1];
		}
		else
		{
			this.version = false;
		}
	}
	// Unknown
	else
	{
		this.name = false;
		this.version = false;
	}
}

function GetClientWidth (browser)
{
	switch (browser.name)
	{
		case 'Internet Explorer':
			return document.body.clientWidth;
		case 'Mozilla':
			return (document.body.clientWidth == window.innerWidth) ? document.body.clientWidth-15 : document.body.clientWidth+1;
		case 'Firefox':
			return (document.body.clientWidth == window.innerWidth) ? document.body.clientWidth-16 : document.body.clientWidth;
		case 'Opera':
			return (document.body.clientWidth == window.innerWidth) ? document.body.clientWidth-16 : document.body.clientWidth;
		default:
			return document.body.clientWidth ? document.body.clientWidth : window.innerWidth;
	}
}

/*function IntFloatSet(browser)
{
	floatObj = document.getElementById('IntFloat');
	if (floatObj)
	{
		floatObj.style.left = (GetClientWidth(browser)-355)+'px';
	}
}

var browser = new UserAgentInfo();

IntFloatSet(browser);

if (window.addEventListener)
{
	//alert('addEventListener');
	window.addEventListener('resize',IntFloatSet,false);
}
else if (window.attachEvent)
{
	//alert('attachEvent');
	window.attachEvent('onresize',IntFloatSet);
}
else
{
	//alert('none');
}*/
