$(document).ready(function() {
	$('.sponsors-element').pngFix(); 
	
	var boxWidth = $('#twitter').width();
  	var textWidth = $('#twitter .scroll-text').width() / 2;
  	var animSpeed = (textWidth - boxWidth) * 20; // 50 pix per sec
  
  	$('#twitter').bind('marquee', function() {	  
		if (textWidth > boxWidth) {
			$('.scroll-text', this)
			.animate({left: - textWidth}, animSpeed, 'linear', function() {
				$(this).css({"left": "0px"});
				$(this).trigger('marquee');
			});
		}
  	}).trigger('marquee');
  	
	$("#tabs").tabs();
  	
  	$(".scroll-pane").jScrollPane();
});
