// JavaScript Document
$(document).ready(function(){
$(this).delay(500,function(){
		$("#main_text").fadeIn(2000);
	});

$(function(){
	$(".slide_nedir").hover(function(){
		$("img", this).stop().animate({top:"-50px"},{queue:false,duration:200});
	}, function() {
		$("img", this).stop().animate({top:"0px"},{queue:false,duration:200});
	});
});
$(function(){
	$(".slide_nerede").hover(function(){
		$("img", this).stop().animate({top:"-50px"},{queue:false,duration:200});
	}, function() {
		$("img", this).stop().animate({top:"0px"},{queue:false,duration:200});
	});
});
$(function(){
	$(".slide_neyapti").hover(function(){
		$("img", this).stop().animate({top:"-50px"},{queue:false,duration:200});
	}, function() {
		$("img", this).stop().animate({top:"0px"},{queue:false,duration:200});
	});
});
$(function(){
	$(".slide_kimler").hover(function(){
		$("img", this).stop().animate({top:"-50px"},{queue:false,duration:200});
	}, function() {
		$("img", this).stop().animate({top:"0px"},{queue:false,duration:200});
	});
});
$(".nedir_li").hover(function() {
                $(this).stop().animate({ backgroundColor: "#c90033"}, 500);
        },function() {
                 $(this).stop().animate({ backgroundColor: "#fff"}, 200);
        });
$(".nedir_image_link").hover(function() {			  
               /* $(this).stop().animate({ backgroundColor: "#c90033"}, 500);*/
        },function() {
                /* $(this).stop().animate({ backgroundColor: "#fff"}, 200);*/
        });
$(".nedir_li a").hover(function() {
                $(this).stop().animate({color: "#fff"  }, 300);
        },function() {
                 $(this).stop().animate({color: "#000"  }, 200);
        });
$(".neyapti_li").hover(function() {
                $(this).stop().animate({ backgroundColor: "#fe9d0a"}, 500);
        },function() {
                 $(this).stop().animate({ backgroundColor: "#fff"}, 200);
        });
$(".neyapti_li a").hover(function() {
                $(this).stop().animate({color: "#fff"  }, 300);
        },function() {
                 $(this).stop().animate({color: "#000"  }, 200);
        });
$(".kimler_li").hover(function() {
                $(this).stop().animate({ backgroundColor: "#00fa32"}, 500);
        },function() {
                 $(this).stop().animate({ backgroundColor: "#fff"}, 200);
        });
$(".kimler_li a").hover(function() {
                $(this).stop().animate({color: "#fff"  }, 300);
        },function() {
                 $(this).stop().animate({color: "#000"  }, 200);
        });
$(".nerede_li").hover(function() {
                $(this).stop().animate({ backgroundColor: "#858585"}, 500);
        },function() {
                 $(this).stop().animate({ backgroundColor: "#fff"}, 200);
        });
$(".nerede_li a").hover(function() {
                $(this).stop().animate({color: "#fff"  }, 300);
        },function() {
                 $(this).stop().animate({color: "#000"  }, 200);
        });
/*$(this).delay(500,function(){
		$(".nedir_content").fadeIn(1000);
	});*/
/*$('.nerede_li').hover(function()
{
  $(this).css("background-color", "#858585");
},
function()
{
  $(this).css("background-color", "#fff");
});	*/
						   
						   
/*	
	$buildingup = false;
	
	$("#sliders>*").show();
	
	//Blurs all links when clicked
	$("a").click(function(){
		$(this).blur();
	});
	
	$(this).delay(2000,function(){
		$("#titlebar").fadeOut(1000);
	});
	
	$(this).delay(3500,function(){
		
		//Show the elements	
		$(".village").stop().animate({top:'30px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
		$(".cloudbar").stop().animate({top:'0px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
		$buildingup = true;	
		
    });
	
	$("a.toggle").click(function(){
		
		if ($buildingup == false){
			
			$("#titlebar").fadeOut(1000);
			$(this).delay(1000,function(){
				$(".village").stop().animate({top:'30px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
				$(".cloudbar").stop().animate({top:'0px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
				$buildingup = true;
			});
		
		}else{
			
			$(".village").stop().animate({top:'366px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
			$(".cloudbar").stop().animate({top:'-465px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
			$buildingup = false;
			
			$(this).delay(2000,function(){
				$("#titlebar").fadeIn(1000);
			});
			
		}
		
	});
	
	//Change background color of body
	$("a.change").click(function(){
		$('body').css('background-color','#FFF');				 
	});
	 */
});