// JavaScript Document

/*** Twitter Widget ***/
/** ----------------------------------------------------- **/

function slides() {

/*	$.Juitter.start({
		searchType:"fromUser",
		searchObject:"",
		lang:"en",
		placeHolder:"widget_twitter",
		loadMSG: "Loading messages...",
		imgName: "loader.gif",
		total: 20,
		readMore: "Read it on Twitter",
		nameUser:"text",
		openExternalLinks:"newWindow",
		filter:"sex->*BAD word*,porn->*BAD word*,fuck->*BAD word*,shit->*BAD word*"
	});
	
	jQuery('#widget_twitter_next').click(function () {
		$currentPos = jQuery('#widget_twitter').css('top');
		$temp = $currentPos.replace('px','');
		$currentHeight = -(jQuery('#widget_twitter').height() - 400);
		if ($temp >= parseInt($currentHeight)) {
		$now = parseInt($temp) - 200;
		jQuery('#widget_twitter').stop(false, true).animate({top: $now},{duration: 800, easing: 'easeOutQuart'});
		} else {
		jQuery('#widget_twitter').stop(false, true).animate({top: -jQuery('#widget_twitter').height() + 200},{duration: 800, easing: 'easeOutQuart'});
		}
	});
	
	jQuery('#widget_twitter_prev').click(function () {
		$currentPos = jQuery('#widget_twitter').css('top');
		$temp = $currentPos.replace('px','');
		if ($temp <= -200) {
		$now = parseInt($temp) + 200;
		jQuery('#widget_twitter').stop(false, true).animate({top: $now},{duration: 800, easing: 'easeOutQuart'});
		} else {
		jQuery('#widget_twitter').stop(false, true).animate({top: 0},{duration: 800, easing: 'easeOutQuart'});	
		}
	});
	*/
	jQuery('#feature_carousel').jcarousel({
		scroll: 1,
		auto: 5,
		wrap: 'both',
		animation: 1000,
		initCallback: feature_carousel_initCallback,
		buttonNextHTML: null,
		buttonPrevHTML: null,
		easing: 'easeOutExpo'
	});
	
	jQuery('#feature_carousel_desc').jcarousel({
		scroll: 1,
		vertical: true,
		auto: 5,
		wrap: 'both',
		animation: 1000,
		initCallback: feature_carousel_initCallback,
		buttonNextHTML: null,
		buttonPrevHTML: null,
		easing: 'easeOutExpo'
	});

}