$(function(){
  $("ul#twitter").liScroll();

	larg = (getWidth()-400).toString();    
	function getWidth(){
		return window.innerWidth ? window.innerWidth :
		document.documentElement ? document.documentElement.clientWidth :
		document.body ? document.body.clientWidth :
		window.screen.width;
	}
	document.getElementById('twittercontainer').style.width = larg + 'px';

	window.onresize = function(){
		larg = (getWidth()-400).toString();    
		function getWidth(){
			return window.innerWidth ? window.innerWidth :
			document.documentElement ? document.documentElement.clientWidth :
			document.body ? document.body.clientWidth :
			window.screen.width;
		}
		document.getElementById('twittercontainer').style.width = larg + 'px';
	};
});

