// Javascript!
$(function() {
	/*
  	 Herhangi bir taga verilen HREF özniteliğini algılayar
     ve eğer değer boş değilse link olarak işlevsellik kazanmasını
     sağlar.
	*/	
	
	$("input").each(function(a,d) {
		if(($(d).val() == "") || ($(d).val() == undefined)) {
			if($(d).attr("auto") != "") {
				$(d).val($(d).attr("auto"));
			}
		}
	}).focus(function() {
		if($(this).val() == $(this).attr("auto")) {
			$(this).val("");
		}
	}).blur(function() {
		if($(this).val() == "") {
			$(this).val($(this).attr("auto"));
		}
	});
	
	$("ul.link-list a").hover(function() {
		$(this).stop().animate({
			"color": "#111",
			"backgroundColor": "#efefef"
		});
	},function() {
		$(this).stop().animate({
			"color": "#a1a1a1",
			"backgroundColor": "#000"
		});
	});
	
	boxOpen = false;
	$(".effect-trigger").click(function() {
		if(boxOpen) {
			$(".effect-box").stop().animate({
				"marginTop":"0px",
				"height":"241px"
			});
			$("span.arrow").removeClass("down");
			boxOpen = false;
		} else if (!boxOpen){
			$(".effect-box").stop().animate({
				"marginTop":"-200px",
				"height":"441px"
			});
			$("span.arrow").addClass("down");
			boxOpen = true;
		}
	});
	
	
	
	
	
});
