$(document).ready(function(){
var cp = 1;
var mp = $("div.rotated-banner").size();
var lp = 1;
var stage_width = 950;
var time = 500;
var timeout = 5000;
var easeIn_method = "easeInOutCirc";
var pages_max = mp;
var jump_in;

$("div.rotated-banner").css({'opacity' : 0});

$("#br1").animate({ 'opacity': "1"}, {duration: time, easing: easeIn_method});

jump = function(){
	clearTimeout(jump_in);
	
	lp = cp;
	if(cp == mp) cp=1;
	else cp++;
	
	jumper();
	}

if(mp>1) var jump_in = setTimeout("jump()",timeout);


function jumper()
	{
	//$("#br"+cp).css({ 'left' : 0});
	$("#br"+cp).animate({ 'opacity': 1}, {duration: time, easing: easeIn_method});
		$('#br'+lp).animate({ 'opacity' : 0},{duration: time, easing: easeIn_method,complete:function(){
			//$(this).css({ 'left' : stage_width});
		}});
	jump_in = setTimeout("jump()",timeout);
	}

});
