/*
 * jQuery Cycle Lite Plugin, Random image preloader Extension
 * http://www.gabrielharrison.co.uk
 * Copyright (c) 2010 G. Harrison
 * Version: 1.0 (04/07/2010)
 * Requires: jQuery v1.2.3 or later
 * Requires: jquery.cycle.lite v1.0 or later
 */
 
var RIPdebug = true;
 
function PIRonBefore(curr, next, opts, fwd) {

	if(RIPdebug) document.getElementById('RIPbefore').innerHTML = 'Curr: ' + curr.src + '<br>' + 'Next: ' + next.src;
	
}

function PIRonAfter(curr, next, opts, fwd) {

	var urlParts = next.src.split('?');
	var urlBase = urlParts[0];
	var now = new Date();
	
	curr.src = urlBase + '?' + now.getTime();
	
	if(RIPdebug) document.getElementById('RIPafter').innerHTML = 'Curr: ' + curr.src + '<br>' + 'Next: ' + next.src;
}

