
var aryArticles = new Array();

 
				aryArticles[aryArticles.length] = ['WSJ.com: What&#039;s News US', 'http://online.wsj.com', 'Used-Car Prices Are on the Rise', 'http://feedproxy.google.com/~r/wsj/xml/rss/3_7011/~3/ku5lPVkAbjk/SB10001424052970204136404577205383041923996.html'];
			 
				aryArticles[aryArticles.length] = ['WSJ.com: What&#039;s News US', 'http://online.wsj.com', 'Mining Deals to Pile Up', 'http://feedproxy.google.com/~r/wsj/xml/rss/3_7011/~3/WhCSoTtD4Ig/SB10001424052970203315804577205022676493042.html'];
			 
				aryArticles[aryArticles.length] = ['FOXNews.com', 'http://www.foxnews.com/', 'Explosion Kills Family of Missing Utah Woman', 'http://www.foxnews.com/us/2012/02/05/blast-kills-husband-missing-utah-woman-2-boys-734852263/?test=latestnews'];
			 
				aryArticles[aryArticles.length] = ['FOXNews.com', 'http://www.foxnews.com/', 'Dad to Daughter&#039;s Captors: I&#039;ll Give You Anything', 'http://www.foxnews.com/us/2012/02/05/alaska-father-pleads-for-return-abducted-teenage-daughter/'];
			
document.write("<div id='items'>");
var i;
var curFeed = "";
for(i = 0; i < aryArticles.length; i++) {
	var feedTitle = aryArticles[i][0];
	var feedLink = aryArticles[i][1];
	var itemTitle = aryArticles[i][2];
	var itemLink = aryArticles[i][3];
	
	if(feedTitle != curFeed) {
		curFeed = feedTitle;
		document.write("&nbsp;&nbsp;&nbsp;&nbsp;");
		document.write("<a class='title' href='" + feedLink + "' onmouseover='stop()'>" + feedTitle + "</a>");
		document.write("&nbsp;&nbsp;&nbsp;&nbsp;");
	}
	
	document.write("<a class='item' href='" + itemLink + "' onmouseover='stop()'>" + itemTitle + "</a>");
	document.write("&nbsp;&nbsp;&nbsp;&nbsp;");
}
document.write("</div>");


var scrolling = true;
var items = document.getElementById("items");
var ticker = document.getElementById("ticker");
items.style.width = "3000px";
items.style.position ="relative";
items.style.left = ticker.style.left.replace(/px/, "") + 830 + "px";
items.style.zIndex = 1;
function scroll() {
	if(scrolling) {
		items.style.left = items.style.left.replace(/px/, "") - 2 + "px";
	
		// alert(parseInt(items.style.left.replace(/px/, "")));
		// alert(parseInt(items.style.width.replace(/px/, "")));
		if(parseInt(items.style.left.replace(/px/, "")) + parseInt(items.style.width.replace(/px/, "")) < 0) {
			items.style.left = ticker.style.left.replace(/px/, "") + 830 + "px";
		}
	}
	setTimeout("scroll();", 20);
}
scroll();

ticker.mouseover = onmouseover = start;
function start() {
	// if(!scrolling) scrolling = true;
}
function stop() {
	// if(scrolling) scrolling = false;
}
