var curTour = 1;
var totalTour = 0;
function nextTour() {
	totalTour = Math.ceil($(".itemR").size()/3);
	if(totalTour > curTour) {
		 $('#wrapR').stop().animate({'margin-top':'-=261','opacity':'.5'},{queue:false, duration:700, easing:'swing',
                    complete: function() {
						$('#wrapR').animate({'opacity':'1'},{duration:400, easing:'swing'});
					}
        });
	curTour++;
	}
}
function prevTour() {
	if(curTour > 1) {
		 $('#wrapR').stop().animate({'margin-top':'+=261','opacity':'.5'},{queue:false, duration:700, easing:'swing',
                    complete: function() {
						$('#wrapR').animate({'opacity':'1'},{duration:400, easing:'swing'});
                    }
        });
	curTour--;
	}
}

var curNews = 1;
var totalNews = 0;
function nextNews() {
	totalNews = $(".itemL").size();
	if(totalNews > curNews) {
		 $('#wrapL').stop().animate({'margin-top':'-=136','opacity':'.5'},{queue:false, duration:700, easing:'swing',
                    complete: function() {
						$('#wrapL').animate({'opacity':'1'},{duration:400, easing:'swing'});
					}
        });
	curNews++;
	}
}
function prevNews() {
	if(curNews > 1) {
		 $('#wrapL').stop().animate({'margin-top':'+=136','opacity':'.5'},{queue:false, duration:700, easing:'swing',
                    complete: function() {
						$('#wrapL').animate({'opacity':'1'},{duration:400, easing:'swing'});
                    }
        });
	curNews--;
	}
}
