//moving blocks. this assumes blocks have 10px default left margin, which is included in "objectWidth". make sure that's true.
var blockmoving;
function moveBlocks()
{
	while (document.getElementById(blockContainerId).childNodes[0].nodeName == "#text")
		document.getElementById(blockContainerId).appendChild(document.getElementById(blockContainerId).childNodes[0]);

	blockmoving = document.getElementById(blockContainerId).childNodes[0];
	blockmoving.marginLeft=0;
	setTimeout("moveBlocks()",totalDelay);
	setTimeout("moveBlock(1)",totalDelay/numSteps/2);
}
function moveBlock(num)
{
	if(num > numSteps-1)
	{
		blockmoving.style.marginLeft ="10px";
		document.getElementById(blockContainerId).appendChild(blockmoving);
		return false;
	}
	blockmoving.style.marginLeft = "-" + Math.round(num*objectWidth/numSteps) + "px";
	setTimeout("moveBlock("+(num+1)+")",totalDelay/numSteps/2);
}


$(document).ready(function(){
	$(function() 
	{
		$("a").hover(
			function () 
			{
				$(this).stop().animate({opacity: 0.7}, 200);
			},
			function () 
			{
				$(this).stop().animate({opacity: 1.0}, 200);
			}
		);
	});
});
