﻿/* Fix the problem with max-width in Internet Explorer 6 (and verions below?) */
//$(document).ready(function () {
//    $("#shell").css.width = document.body.clientWidth > 1000 ? "1000px" : (document.documentElement.clientWidth < 800 ? "600" : "100%");
//});

window.onload = checkAvailableWidth;
window.onresize = checkAvailableWidth;

/* Fix the problem with max-witdh in Internet Explorer 6 (and verions below?) */
function checkAvailableWidth() {
	var container = document.getElementById("shell");
	container.style.width = document.body.clientWidth > 1000 ? "985px" : (document.documentElement.clientWidth < 800 ? "784" : "100%");
}