function bannerSlideshow(elID, xmlPath) {
	if ($('#'+elID).length > 0){
		$.ajax({
			type: 'GET',
			url: xmlPath,
			dataType: 'xml',
			success: function(xml){
				$('#'+elID).append('<ul>');
				var timeouts = new Array();
				$(xml).find('photo').each(function(index, value){	
					if ($(this).attr('id')) {
						timeouts[index] = $(this).attr('displaytime');
					}
					$('#'+elID+' ul').append('<li id="l'+$(this).attr('id')+'" ><a href="' + $(this).find('subtitle').text() + '"><img src="' + $(this).attr('path') + '" /></a><p>'+$(this).find('teaser').text()+'</p></li>');				
				});				
				$('#'+elID+' ul').cycle({ 
					fx:     'fade',						
					timeoutFn: function(currElement, nextElement, opts, isForward) {
						return opts.mTimeouts[opts.currSlide] * 1000; 
					},
					mTimeouts: timeouts,
					random:  1,
					pause: true, 				
				});		
			}
		});
	}
}









