var nextFocId=0;

if(window.attachEvent)
{
	window.attachEvent("onload", fls_xunhuan);
}
else if(window.addEventListener)
{
	window.addEventListener('load', fls_xunhuan, false);
}


function fls_xunhuan()
{
setfoc(nextFocId);
nextFocId = nextFocId+1;
if (nextFocId>6)
nextFocId=0
setTimeout("fls_xunhuan("+nextFocId+");",6000);
}

function setfoc(id)
{
	document.getElementById("aimlnk").href = document.getElementById("fls_"+id).href;
	document.getElementById("aimtxt").innerHTML = "<a href=\""+document.getElementById("fls_"+id).href+"\" target=_blank>"+document.getElementById("fls_pic_"+id).alt+"</a>";
	for(i=0;i<7;i++)
	{
		document.getElementById("fls_"+i).style.background="url()";
	}
	var arrow_pic
	if (id<3)
	{
		arrow_pic="images/arrow_aim_1.gif" 
	}
	else if (id==3)
	{
		arrow_pic="images/arrow_aim_2.gif" 
	}
	else
	{
		arrow_pic="images/arrow_aim_3.gif" 
	}
	document.getElementById("fls_"+id).style.background="url("+arrow_pic+") no-repeat center top"
	
	document.getElementById("aimpic").filters[0].Apply();
	document.getElementById("aimpic").src = document.getElementById("fls_pic_"+id).src;
	document.getElementById("aimpic").alt = document.getElementById("fls_pic_"+id).alt;
	document.getElementById("aimpic").filters.revealTrans.transition=23;
	document.getElementById("aimpic").filters[0].Play();
	
	nextFocId = id;
}

function showborder(obj)
{
	obj.style.padding='3px';
	obj.style.border='dashed 1px #ACA899';
}

function hideborder(obj)
{
	obj.style.padding='4px';
	obj.style.border='none';
}
