	var allItems = "";
	try{ //Internet Explorer
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async=false;
		xmlDoc.load("/syndicate/featuredsections.rss");
		allItems = xmlDoc.getElementsByTagName('item');
	}catch(e){
		try{//Firefox, Mozilla, Opera, etc.
			xmlDoc=document.implementation.createDocument("","",null);
			xmlDoc.async=false;
			xmlDoc.load("/syndicate/featuredsections.rss");
			allItems = xmlDoc.getElementsByTagName('item');
		}catch(e){
			try{//Safari
				loadXMLHttpRequest();
			}catch(e){
				alert(e.message);
			}
		}
	}
	var setLoopId="";
	var currentIndex="";
	function loadXMLHttpRequest(){
		req = new XMLHttpRequest();
		req.onreadystatechange = function(){
			if (req.readyState == 4) {
				// only if "OK"
				if (req.status == 200) {
					allItems = req.responseXML.getElementsByTagName("item");
				} else {
					alert("There was a problem retrieving the XML data:\n" + req.statusText);
				}
			}
		};
		req.open("GET", "/syndicate/featuredsections.rss", true);
		req.send(null);
	}
	function parseXML(){
		var ulist = document.createElement('UL');
		ulist.setAttribute('id','ulist_thumb');		
		for(i=0;i < allItems.length;i++){
			var liList = document.createElement('LI');
			liList.setAttribute('id',i+'_li');
			useTitle = allItems[i].getElementsByTagName("title").item(0).firstChild.nodeValue;
			useDesc = allItems[i].getElementsByTagName("description").item(0).firstChild.nodeValue;
			thumbnail = allItems[i].getElementsByTagName("thumbnail").item(0).firstChild.nodeValue;
			imgThumb = document.createElement('IMG');
			imgThumb.src=thumbnail;
			imgThumb.setAttribute('id',i+'img');
			imgThumb.onclick= function () {showItem(parseInt(this.id),'pause');}
			liList.appendChild(imgThumb);
			ulist.appendChild(liList);
		}
		document.getElementById('listThumbs').appendChild(ulist);
		showItem(0,'loop')
	}
	
	function showItem(ctr,mode){
		if(mode == "stop"){
			clearTimeout(setLoopId);
			$('cover_nav_stop').src="/templates/default/images/coverflash/stop_on.png";
			$('cover_nav_play').src="/templates/default/images/coverflash/play.png";
		}else{
			$('cover_nav_play').src="/templates/default/images/coverflash/play_on.png";
			$('cover_nav_stop').src="/templates/default/images/coverflash/stop.png";
			elemLi = $('ulist_thumb').getElementsByTagName("li");
			if(ctr >= elemLi.length) ctr = 0;		
			if($('cover_main_img').hasChildNodes()){ $('cover_main_img').style.display="none";$('cover_main_img').innerHTML = "";}
			if(mode == "pause" || mode == "play") clearTimeout(setLoopId);
			useTitle = allItems[ctr].getElementsByTagName("title").item(0).firstChild.nodeValue;
			useLink = allItems[ctr].getElementsByTagName("link").item(0).firstChild.nodeValue;
			mainImage = allItems[ctr].getElementsByTagName("image").item(0).firstChild.nodeValue;
			imgMain = document.createElement('IMG');
			imgMain.src=mainImage;
			imgLink = document.createElement('A');
			imgLink.setAttribute('href',useLink);
			imgLink.setAttribute('title',useTitle);
			imgLink.appendChild(imgMain);
			document.getElementById('cover_main_img').appendChild(imgLink);
			for(x=0;x < elemLi.length; x++) Element.removeClassName(elemLi[x],'bgon');
			Element.addClassName(elemLi[ctr],'bgon');
			new Effect.Appear($('cover_main_img'));
			setLoopId = setTimeout("showItem("+(ctr+1)+",'loop')",10000);
			currentIndex = ctr;
		}
	}
