$(document).ready(function() {	
		$.ajax({
		type: "GET",
		url: "/ar/JQFlash/xml/de.xml",
		dataType: "xml",
		success: function(xml) {
			$(xml).find('site').each(function(){
			var id = $(this).attr('id');
				var des = $(this).find('des').text();
				var taxt = $(this).find('taxt').text();
				var imge = $(this).find('imge').text();
				var url = $(this).find('url').text();
				var url_t = $(this).find('url_t').text();
				var target = $(this).find('target').text();
				var icon = $(this).find('icon').text();
				var icon_t = $(this).find('icon_t').text();
				var taitle = $(this).find('taitle').text();
				var link = $(this).find('link').text();
				var target2 = $(this).find('target2').text();
//<img src="'+ imge +'" />
				$('<li style=" background:  url('+ imge+');background-position:center top;background-repeat:no-repeat;"></li>').html(' <div class="all"><p>'+ taxt +'</p><div class="more"><a class="link" target="'+ target +'" href="'+ url +'"><img src="/ar/images/Sp.png" width="64" hight="22" /></a></div></div>').appendTo('#output');
				$('<li></li>').html('<a target="'+ target2 +'" href="'+ link +'"><div style=" background:  url('+ icon +');background-position:lift top;background-repeat:no-repeat; width:228px;height: 65px;"><div style=" background:  url('+ icon_t +');background-position: center center;background-repeat:no-repeat; width: 150px;height: 48px;"><h3 class="h3">'+ taitle +'</h3></div></div></a>').appendTo('#tabs');
				//$("#output li").css({'background-color' : '', 'background-image' : "url('"+imge+"')", 'background-repeat' : 'no-repeat', 'background-position' : 'center top'});
			});
			
			$.featureList(
				$("#tabs li a"),
				$("#output li"), {
					start_item	:	0
				}
			);
		}
	});
	//$("#output").css({'background-color' : '', 'background-image' : "url('/ar/JQFlash/flash/images/Hajj2.jpg')", 'background-repeat' : 'no-repeat', 'background-position' : 'center top'});
	
});
