﻿$(document).ready(function()
{
	if ($(document.body).hasClass("Listing"))
	{
		var currentIndex = 0;
		$("#ItemList li a").each(function(index)
		{
			var listItem = listingData[index];
			$(this).stop().mouseover(function()
			{
				if (currentIndex != index)
				{
					currentIndex = index;
					App.changeHero({ imageUrl: listItem.heroUrl, title: listItem.title, caption: listItem.caption });
				}
			});
		});
	}
});