function tooltip(nesne,zamanasimi,tipwidth,sinif) {
	var tip = {
		mesaj : null,
		nesne : null,
		temp : null
	}

	tip.mesaj = nesne.title;
	tip.temp = nesne.title;
	nesne.title="";
	nesne.style.cursor="help";
	tip.nesne = document.createElement("div");
	if(sinif) {tip.nesne.className=sinif;} else {tip.nesne.className="toolbox";}
	
	with(tip.nesne.style) {
		position	= "absolute";	
		left		= stil_al(nesne,"left");
		top			= stil_al(nesne,"top");
		width		= tipwidth||'auto';
		display		= "none";
	}
	tip.nesne.innerHTML = tip.mesaj;
	
	document.body.appendChild(tip.nesne);
	setTimeout(function(){tip.nesne.style.display="inline"},zamanasimi||0);
	nesne.onmousemove = function(e) {
		e = window.event||e;
		tip.nesne.style.left = (e.clientX)+"px";
		tip.nesne.style.top = (e.clientY)+"px";
	}
	nesne.onmouseout = function() {
		tip.nesne.parentNode.removeChild(tip.nesne);
		if(tip.temp!=null) {nesne.title=tip.temp;}
	}
}
function stil_al(nesne,ozellik) {
	sonuc = '';
	// Eğer internet exploer ise ve ozellik opacity ise
	if(document.all && ozellik=='opacity') {
		// ozellik değerini değiştir ve filter yap.
		ozellik = 'filter';
	}
	if(nesne.currentStyle) {
		// ozellik içinde - geçiyorsa tireyi sil ve tireden sonraki ilk harfi büyüt.
		ozellik = ozellik.replace(/\-(\w)/g, function (icerik_match, p1){return p1.toUpperCase();});
		sonuc = nesne.currentStyle[ozellik];
	} else {
		sonuc = document.defaultView.getComputedStyle(nesne, "").getPropertyValue(ozellik);
	}
	return sonuc;
}
