
	function toggleDisplay(id){	
		status = document.getElementById(id).style.display;
		if(status == 'none') document.getElementById(id).style.display = "block";
		else document.getElementById(id).style.display = "none";
		
	}
	

							
	$(document).ready(function() { 
		// enable tooltip for "download" element. use the "slide" effect 
			$("a").tooltip({ tip:'.smallTip', effect: 'slide', predelay: 700, offset: [+0, -10]});  
	});
	
	
	
	//pic-down tooltip, ie for randompictures
	$.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: '+=15'}, 500, 'bouncy', done).show();
		},

		// closing animation
		function(done) {
			this.getTip().animate({top: '-=15'}, 500, 'bouncy', function()  {
				$(this).hide();
				done.call();
			});
		}
	);
		
	
/////////////////////////////////////////////////////////////////////////////////////////
	//////////////////////////////////////////////////////////////////////////////////////
	
	// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready
	/*$(document).ready(function() {



	$("img[rel]").overlay();
	});*/
	$(function() {
		$("#triggers img[rel]").overlay({effect: 'apple'});
	});


	
	
	

