$(document).ready(function(){

	$("div.hover").css({opacity:0});
	
		$("#logo").hover(function() {	
			$(this).find("a").stop().animate({rotate: '10deg'}, {
				duration: 500,
				easing: 'easeOutCirc',
				complete: function() {
					$(this).animate({rotate: '-10deg'}, {
						duration: 500,
						easing: 'easeOutCirc',
						complete: function() {
							$(this).animate({rotate: '0deg'}, {
								duration: 500,
								easing: 'easeOutCirc'
							});
						}
					});
				}
			});
			}, function() { 
				$(this).find("a").stop().animate({rotate: '0deg'}, {
					duration: 500,
					easing: 'easeOutBack'
				});
		});
		
		//Hakkimizda
		$('#t1').mouseover(function() {
			$("#hakkimizda div.txt div.hover").stop().animate({opacity:1}, {duration:500});
			$(this).animate({rotate: '40deg'}, {
				duration: 300,
				easing: 'easeOutCirc',
				complete: function() {
					$(this).animate({rotate: '-40deg'}, {
						duration: 300,
						easing: 'easeOutBack',
						complete: function() {
							$(this).animate({rotate: '0deg'}, {
								duration: 400,
								easing: 'easeOutCirc'
							});
						}
					});
				}
			});
		}).mouseout(function() {$("#hakkimizda div.txt div.hover").stop().animate({opacity:0}, {duration:500});});
		
		//etkinlikler
		$("#t2").hover(function() {	//On hover...
			$("#etkinlikler div.txt div.hover").stop().animate({opacity:1}, {duration:500});
			$(this).find("a").stop().animate({marginTop: "30",rotate: '-10deg'}, {
				duration: 300,
				easing: 'easeOutBack'
				});
			}, function() { //On hover out...
				$("#etkinlikler div.txt div.hover").stop().animate({opacity:0}, {duration:500});
				$(this).find("a").stop().animate({marginTop: "0",rotate: '0deg'}, {
					duration: 300,
					easing: 'easeOutBack'
					});
		});
		
		
		//galeri
		$("#t3").hover(function() {	//On hover...
			$("#galeri div.txt div.hover").stop().animate({opacity:1}, {duration:500});
			$(this).find("a").stop().animate({marginLeft: "-15"}, {
				duration: 500,
				easing: 'easeOutBack',
				complete: function() {
					$(this).animate({marginLeft: "25"}, {
						duration: 300,
						easing: 'easeOutCirc'
						});
					}
				});
			}, function() { //On hover out...
				$("#galeri div.txt div.hover").stop().animate({opacity:0}, {duration:500});
				$(this).find("a").stop().animate({marginLeft: "-15"}, {
					duration: 300,
					easing: 'easeOutBack',
					complete: function() {
						$(this).animate({marginLeft: "0"}, {
							duration: 300,
							easing: 'easeOutCirc'
							});
						}
				});
		});
		
		//Ozel Projeler
		$('#t4').mouseover(function() {
			$("#ozel-projeler div.txt div.hover").stop().animate({opacity:1}, {duration:500});
			$(this).animate({rotate: '-40deg'}, {
				duration: 300,
				easing: 'easeOutCirc',
				complete: function() {
					$(this).animate({rotate: '40deg'}, {
						duration: 300,
						easing: 'easeOutCirc',
						complete: function() {
							$(this).animate({rotate: '0deg'}, {
								duration: 400,
								easing: 'easeOutCirc'
							});
						}
					});
				}
			});
		}).mouseout(function() {$("#ozel-projeler div.txt div.hover").stop().animate({opacity:0}, {duration:500});});
		
		//Anne-Baba
		$("#t5").hover(function() {	//On hover...
			$("#anne-baba div.txt div.hover").stop().animate({opacity:1}, {duration:500});
			$(this).find("a").stop().animate({marginTop: "30",rotate: '30deg'}, {
				duration: 300,
				easing: 'easeOutBack',
				complete: function() {
					$(this).animate({marginTop: "-10",rotate: '-20deg'}, {
						duration: 300,
						easing: 'easeOutCirc'
						});
					}
				});
			}, function() { //On hover out...
				$("#anne-baba div.txt div.hover").stop().animate({opacity:0}, {duration:500});
				$(this).find("a").stop().animate({marginTop: "0",rotate: '0deg'}, {
					duration: 300,
					easing: 'easeOutBack'
					});
		});
		
		//Iletisim
		$("#t6").hover(function() {	//On hover...
			$("#iletisim div.txt div.hover").stop().animate({opacity:1}, {duration:500});
			$(this).find("a").stop().animate({marginTop: "-30"}, {
				duration: 300,
				easing: 'easeOutBack',
				complete: function() {
					$(this).animate({marginTop: "10"}, {
						duration: 300,
						easing: 'easeOutCirc',
							complete: function() {
								$(this).animate({marginTop: "-15"}, {
									duration: 300,
									easing: 'easeOutCirc'
									});
								}
						});
					}
				});
			}, function() { //On hover out...
				$("#iletisim div.txt div.hover").stop().animate({opacity:0}, {duration:500});
				$(this).find("a").stop().animate({marginTop: "0"}, {
					duration: 300,
					easing: 'easeOutBack'
					});
		});
		
		
		$("#paylasinLinks a").hover(function() {	
			$(this).stop().animate({rotate: '20deg'}, {
				duration: 500,
				easing: 'easeOutCirc',
				complete: function() {
					$(this).animate({rotate: '-20deg'}, {
						duration: 500,
						easing: 'easeOutCirc',
						complete: function() {
							$(this).animate({rotate: '0deg'}, {
								duration: 500,
								easing: 'easeOutCirc'
							});
						}
					});
				}
			});
			}, function() { 
				$(this).stop().animate({rotate: '0deg'}, {
					duration: 500,
					easing: 'easeOutBack'
				});
		});
		
		$(".slideshowPic").transform({rotate: '2.7deg'});
		$(".mainFotoPic").transform({rotate: '-5.5deg'});
		$("#biziTakipEdinLinks").transform({rotate: '-3deg'});
		
});

