var delay;
			
jQuery(document).ready(function() {
	//Rotator reference variable
	var rotRef = jQuery('#rotatorLink').attr('href');
	//Get the XML list of rotator graphics
	jQuery.ajax({
		type: "GET",
		url: rotRef,
		dataType: "xml",
		success: function(xml) {
			var output = '<div class="stepcarousel" id="jpgrotator">' + "\n" + '<div class="belt">';
			jQuery(xml).find('Rotator').each( function() {
				delay = jQuery(this).find('Delay');
				delay = jQuery(delay[0]).text();
				delay *= 1000;

				jQuery(this).find('Image').each( function() {
					var file = jQuery(this).find('File').text();
					var target = "";
					var link = jQuery(this).find('Link').text();
					var link_srch = /^\[(.*)\]/g;

					output += '<div class="panel"><a ';

					if (link_srch.test(link) == true)
					{
						target = link.substring(1, link_srch.lastIndex - 1);
						link = link.substring(link_srch.lastIndex, link.length);
						
						output += 'target="' + target + '" '; 
					}
					
					output += 'href="' + link + '"><img src="' + file + '" alt="" /></a></div>' + "\n";
				});
			}); //close each(
			output += '</div>' + "\n" + '</div>' + "\n";
			
			output += '<p id="jpgrotator-paginate" style="width: 250px; text-align: center; position: absolute; left: 0px; top: 455px; z-index: 99999;"><img src="/Uploaded_Files/31/includes/images/layout/opencircle.png" data-over="/Uploaded_Files/31/includes/images/layout/graycircle.png" data-select="/Uploaded_Files/31/includes/images/layout/closedcircle.png" data-moveby="1"></p>';
			
			jQuery('#rotator').html(output);
			
			if (jQuery('#jpgrotator').length > 0)
			{
				stepcarousel.setup({
					galleryid: 'jpgrotator', //id of carousel DIV
					beltclass: 'belt', //class of inner 'belt' DIV containing all the panel DIVs
					panelclass: 'panel', //class of panel DIVs each holding content
					autostep: {enable:true, moveby:1, pause: delay },
					panelbehavior: {speed:500, wraparound:true, persist:true},
					defaultbuttons: {enable: false},
					contenttype: ['inline'] // content type <--No comma following the very last parameter, always!
				});
			}
		}
	}); //close $.ajax(
}); //close $(