	//**********//bg show-hide********//
	   jQuery(document).ready(function(){
        jQuery('<a id="toggle-docs" href="#">bg show/hide</a>').click(function(){
            jQuery("#main,.tail-top").toggle();
            return false;
         })
        .prependTo("body");
        //.trigger("click");
    });
//for vtour**********//
	$(function(){
	$("#vtour1").click(function(){
        $('#main,.tail-top,#toggle-docs,.top-links,ul#jbg-menu').hide('slow');
		$("#vtour").animate({ opacity: "show" }, "slow");
    });
	$("#vtour1x").click(function(){
		$("#vtour").animate({ opacity: "hide" }, "slow");
		location.reload();
		
    });
});
//********index links*************
jQuery(document).ready(function($) {
		amount=6;
});
//.........
$(document).ready(function() {
	
	var z_ind=[];
	var position=[];
	
	for (var i=1; i<=amount; i++){
		$('#ban'+i).data('num',i);
		topi=$('#ban'+i).css('top');
		lefti=$('#ban'+i).css('left');
		position[i]={top:topi, left:lefti};
		z_ind[i]=$('#ban'+i).css('z-index');
	}
	$('#ban1').addClass('active');
	for (var i=1; i<=amount; i++) {
		$('#ban'+i).animate(position[1],0)
	}
	for (var i=1; i<=amount; i++) {
		$('#ban'+i).animate(position[i],800)
	}
	function summ(a,b){
		if (a+b==amount) {return (a+b)} else return (a+b) % amount;
	}
	function left(i){
		$('#gallery li').removeClass('active');
		for (var j=1; j<amount; j++) {
			$('#ban'+summ(i,j)).animate(position[j+1],200);
			$('#ban'+summ(i,j)).css('z-index',z_ind[j+1]);	
		}
		$('#ban'+i).animate(position[1],200);
		$('#ban'+i).css('z-index',z_ind[1]);
		$('#ban'+i).addClass('active');
	}
	$('#gallery li').click(function(){
		
	})
	$('#gallery li').click(function(){
		left($(this).data('num'));
	})
});
//for video1**********//
	$(function(){
	$("#video1").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v1").animate({ opacity: "show" }, "slow");
    });
	$("#video1x").click(function(){
		$("#v1").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video2**********//
	$(function(){
	$("#video2").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v2").animate({ opacity: "show" }, "slow");
    });
	$("#video2x").click(function(){
		$("#v2").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video3**********//
	$(function(){
	$("#video3").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v3").animate({ opacity: "show" }, "slow");
    });
	$("#video3x").click(function(){
		$("#v3").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video4**********//
	$(function(){
	$("#video4").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v4").animate({ opacity: "show" }, "slow");
    });
	$("#video4x").click(function(){
		$("#v4").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video5**********//
	$(function(){
	$("#video5").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v5").animate({ opacity: "show" }, "slow");
    });
	$("#video5x").click(function(){
		$("#v5").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video6**********//
	$(function(){
	$("#video6").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v6").animate({ opacity: "show" }, "slow");
    });
	$("#video6x").click(function(){
		$("#v6").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video7**********//
	$(function(){
	$("#video7").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v7").animate({ opacity: "show" }, "slow");
    });
	$("#video7x").click(function(){
		$("#v7").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video8**********//
	$(function(){
	$("#video8").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v8").animate({ opacity: "show" }, "slow");
    });
	$("#video8x").click(function(){
		$("#v8").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video9**********//
	$(function(){
	$("#video9").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v9").animate({ opacity: "show" }, "slow");
    });
	$("#video9x").click(function(){
		$("#v9").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video10**********//
	$(function(){
	$("#video10").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v10").animate({ opacity: "show" }, "slow");
    });
	$("#video10x").click(function(){
		$("#v10").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video11**********//
	$(function(){
	$("#video11").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v11").animate({ opacity: "show" }, "slow");
    });
	$("#video11x").click(function(){
		$("#v11").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video12**********//
	$(function(){
	$("#video12").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v12").animate({ opacity: "show" }, "slow");
    });
	$("#video12x").click(function(){
		$("#v12").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video13**********//
	$(function(){
	$("#video13").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v13").animate({ opacity: "show" }, "slow");
    });
	$("#video13x").click(function(){
		$("#v13").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video14**********//
	$(function(){
	$("#video14").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v14").animate({ opacity: "show" }, "slow");
    });
	$("#video14x").click(function(){
		$("#v14").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//for video15**********//
	$(function(){
	$("#video15").click(function(){
        $("#content").animate({ opacity: "hide" }, "slow");
		$("#v15").animate({ opacity: "show" }, "slow");
    });
	$("#video15x").click(function(){
		$("#v15").animate({ opacity: "hide" }, "slow");
		$("#content").animate({ opacity: "show" }, "slow");
    });
});
//*******scrol top************//
$(function() {
            $("#yukari").click(function() {
                // sayfamizi kaydiran kod
                $("html,body").animate({ scrollTop: "0" }, 1000);
            });
        });
        $(window).scroll(function() {
            var uzunluk = $(document).scrollTop();
            if (uzunluk > 300) $("#yukari").fadeIn(500);
            else { $("#yukari").fadeOut(500); }
        });
//************more********//
$(function() {
            $("#moreinfo").click(function() { 
                $("#more").slideToggle("slow");
			return false;
			});
		});
