$(document).ready(function(){
	$(".sitene-ekle").click(function(){
		$("#sitene-ekle").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
});

$(document).ready(function(){
	$(".sosyal-imleme").click(function(){
		$("#sosyal-imleme").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
});

function submitMe() {
if (window.event.keyCode == 13)
{
document.myForm.submit();
}
}

$(document).ready(function() {
  function filterPath(string) {
  return string
	.replace(/^\//,'')
	.replace(/(index|default).[a-zA-Z]{3,4}$/,'')
	.replace(/\/$/,'');
  }
  var locationPath = filterPath(location.pathname);
  $('a[href*=#]').each(function() {
	var thisPath = filterPath(this.pathname) || locationPath;
	if (  locationPath == thisPath
	&& (location.hostname == this.hostname || !this.hostname)
	&& this.hash.replace(/#/,'') ) {
	  var $target = $(this.hash), target = this.hash;
	  if (target) {
		var targetOffset = $target.offset().top;
		$(this).click(function(event) {
		  event.preventDefault();
		  $('html, body').animate({scrollTop: targetOffset}, 400, function() {
			location.hash = target;
		  });
		});
	  }
	}
  });
});

// tooltip start //

this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



// starting the script on page load
$(document).ready(function(){
	tooltip();
});

// tooltip end //
<!-- Begin
function verify() {
if (document.form.message.value=="") {
alert("Boş mesaj gönderemezsiniz.");
return false;
}
else {
return true;
}
}
function confirmDelete()
{
var ok=confirm("Mesajı silmek istediğinizden emin misiniz?");
if (ok)
	return true ;
else
	return false ;
}
// -->