// JavaScript Document

 $(document).ready(function(){
 


//load the images in the front banner rotator


  
  $('#hero').load("./custom/news/hero.php", function(){
$("#hero_set").fadeIn("slow");

});

	


//load the xml news from the database
$.ajax({
        type: "GET",
	url: "./custom/xml/featured_news.php",
	dataType: "xml",
	success: function(xml) {
var list_set = new Array();
var list_append_set = ""
		$(xml).find("featurednews").each(function(i, item){
												   var date = $(this).attr("date");
												   var title = $(this).attr("title");
												   var url = $(this).attr("url");
                                                                                       var list = '<li><span>'+date+'</span><a href="'+url+'">'+title+'</a></li>';
			list_set_html = list_set.push(list);
												   });
$.each(list_set, function(){
list_append_set += this;


});
$('#main_news_ticker').html(list_append_set);
$("ul#main_news_ticker").liScroll();
	}
}); 

});

