$(document).ready(
	(function() {
	    // Webkit browsers Loads CSS + scripts simultaniously, so we need to pause loading scripts a bit before loading css.
	    if (jQuery.browser.safari && document.readyState != "complete") {
	        //console.info('ready...');
	        setTimeout(arguments.callee, 100);
	        return;
	    }

	    // BEGIN : Add the fun from here...
 	
 	$(".roomoverview [rel=overview]").fancybox({
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  (currentIndex + 1) + ' af ' + currentArray.length + ' - ' + title + '</span>';
		}
	});

    // END : ...to here

	})
);