/* create a timeOut function in jQuery */
jQuery.fn.idle = function(time){
    return this.each(function(){
        var i = $(this);
        i.queue(function(){
            setTimeout(function(){
            i.dequeue();
            }, time);
        });
    });
};



$(document).ready(function(){
	
	$("a.gallery").fancybox({
		'autoscale'			: 	true,
		'cyclic'				:   true,
		'overlayShow'		:	true,
		'overlayOpacity'	:	.7	,
		'type'					: 'iframe',
		'width'				: 640,
		'height'				: 600,
		'scrolling'			: 'no',
		'titleShow'			: true
	});
	
});



