// JavaScript Document
function showThumb(forWho, Xpos)
{
	var thumbnail = document.getElementById('sitePreview');
	//thumbnail.style.top = event.clientY + 'px';
	Xpos = (document.body.offsetWidth/2)-400;//120;
	thumbnail.style.left = Xpos + 'px';
	thumbnail.style.visibility = "visible";
	
	thumbPic = "http://www.downlite.com/beta/images/thumbs/" + forWho + ".jpg";
	document.getElementById('previewThumb').src = thumbPic;
}
function hideThumb()
{
	document.getElementById('sitePreview').style.visibility = "hidden";
}

// Scrolling Manufacture For Names (Home Page)
function AnimateLogos()
{
	var logos = new Array("dillardsLogo", "macysLogo", "nordstromLogo", "bloomingdalesLogo", "eddiebauerLogo", "wshLogo", "bbbLogo");
	for(x=0;x<7;x++)
	{
		var myLeft = document.getElementById(logos[x].toString()).style.left;
		splitLeft = myLeft.split("px", 3);
		goLeft = Number(splitLeft[0]) - 1;
		if ( goLeft <= -250 )
			document.getElementById(logos[x].toString()).style.left = "950px";
		else
			document.getElementById(logos[x].toString()).style.left = goLeft + "px";
	}
	t = setTimeout("AnimateLogos()",50);		// Loop
}
function setAnimationStyles()
{
	var myLeft = document.getElementById("dillardsLogo").style.left;
	splitLeft = myLeft.split("px", 3);
	goLeft = Number(splitLeft[0]) - 1;
	document.getElementById("dillardsLogo").style.left = goLeft + "px";
	document.getElementById("macysLogo").style.left = (goLeft+160) + "px";
	document.getElementById("nordstromLogo").style.left = (goLeft+325) + "px";
	document.getElementById("bloomingdalesLogo").style.left = (goLeft+505) + "px";
	document.getElementById("eddiebauerLogo").style.left = (goLeft+675) + "px";
	document.getElementById("wshLogo").style.left = (goLeft+845) + "px";
	document.getElementById("bbbLogo").style.left = (goLeft+1024) + "px";
}
function pauseAnimation()
{ clearTimeout(t); }
// END Scrolling Manufacture For Names
