function getWindowWidth () {
	if (window.self && self.innerWidth) {
		return self.innerWidth;
	}
	if (document.documentElement && document.documentElement.clientWidth) {
		return document.documentElement.clientWidth;
	}
	return false;
}

function positionContainer () {
	var browserWidth 	= getWindowWidth();
	
	if (browserWidth !== false) {
		if (document.getElementById('tmpl_container')) {
			var div = document.getElementById('tmpl_container');
			if (browserWidth > 903) {
				div.className = 'tmpl_container';
			} else {
				div.className = 'tmpl_container_left_top';
			}
		}
	}
}

window.onresize = function () {
	positionContainer();
}

window.onrefresh = function () {
	//positionContainer();
}

window.onload = function () {
	positionContainer();
}