swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
$(document).ready(function() {
$("a[title], img[title]").tooltip({tip:'#tooltip', effect: 'bouncy', position: "bottom center"});
/*
$("#kitap img[title]").tooltip({tip:'#tooltip', effect: 'fade', fadeOutSpeed: 100, predelay: 400}); 
$("#sol a[title],#menu a[title]").tooltip({tip: '#tooltip', effect: 'fade', fadeOutSpeed: 100, predelay: 400, position: "bottom center"});
$("#sag a[title]").tooltip({tip:'#demotip', effect: 'bouncy'});
*/
});
$(function() {
$("#rESim a").overlay({target: '#gallery', expose: '#f0fff8'}).gallery({speed: 800});});
$("#dipyazi a").overlay({expose: '#f0fff8',effect: 'apple', 
 onBeforeLoad: function() {
  var wrap = this.getContent().find(".contentWrap");wrap.load(this.getTrigger().attr("href"));} 
}); 
$(function() {
$("#pul").scrollable({ vertical:true, size: 1}).mousewheel();
$("#kitaplar").scrollable({ vertical:true, size: 1}).circular().autoscroll(5000);
});
// create custom animation algorithm for jQuery called "bouncy"
$.easing.bouncy = function (x, t, b, c, d) {
    var s = 1.70158;
    if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
    return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}

// create custom tooltip effect for jQuery Tooltip
$.tools.tooltip.addEffect("bouncy",

	// opening animation
	function(done) {
		this.getTip().animate({top: '-=5'}, 500, 'bouncy', done).show();
	},

	// closing animation
	function(done) {
		this.getTip().animate({top: '+=5'}, 500, 'bouncy', function()  {
			$(this).hide();
			done.call();
		});
	}
);

