var prevImage = 'image_1';
var prevThumbHolder = 'thumbHolder_1';

function opac(opac, id)
{
document.poppedLayer = eval('document.all[\'' + id + '\']');
document.poppedLayer.style.opacity = (opac / 100);
document.poppedLayer.style.filter = "alpha(opacity=" + opac + ")";
}

function opacity(id, opacStart, opacEnd, millisec)
{
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;
	
	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i-=2) {
			setTimeout("opac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i+=2)
			{
			setTimeout("opac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

function thumbMouseOver(id)
{
opacity(id,80,100,500)
}

function thumbMouseOut(id)
{
opacity(id,100,80,500)
}

function hideFocusBorders()
{
var theahrefs = document.getElementsByTagName("a");
if (!theahrefs){return;}
	for(var x=0;x!=theahrefs.length;x++)
	{
		theahrefs[x].onfocus = function stopLinkFocus(){this.hideFocus=true;};
	}
}
