			xmlLoad = "false";
			counter = 0;
			$(document).ready(function(){
				$.ajax({
					type: "GET",
					url: "/images/repositories/highlights/"+highlightData,
					dataType: "xml",
					success: function(data) {
						$(data).find("headline").each(function() {
						  var title = $(this).find('title').text();
						  $("#HLProdProm").append(title);
						});
						$(data).find("highlight").each(function() {
							counter ++;
							var id = $(this).attr('id');
							var title = $(this).find('title').text();
							var image = $(this).find('image').text();
							var thelink = $(this).find('thelink').text();
							var target = $(this).find('target').text();
						    $("#HLList").append("<div class='HLItem' id='"+id+"'><a href='"+thelink+"' "+target+" class='HLImg' style='background-image:url("+image+");'></a><a href='"+thelink+"' "+target+" class='HLTitle'>"+title+"</a></div>");
						    $("#HLSel").append("<a href='javascript:;' rel='"+counter+"'>"+counter+"</a>");
						    
						});
						$("#HLList div:nth-child(1)").children().fadeIn("normal");
						$("#HLSel a:nth-child(1)").css("textDecoration","underline");
						xmlLoad = "true";
						hlCnt = 0;
						hls=$("#HLList div").length;
						timer_is_on=0;
						restart = 0;
						var t;
						
						function hlSlide(showItem){
							//var showItem =
							setVisible = "#HLList div:nth-child("+showItem+")";
							
							$(setVisible).siblings().children().fadeOut("normal");
							$(setVisible).children().fadeIn("normal");
							$("#HLSel a").css("textDecoration","none");
							$("#HLSel a:nth-child("+showItem+")").css("textDecoration","underline");
							//clearTimeout(t);
							//restart = 1;
							//hlTimer();
						}
						
						function hlTimer(){
							if (restart==0) {
								if (hlCnt>=hls) {
									hlCnt=1;
								}else{
									hlCnt ++;
								}												
								hlSlide(hlCnt);
								t=setTimeout(function(){hlTimer()},5000);
							}else{
								clearTimeout(t);
								//alert("cleared");
								//hlSlide(hlCnt);
								t=setTimeout(function(){hlTimer()},5000);
								restart = 0;
							}
							
						}
						//hlTimer();												
						function doTimer(){
						  if (!timer_is_on)  {
						    timer_is_on=1;
						    hlTimer();
						    }
						}
						doTimer();
						
						$("#HLSel a").click(function(){
							hlSlide($(this).attr('rel'), "#HLList div:nth-child("+$(this).attr('rel')+")");
							hlCnt = $(this).attr('rel');
							restart = 1;
						});	
					}
				});
			});