/*!
 * Scripts for the demo pages on the jScrollPane website.
 *
 * You do not need to include this script or use it on your site.
 *
 * Copyright (c) 2010 Kelvin Luck
 * Dual licensed under the MIT and GPL licenses.
 */

$(function()
{
	// Copy the pages javascript sourcecode to the display block on the page for easy viewing...
	var sourcecodeDisplay = $('#sourcecode-display');
	if (sourcecodeDisplay.length) {
		sourcecodeDisplay.empty().append(
			$('<code />').append(
				$('<pre />').html(
					$('#sourcecode').html().replace(/\n\t\t\t/gm, '\n').replace('>', '&gt;').replace('<', '&lt;')
				)
			)
		);
		$('#css-display').empty().append(
			$('<code />').append(
				$('<pre />').html(
					$('#page-css').html().replace(/\n\t\t\t/gm, '\n')
				)
			)
		);
	}
});
(function($) {
    $(window).load(function() {
        window.loaded = 1;
    });
 
    $.windowLoaded = function(fn) {
        var windowLoadedFn = window.loaded ?
          (function(fn) { fn.call(window); }) : // la finestra  giˆ stata caricata
          (function(fn) { $(window).load(fn); }); // la finestra non  stata ancora caricata
 
        windowLoadedFn(fn);
    };
})(jQuery);
// It seems some people copy this file and put it on their sites despite the message at the top
// So let's make sure they don't end up in my stats...

