/***********************************
	rotation animation
***********************************/
function rotation(rotate_hover, rotate_wrapper, single_item, waitTime, animTime) {
	var $j = jQuery.noConflict();
var rotate_count;
var rotate_height;
var rotate_bottom;
var rotate_position;
var rotate_index = 0;

	rotate_count = $j(single_item).size();
	rotate_height = $j(single_item+":first").height();
	if ($j(single_item+":first").css('paddingTop')){
		rotate_height += parseFloat($j(single_item+":first").css('paddingTop'));
	}
	if ($j(single_item+":first").css('paddingBottom')){
		rotate_height += parseFloat($j(single_item+":first").css('paddingBottom'));
	}
	
	rotate_interval = setInterval(switch_item,waitTime);
	
	$j(rotate_hover).hover(function() {
		//pauses the twit rotation om hover
		//clearInterval(rotate_interval);
	}, function() {
		//restarts the twit rotation with a full time on mouse out
		//rotate_interval = setInterval(switch_item,waitTime);
	});

	//iteractive function being called by rotate_interval
	function switch_item() {
		rotate_index +=1;	
		if (rotate_index > rotate_count-1){
			rotate_index = 0;}
		rotate_position = (rotate_height*rotate_index)*-1;
		//hides twit wrapper - moves twit wraper - shows twit wrapper
		$j(rotate_wrapper).animate({ 
			opacity: 0
		}, animTime ).animate({
			top: rotate_position
		}, 0 ).animate({ 
					opacity: 1
		}, animTime );
	};
};





