﻿var list4 = new Array();
	
	var getID = document.getElementById;
	var current4 = 0;
	var a4 = 1;
	function loadNew4()
	{		
		getID("photolist").innerHTML ="";
		a4 =1;
		for(var i4 =0 ; i4 < list4.length;i4++)
		{
			getID("photolist").innerHTML += "<img onmouseover=\"showcurrent4('"+i4+"')\" src=\""+list4[i4].split('|')[0]+"\" class=\"notuserphoto\" onclick=\"showcurrent4('"+i4+"')\"/><br />";
		}
		aotuRun4();		
		
	}	
	function aotuRun4()
	{	    
		showcurrent4(current4);
		if(a4 == 1)
		{
		    current4 ++;
		}		
		if(current4 >= list4.length)
		{
			current4 = 0;			
		}			
		setTimeout("aotuRun4()",5000);
	}
	
	function showcurrent4(num4)
	{		
		var fontCenter4 = document.getElementById("photolist");									
		var fontlength4 = fontCenter4.getElementsByTagName("img");
		 
		for(var i4 =0 ; i4 < fontlength4.length;i4++)
		{			
			if(i4 != num4)
			{
				fontlength4[i4].className = "notuserphoto";									
			}
			else
			{
				fontlength4[i4].className = "currentphoto";
				if(getID("showlastphoto")!= null)
				{					
					
					
					with(getID("showlastphoto").filters.revealTrans)
					{ 
						 
						apply() 
						transition=23 
						getID("showlastphoto").src = list4[num4].split('|')[0]
						getID("showlastphoto").onclick =function(){window.open(list4[num4].split('|')[1])}	;
						getID("showfontlink").innerHTML = "<a target=\"_blank\"href=\""+list4[num4].split('|')[1]+"\">"+list4[num4].split('|')[2]+"</a>"					
						play() 
					}					
					
				}				
				
			}
		}
		
	}