// INIT VARIABLES
var ww;

// INIT FUNCTIONS (onload statements)
$(function(){

	$(window).resize(function () {
			if(window.innerHeight) wh = window.innerHeight;
			else wh = (document.documentElement.clientHeight>0) ? document.documentElement.clientHeight : document.body.clientHeight;
			
			if(window.innerWidth) ww = window.innerWidth;
			else ww = (document.documentElement.clientWidth>0) ? document.documentElement.clientWidth : document.body.clientWidth;
			
			if(ww > 980) $("#wrapper").width(ww);
			else  $("#wrapper").width(980);
			
			$(".bodytext").css({"width": (ww-42) + "px"})
	});

	$(window).resize();

});