﻿var i_onload = window.onload;
window.onload = function()
{
	if (typeof i_onload == 'function')
	{
		 i_onload();
	}
	load();
}

var div = false;
function load()
{
	if (navigator.appName.indexOf('Microsoft') != -1)
	{
		if(!div)
		{
			div = document.getElementById('IEinnerContainer');
		}
		if(!div)
		{
			return;
		}
		if(document.documentElement.clientWidth < 1020)
		{	
			div.style.height = document.documentElement.scrollHeight + 'px';
			div.style.position = 'absolute';
			if(document.documentElement.clientWidth > 990)
			{
				div.style.width = document.documentElement.clientWidth + 'px';
			}
			else 
			{
				div.style.width = 1000 + 'px';
			}
			
		}
		else 
		{
			div.style.position = '';
			div.style.width = 100 + '%';
		}
		setTimeout("load();",100);
	}

	
}