$.ajax({ type: "POST",  
		 url: "widgets/gallery/remote.asmx/GetInformationMultipleByPathXml",  
		 dataType: "xml",  
		 data: "Path=/files/Visitorsarea",  
		 processData: false,  
		 error: function(XMLHttpRequest, textStatus, errorThrown) { ajaxError(XMLHttpRequest,textStatus, errorThrown); },  
		 success: function(xml) { ajaxFinish(xml); }  
		}); 
		
		function ajaxFinish(xml)  
		{   var set = null; 
		 //alert("hey here is the XML: "+xml); 
		   $("File", xml).each(function(intIndex, objValue)  
   			 {  
			 	//alert((intIndex+1)%6);
				 name = $("Name", this).text();  
				 size = $("Size", this).text();  
				 path = $("Path", this).text();
				 desc = $("Description", this).text();
				  
				  //barkdesc=desc.split("**TEXT=");
				  name=name.substr(name.indexOf(" "));
				  foo=name.split(".jpg");
				  
				  foodesc=desc.split("**URL=");
				  
				  //alert((intIndex+1)%6==1);
				 if(intIndex%6==0){
					 set=$("<div id='set"+intIndex+"' class='clear set'></div>");
				
				  	$("#visitorsarea").append(set);
				 }
				  /*if((intIndex)%6==0){
					  curIndex = intIndex;
					 $("#visitorsarea").append("<div id='set"+curIndex+"' class='clear set'>");
					 
					 if(foodesc.length>1)
					 	$("#visitorsarea #set"+curIndex).append("<div id='"+intIndex+"' class='v-img'><a href='"+foodesc[1]+"'><img src='"+path+"' /></a><h3>"+foo[0]+"</h3><p>"+foodesc[0]+"</p></div>");
					 else
					 	$("#visitorsarea #set"+curIndex).append("<div id='"+intIndex+"' class='v-img'><img src='"+path+"' /><h3>"+foo[0]+"</h3><p>"+foodesc[0]+"</p></div>");
				  }
				  else if((intIndex)%6==5){
					  
					   if(foodesc.length>1)
					 	$("#visitorsarea #set"+curIndex).append("<div id='"+intIndex+"' class='v-img'><a href='"+foodesc[1]+"'><img src='"+path+"' /></a><h3>"+foo[0]+"</h3><p>"+foodesc[0]+"</p></div></div>");
						 else
					 	$("#visitorsarea #set"+curIndex).append("<div id='"+intIndex+"' class='v-img'><img src='"+path+"' /><h3>"+foo[0]+"</h3><p>"+foodesc[0]+"</p></div></div>");
				  }*/
				  //else{
					  if(foodesc.length>1)
					 	set.append("<div id='"+intIndex+"' class='v-img'><a href='"+foodesc[1]+"'><img src='"+path+"' /></a><h3>"+foo[0]+"</h3><p>"+foodesc[0]+"</p></div>");
					 else
					 	set.append("<div id='"+intIndex+"' class='v-img'><img src='"+path+"' /><h3>"+foo[0]+"</h3><p>"+foodesc[0]+"</p></div>");
					
				  //}
				  

			  
		     });
		  
		   
				jQuery('#visitorsarea').cycle({
				fx:     'scrollHorz',
				speed:  'slow', 
				timeout: 0, 
				next:   '#controlright', 
				prev:   '#controlleft' 
				});
		   
		 }  
   
		 function ajaxError(xmlObj,textStatus,errorThrown)  
		 {  
			 // Comment this out for live environments, and put a friendly error message  
			 alert("(Ajax error: "+txt+")");  
			 alert(request.responseText);  
		 }
