$(function(){
			$('.widget-container select').wrap('<div class="row" />');
			
			$('.widget-container .row').jqTransform();
			
			//$('#slider').galleryScroll({slideNum:'.swicher',autoSlide:6000});
//			$('#slider1').anythingSlider({
//				startStopped    : true,  // If autoPlay is on, this can force it to start stopped
//				width           : 955,   // Override the default CSS width
//				buildArrows		: false,
//				delay			: 16000,
//				animationTime	: 3000
//				autoPlay		: true
//				autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
//				resumeDelay     : 10000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
//				onSlideComplete : function(slider){
					// alert('Welcome to Slide #' + slider.currentPage);
//				}
//			});
			
			//$('.promo-slider').galleryScroll();
			$('#sidebar .widget-container h3.widget-title').wrapInner('<span>');
			$('.wp-pagenavi .previouspostslink').text('<<');
			$('.wp-pagenavi .nextpostslink').text('>>');
			/*$('#xmt_frontpage_wid ul').jcarousel({
				vertical: true,
				scroll: 1,
				wrap: 'last',
				auto: 4
			});*/
});

jQuery(document).ready(
	function() {
		front_tweets_start();
	}
);

function front_tweets_start() {
	setTimeout("front_tweets_move()", 5000);
}
var front_tweets_nmb = 0;
function front_tweets_move() {
	var front_tweets = jQuery("#front-tweet-container").find(".tb_tweet");
	if (front_tweets.length > 0) {
		front_tweets_nmb++;
		if (front_tweets_nmb >= front_tweets.length) { front_tweets_nmb = 0; }
		var fttop = front_tweets_nmb * 30;
		jQuery(".tb_tweetlist").animate({top: -fttop}, 800);
		front_tweets_start();
	}
}

