	$(document).ready(function(){
	
		$(".HeaderMenu img").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
		);
		
		$(".MainNav img").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
		);
		
		$("#page-bar img").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
		);
		
		$(".children").hover(
		 function()
		 {
		  $(this).parent().find('img').get(0).src = $(this).parent().find('img').get(0).src.replace("_off","_over");
		 },
		 function()
		 {
		  $(this).parent().find('img').get(0).src = $(this).parent().find('img').get(0).src.replace("_over","_off");
		 }
		);
		
		$(".OnlineIslemler img").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
		);
		
		$(".NewsPrevNext img").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
		);
		
		$(".EtkPrevNext img").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
		);
		
		$("#BulletionDoorBtn").click(function(){
			$("#BulletinDoor").hide();
			$("#BulletinForm").show();
		});
		
		$("#BulletinButton").click(function(){
			
			$.ajax({
			   type: "POST",
			   url: "/bulletin-subscribe/",
			   data: "email="+$("#BulletinEmail").val(),
			   success: function(html){
				   $("#BulletinForm").html("E-Posta bültenimize abone olduğunuz için teşekkür ederiz.");
				}
			});
			
		});
		
	});
	
	jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	};
	
	jQuery(function( $ ){
		
		$('.NewsItems').serialScroll({
			items:'li',
			prev:'#NewsPrevButton',
			next:'#NewsNextButton',
			offset:-166, //when scrolling to photo, stop 230 before reaching it (from the left)
			start:1, //as we are centering it, start at the 2nd
			duration:1200,
			force:true,
			stop:true,
			lock:false,
			cycle:false, //don't pull back once you reach the end
			easing:'easeOutQuart', //use this easing equation for a funny effect
			jump: false //click on the images to scroll to them
		});
		
		$('.TesisSlideHolder').serialScroll({
			items:'li',
			prev:'#TesislerPrev',
			next:'#TesislerNext',
			offset:-167, //when scrolling to photo, stop 230 before reaching it (from the left)
			start:0, //as we are centering it, start at the 2nd
			duration:1200,
			force:true,
			stop:true,
			lock:false,
			cycle:false, //don't pull back once you reach the end
			easing:'easeOutQuart', //use this easing equation for a funny effect
			jump: false //click on the images to scroll to them
		});
		
		$('.EtkinlikSlideHolder').serialScroll({
			items:'li',
			prev:'#EtkPrevButton',
			next:'#EtkNextButton',
			offset:-102, //when scrolling to photo, stop 230 before reaching it (from the left)
			start:1, //as we are centering it, start at the 2nd
			duration:1200,
			force:true,
			stop:true,
			lock:false,
			cycle:false, //don't pull back once you reach the end
			easing:'easeOutQuart', //use this easing equation for a funny effect
			jump: false //click on the images to scroll to them
		});
		
	});
