function pictruePlayer(objId)
{
	var isIE = document.all ? true : false;
	this.fashion = 23;
	this.timeOut = 3020;
	
	var outDiv = document.getElementById(objId);
	outDiv.innerHTML = '<p></p><div>'+ outDiv.innerHTML +'</div>';
	var plrDiv = outDiv.childNodes[1];
	
	var subDivs = plrDiv.childNodes;
	var picIndex = subDivs.length - 1;
	var setIndex = 0;

	for (var i=subDivs.length-1; i>=0; i--)
	{
		if (subDivs[i].nodeType == 3) plrDiv.removeChild(subDivs[i]);
	}
	
	for (var i=0; i<subDivs.length; i++)
	{
		var oA = document.createElement("A");
		oA.innerHTML = i + 1;
		oA.onclick = function()
		{
			setIndex = parseInt(this.innerHTML, 10) - 2;
		}
		outDiv.childNodes[0].appendChild(oA);
		oA = null;
	}
	var subLinks = outDiv.childNodes[0].childNodes;

	this.play = function()
	{
		if (subDivs.length == 0) return;
		//必须在样式里面指定plrDiv的宽才有效果
		if (this.fashion >= 1 && this.fashion <= 23)
			plrDiv.style.filter = "progid:DXImageTransform.Microsoft.RevealTrans(Transition="+ parseInt(this.fashion, 10) +")";
		else
			plrDiv.style.filter = "BlendTrans(duration=1)";

		if (isIE) plrDiv.filters[0].apply();
		subDivs[picIndex].style.display = "none";
		subLinks[picIndex].className = "";
		setIndex++;
		if (setIndex >= subDivs.length) setIndex = 0;
		picIndex = setIndex;
		subDivs[picIndex].style.display = "block";
		subLinks[picIndex].className = "current";
		if (isIE) plrDiv.filters[0].play();
	}
}

