/* BANNER ANIMATION */
$(function(){
		   
	banner_fade(".banner_navigation a",".banner");
	arrow(); 
	autoslide(".banner_navigation a",10000); 

});


/* DROPDOWN MENU */
$(function(){
		   
	jQuery('ul.sf-menu').superfish({
		speed: 200,
		animation:  {opacity:'show',height:'show'}
	});
	
});

/* PORTFOLIO IMAGE ANIMATION */

$(document).ready(function(){
		
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'70px'},{queue:false,duration:160});	
	}, function() {
		$(".cover", this).stop().animate({top:'120px'},{queue:false,duration:160});
	});
	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'70px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
	});
});


/* FORM VALIDATION */
$(function(){
		   
    $("#contact_form").validate({
	  rules: {
		name: {
		  	required: true,
		},
		email: {
		  	required: true,
		  	email: true
		},
		verification: {
      		equalTo: "#string"
    	}
	  },
	  messages: {
		verification: {
			required: "Bu alanı doldurunuz",
			equalTo: "doğrulama kodu yanlış"
		}
	  }
	});
	
});
