	//Youtube video courusel 
	//==============================
	//Load player api asynchronously.
    var tag = document.createElement('script');
    tag.src = "http://www.youtube.com/player_api";
    var firstScriptTag = document.getElementsByTagName('script')[0];
    firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

    var videos;
	var counter = 0;
	var arr=["gatbbKmUO44", "_potcY2XZ4U", "uKZzlZts_Tg"];
	
	function changeCounterPlus() {
		counter = counter + 1;
		if (counter>2) {counter=0;}
		}
	function changeCounterMinus() {
		counter = counter - 1;
		if (counter<0) {counter=2;}
		}		
    function addVideo() {
        videos = new YT.Player('videos', {
          	height: '322',
          	width: '390',
        	videoId: arr[counter],
        	});
    	}
	//==============================	
	$(function() {
		$(".next").click(function(){
			$("#videos").empty();
			changeCounterPlus();
			addVideo();
			});
		$(".prev").click(function(){
			$("#videos").empty();
			changeCounterMinus();
			addVideo();
			});
		});
