

	var slide3 = function(IdSelector,XMLpath,trans) {

	$j.get(XMLpath, function(pix) {
			$j('#rotator').html('');

			$j(pix).find('picture').each(function(index) {
						var picture = $j(this);
						var desc = $j(this).find('desc').text();
						var path = $j(this).find('path').text();
						var link = $j(this).find('link').text();

						if (!desc == '') {
							var desc = "<h2><span>"+desc+ "</span></h2>"
						}else{ var desc = ''};

						if (!link == '') {
							var link = "<a href=\""+link+ "\">"
							var close = "</a>"
						}else{var link = ''; var close = ''};

						$j('#rotator').append(
						"<li>"+ link +"<img class=\"slide\" alt=\"\" src=\"" + path + "\"/>"+desc+ close +"</li>"
						);
					});// end of find piture


				roll = $j('#'+IdSelector+' li h2').hide();
			$j('#'+IdSelector).cycle(
				   {fx:     trans, 
				    speed: 1000,
					timeout: 5000}
				).hover(function(){
					if ($j(roll).queue('fx').length>1){return};
					//do animations
					$j(roll).show(1000);
					}, function(){
							if ($j(roll).queue('fx').length>1){return};
							//do animations
							$j(roll).hide(500);
					}
				);
		}); // .get end
	
	};//end of slide function

