				function getWindowWidth() {
                       var windowWidth = 0;
                       if (typeof(window.innerWidth) == 'number') {
                               windowWidth = window.innerWidth;
                       }
                       else {
                               if (document.documentElement && document.documentElement.clientWidth) {
                                       windowWidth = document.documentElement.clientWidth;
                               }
                               else {
                                       if (document.body && document.body.clientWidth) {
                                               windowWidth = document.body.clientWidth;
                                       }
                               }
                       }
                       return windowWidth;
               }
               function setContent() {
                       if (document.getElementById) {
                               var windowWidth = getWindowWidth();
                               if (windowWidth > 0) {
                                       var contentElement = document.getElementById('content');
                                       var contentWidth = contentElement.offsetWidth;
                                       if (windowWidth - contentWidth > 0) {
                                               contentElement.style.position = 'absolute';
                                               contentElement.style.left = ((windowWidth / 2) - (contentWidth / 2)) + 'px';
					   contentElement.style.width=contentWidth + 'px';
                                       }
                                       else {
                                               contentElement.style.position = 'static';
                                       }
                               }
                       }
               }
               window.onload = function() {
                    setContent();
               }
               window.onresize = function() {					
                    setContent();
               }
				window.reload = function() {
					setContent();
				}

